From f8bb2d659372d0add11c589dcb006d0b7f8822ae Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 19 Dec 2024 06:30:51 +0000 Subject: gentoo auto-resync : 19:12:2024 - 06:30:51 --- sci-mathematics/flint/Manifest | 2 +- sci-mathematics/flint/flint-3.1.3_p1-r2.ebuild | 112 ------------------------ sci-mathematics/flint/flint-3.1.3_p1-r3.ebuild | 114 +++++++++++++++++++++++++ 3 files changed, 115 insertions(+), 113 deletions(-) delete mode 100644 sci-mathematics/flint/flint-3.1.3_p1-r2.ebuild create mode 100644 sci-mathematics/flint/flint-3.1.3_p1-r3.ebuild (limited to 'sci-mathematics/flint') diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest index 9ae34e98b243..46b0b7525e2a 100644 --- a/sci-mathematics/flint/Manifest +++ b/sci-mathematics/flint/Manifest @@ -5,5 +5,5 @@ AUX flint-3.1.3_p1-fix-pc-location.patch 1021 BLAKE2B 742529fe63da7433eedf5945d4 DIST flint-3.1.3_p1.tar.gz 7588734 BLAKE2B 87acf8778e21e37c01e12b198ff81e62ab113df3e0e9c6155ff7dd505828f79d5c49d85093e261ea96397e906350caa03477e3ecbdd1fc09d6ae5c984397a2be SHA512 1b16ff2fb9cb2ac4b75513278b8c14683e8d83db39985631df14d6ea74bee4d6ea818a200321d5f0de6f1af89898f7a99dc7088f712f4c6db1a2546199aefba7 DIST flint-3.1.3_p1.tar.xz 5657304 BLAKE2B 7a76cbd7e3ea6ecfb4728545c427eba48ab476b257316792305522770e03b335d558cc104bac50b1faf2e8e25663f6ade20eef99e85999f7209091bf3c6e674a SHA512 430e83be2d94c059066b7201319dbbbe414ccd10a4f359a865e54f3912b8b8e8f10dfd36ee81c96335553ee2736cf2ef9e1ffdf488c9706360b9e0e8a50a4eea EBUILD flint-3.1.3_p1-r1.ebuild 2143 BLAKE2B 0fd33eed838547b58b961280b3aacfbb21c4d4829d2edff5e6572b451ccc5f5b2f9fdb4506fbd77034dde8cdb23fa6fd9f3bd8b2a3d1e5ed66b7807dd61dc0aa SHA512 0e3710c96a76ea0bf1a562d661d55a43097b81e6a4a120689d3f8dcd52239d5c3a2a4cac89a7e4e9501e07e47a32cc0ef3dd592799859a1005597ad092542850 -EBUILD flint-3.1.3_p1-r2.ebuild 2998 BLAKE2B 6c707c9b620ab557cf059bfdee18a77a5adb73962b4ac63fc74b448b171144c3d1739baf3f7b6bc08192029786fc6700a8aac6f07136ba5faa237d0623c288c8 SHA512 0432764a1e7a49b7bfb2d8feec0926bffdf67b17564824db720d54d4de8839b5dd811e2c6429edb5cdb04b9cd77a3301e3bcddf98c5a82bfe0b35e8ca0fbe185 +EBUILD flint-3.1.3_p1-r3.ebuild 3073 BLAKE2B fd660af9494479f43e605545cd71392e604de2e2557a3d73231b9f2801353ae91160522dee0b1205151f88aa341ef72e57050be3a98c3e81e9c3f9d6aa4f76e8 SHA512 950d7e16ba9e2d39ef1152be8b916dabf4ee050b6fcb1f4e2b44b29ca82c4af94353686ae26454c610168b61be92041b16a461d7c46d94f6b94639cb69e1b5ef MISC metadata.xml 640 BLAKE2B b95d6f493564025e43604bffa340fffd88fcedf29c282fcc3c18e08ac089cdf1e10837787af664dd250a77a62237bf3665ff0a3045ca52680dd67aa0b39eeba7 SHA512 a9a64076e7f0df29e6a05a9d349c530a4ee4285b6a444425681eddf6ae1e8b41f610fda0bd7cc86b5177b36f34bc3072b67c7edac2cc8c0709a032b000576a14 diff --git a/sci-mathematics/flint/flint-3.1.3_p1-r2.ebuild b/sci-mathematics/flint/flint-3.1.3_p1-r2.ebuild deleted file mode 100644 index 841de4da69e3..000000000000 --- a/sci-mathematics/flint/flint-3.1.3_p1-r2.ebuild +++ /dev/null @@ -1,112 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..13} python3_13t ) -inherit flag-o-matic python-any-r1 - -DESCRIPTION="Fast Library for Number Theory" -HOMEPAGE="https://www.flintlib.org/" - -MY_PV="${PV/_/-}" -SRC_URI="https://github.com/flintlib/flint/releases/download/v${MY_PV}/flint-${MY_PV}.tar.xz -> ${P}.tar.xz" -S="${WORKDIR}/${PN}-${MY_PV}" -LICENSE="LGPL-2.1+" - -# Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15 -SLOT="0/19" - -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.0.1-find-cblas.patch" - "${FILESDIR}/flint-3.1.3_p1-c99-I.patch" - "${FILESDIR}/flint-3.1.3_p1-fix-pc-location.patch" - "${FILESDIR}/flint-3.1.3_p1-c23.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. - # --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-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 -} diff --git a/sci-mathematics/flint/flint-3.1.3_p1-r3.ebuild b/sci-mathematics/flint/flint-3.1.3_p1-r3.ebuild new file mode 100644 index 000000000000..0766a2300847 --- /dev/null +++ b/sci-mathematics/flint/flint-3.1.3_p1-r3.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} python3_13t ) +inherit flag-o-matic python-any-r1 + +DESCRIPTION="Fast Library for Number Theory" +HOMEPAGE="https://www.flintlib.org/" + +MY_PV="${PV/_/-}" +SRC_URI="https://github.com/flintlib/flint/releases/download/v${MY_PV}/flint-${MY_PV}.tar.xz -> ${P}.tar.xz" +S="${WORKDIR}/${PN}-${MY_PV}" +LICENSE="LGPL-2.1+" + +# Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15 +SLOT="0/19" + +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.0.1-find-cblas.patch" + "${FILESDIR}/flint-3.1.3_p1-c99-I.patch" + "${FILESDIR}/flint-3.1.3_p1-fix-pc-location.patch" + "${FILESDIR}/flint-3.1.3_p1-c23.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 +} -- cgit v1.2.3