summaryrefslogtreecommitdiff
path: root/sci-mathematics
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-04-27 19:13:58 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-04-27 19:13:58 +0000
commit758ba3a26cf3d19ddbff9cc837673acde1d4be43 (patch)
tree10a312331fbb676e8aa9be3ca705b77f3eb011e6 /sci-mathematics
parentbcf368d4f0cbe2993bc732ae8d4ee7675fe7e9ff (diff)
downloadbaldeagleos-repo-758ba3a26cf3d19ddbff9cc837673acde1d4be43.tar.gz
baldeagleos-repo-758ba3a26cf3d19ddbff9cc837673acde1d4be43.tar.xz
baldeagleos-repo-758ba3a26cf3d19ddbff9cc837673acde1d4be43.zip
Adding metadata
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/flint/Manifest1
-rw-r--r--sci-mathematics/flint/flint-3.5.0.ebuild109
2 files changed, 110 insertions, 0 deletions
diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index 3e9aa614be25..4a302e77ec04 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1,3 +1,4 @@
DIST flint-3.1.3_p1.tar.xz 5657304 BLAKE2B 7a76cbd7e3ea6ecfb4728545c427eba48ab476b257316792305522770e03b335d558cc104bac50b1faf2e8e25663f6ade20eef99e85999f7209091bf3c6e674a SHA512 430e83be2d94c059066b7201319dbbbe414ccd10a4f359a865e54f3912b8b8e8f10dfd36ee81c96335553ee2736cf2ef9e1ffdf488c9706360b9e0e8a50a4eea
DIST flint-3.3.1.tar.xz 5921132 BLAKE2B 343c4e242232024c4177808c838068e75b7a18741bf0be2378e4245e490c1a110632033bdaaea4e4f6388e2ca0a324650539c657394291e0d1af144c87926ccc SHA512 48013c36a4d1d79ac73b6a08f3b5238bade9110aee1aa2dd3f29e3257ee48bbdb8a18598de907511829d73ee9360cece52263475ceeb556a26c9b2f4d3065ef1
DIST flint-3.4.0.tar.xz 6507216 BLAKE2B a7dad4a964a8a2d04d5173dd51ed0c3a4e77a409b4b424d7c2765cb0f7805064ae38a267590f816fd6d469c5ff5fd60f46e4cc370279b6ed9b8cce21c907c0bf SHA512 f7f0ee7837d960c64b207d542fa384d6b3ab923c5d218d6545c4cd8abd0efd56c99e88a72b837e966127e0b6d3d42a3bf53ed947df89ecaa004377431f060a78
+DIST flint-3.5.0.tar.xz 6375068 BLAKE2B 5b9b399184d616ff357f5209262ab40d5e012e4954e5e1da6b70a0ca16d6a2971f24e8854cf63fae295cfb536248b5e2dff4bb1bb7bee2aa62abcafe46e9fc62 SHA512 5eca07c4721a8532bbe7989a0c21913f2dcf28d39ab8316aec2caa1aafe95042d2d77c9bc893cccc14343741eb13bb4ccc64353d9c5f1054b196ea85d8bd175b
diff --git a/sci-mathematics/flint/flint-3.5.0.ebuild b/sci-mathematics/flint/flint-3.5.0.ebuild
new file mode 100644
index 000000000000..559c7b3a040c
--- /dev/null
+++ b/sci-mathematics/flint/flint-3.5.0.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..14} )
+inherit flag-o-matic python-any-r1
+
+DESCRIPTION="Fast Library for Number Theory"
+HOMEPAGE="https://flintlib.org/"
+
+SRC_URI="https://github.com/flintlib/flint/releases/download/v${PV}/flint-${PV}.tar.xz"
+LICENSE="LGPL-2.1+"
+
+# Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
+SLOT="0/23"
+
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
+IUSE="doc ntl test"
+
+RESTRICT="!test? ( test )"
+
+BDEPEND="${PYTHON_DEPS}
+ doc? (
+ app-text/texlive-core
+ dev-python/sphinx
+ dev-tex/latexmk
+ dev-texlive/texlive-latex
+ dev-texlive/texlive-latexextra
+ )
+ ntl? ( dev-libs/ntl )
+"
+
+# NTL is never linked
+DEPEND="dev-libs/gmp:=
+ dev-libs/mpfr:=
+ virtual/cblas"
+
+# Flint 3.x includes arb. We include some version of NTL here if USE=ntl
+# is set so that consumers can depend on flint[ntl] to get a usable
+# Flint-NTL interface. But otherwise, NTL isn't actually needed at
+# runtime, even if Flint was built with USE=ntl.
+RDEPEND="${DEPEND}
+ ntl? ( dev-libs/ntl )
+ !sci-mathematics/arb"
+
+# The rst files are API docs, but they're very low-effort compared to
+# the PDF and HTML docs, so we ship them unconditionally and hide only
+# the painful parts behind USE=doc.
+DOCS="AUTHORS README.md doc/source/*.rst"
+
+PATCHES=(
+ "${FILESDIR}/flint-3.3.1-find-cblas.patch"
+)
+
+src_configure() {
+ # Test failures:
+ # * https://bugs.gentoo.org/934463
+ # * https://github.com/flintlib/flint/issues/2029
+ filter-flags -floop-nest-optimize \
+ -ftree-loop-linear \
+ -floop-strip-mine \
+ -floop-block \
+ -fgraphite-identity
+
+ # ABI needs to be unset because flint uses it internally for
+ # an incompatible purpose.
+ # --disable-assembly in an attempt to fix bug 946501
+ # --enable-debug just adds -g to your CFLAGS
+ # --enable-avx2 and --enable-avx512 just add "-mfoo" to CFLAGS
+ # --enable-gc affects thread-safety
+ local myeconfargs=(
+ ABI=""
+ --disable-assembly
+ --disable-debug
+ --with-blas
+ --with-gmp
+ --with-mpfr
+ --without-gc
+ )
+
+ # The NTL interface consists of a single header, NTL-interface.h,
+ # that is always installed. USE=ntl only determines whether or not
+ # the corresponding tests (which actually use NTL) are built and
+ # run. As a result, we don't care about USE=ntl without USE=test.
+ use test && myeconfargs+=( $(use_with ntl) )
+ econf "${myeconfargs[@]}"
+
+ if use doc; then
+ # Avoid the "html/_sources" directory that will contain a copy
+ # of the rst sources we've already installed, and also avoid
+ # installing html/objects.inv.
+ HTML_DOCS="doc/build/html/*.html
+ doc/build/html/*.js
+ doc/build/html/_static"
+ DOCS+=" doc/build/latex/flint.pdf"
+ fi
+}
+
+src_compile() {
+ default
+
+ if use doc; then
+ pushd doc
+ emake html
+ emake latexpdf
+ popd
+ fi
+}