summaryrefslogtreecommitdiff
path: root/sci-mathematics
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-03-02 22:14:58 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-03-02 22:14:58 +0000
commite9b0c40d21020a0bf3c0c5d8641d9bbe9ef40fb7 (patch)
treea64a8be070b39b1c90045ffb4305d77a9a55fac3 /sci-mathematics
parentc0656c8d2536fafb7b43a5c83288b99f600ca54b (diff)
downloadbaldeagleos-repo-e9b0c40d21020a0bf3c0c5d8641d9bbe9ef40fb7.tar.gz
baldeagleos-repo-e9b0c40d21020a0bf3c0c5d8641d9bbe9ef40fb7.tar.xz
baldeagleos-repo-e9b0c40d21020a0bf3c0c5d8641d9bbe9ef40fb7.zip
Adding metadata
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/flint/Manifest1
-rw-r--r--sci-mathematics/flint/flint-3.4.0.ebuild109
2 files changed, 110 insertions, 0 deletions
diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index 2f0382b55748..3e9aa614be25 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1,2 +1,3 @@
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
diff --git a/sci-mathematics/flint/flint-3.4.0.ebuild b/sci-mathematics/flint/flint-3.4.0.ebuild
new file mode 100644
index 000000000000..1dec05fb399a
--- /dev/null
+++ b/sci-mathematics/flint/flint-3.4.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/21"
+
+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
+}