[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/, sci-mathematics/flint/files/

2024-03-10 Thread Michael Orlitzky
commit: 13e806399cb8fd6a4711ea36aba899c3cc5ad41f
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Mon Mar 11 02:51:37 2024 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Mon Mar 11 02:54:35 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13e80639

sci-mathematics/flint: add 3.1.0

Fixes the pkg-config install location too.

Signed-off-by: Michael Orlitzky  gentoo.org>

 sci-mathematics/flint/Manifest |  1 +
 .../flint/files/flint-3.1.0-fix-pc-install.patch   | 29 
 sci-mathematics/flint/flint-3.1.0.ebuild   | 84 ++
 3 files changed, 114 insertions(+)

diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index 730cca7ed921..b1c7fc7e9dbf 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1,2 +1,3 @@
 DIST flint-2.9.0.tar.gz 5283894 BLAKE2B 
a790437ee142d8acb5cec1e6c7d21812f8d83f5d30d1e8c07e799713e96791d87792f25fbd4ce2d0d68f6a8ee2f0cde2b8d9f8db8ab26922a48485e0e90394aa
 SHA512 
4494cba6a4e215e817d7c74ef6834c4e05a832488f4808bbd7bea8b02a4a35d47ef3c63a4f213230c712b32842f5588c503fc1cf23e5e2ddc4a4a5a1627a02ba
 DIST flint-3.0.1.tar.gz 7624944 BLAKE2B 
0d94252075945f39af3dd2e49803cbe16aa65b108964dfc0c12bdfd9188748944c1e839401e17b974f8f6f8832e4da84d62a63f20b63cfff0ff5c2736bfd2d47
 SHA512 
4b5b432b962135cd708a0ce4242343f3226f0fdf73c3f541728ed4540e7ef6cb7812a48b6b46e65a8fcc1f5cae93d8bb59838d24728024cd9aa0f7b8e5c6f98f
+DIST flint-3.1.0.tar.gz 7585407 BLAKE2B 
697be5bd88e7793eb160d5f0e2110a7b8371ef8d3ca82b576c4cc755983a660a884d35d3cbb442288caa074b7f41699f4c6bc3c244272d9e9f5755d8d209004d
 SHA512 
1d33bb35853f4bdca047899ebb4ac9873748c6d57ad3b6aded32219261e95713fb26b394d8c86f6183b9f44db58697def07e6c565ac789461d5ccc4dca3e9ba7

diff --git a/sci-mathematics/flint/files/flint-3.1.0-fix-pc-install.patch 
b/sci-mathematics/flint/files/flint-3.1.0-fix-pc-install.patch
new file mode 100644
index ..5e0145cb95e7
--- /dev/null
+++ b/sci-mathematics/flint/files/flint-3.1.0-fix-pc-install.patch
@@ -0,0 +1,29 @@
+From f4e0dfda90f6574048578f112bea1013d54f0987 Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky 
+Date: Sun, 10 Mar 2024 21:48:51 -0400
+Subject: [PATCH 1/1] CMakeLists.txt: install the pkg-config file to the
+ configured libdir
+
+Currently it installs to lib/pkgconfig, which can be incorrect on
+systems where (for example) the normal libdir is lib64 and "lib" is
+reserved for 32-bit libraries.
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 30935cef4..d8dfee38d 100644
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -537,7 +537,7 @@ set(PACKAGE_NAME ${PROJECT_NAME})
+ set(PACKAGE_VERSION ${PROJECT_VERSION})
+ configure_file(flint.pc.in flint.pc @ONLY)
+ 
+-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/flint.pc DESTINATION lib/pkgconfig)
++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/flint.pc DESTINATION 
${CMAKE_INSTALL_LIBDIR}/pkgconfig)
+ 
+ if(BUILD_TESTING)
+ set(FLINT_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src) # To get src/test/main
+-- 
+2.43.0
+

diff --git a/sci-mathematics/flint/flint-3.1.0.ebuild 
b/sci-mathematics/flint/flint-3.1.0.ebuild
new file mode 100644
index ..f95e430165ae
--- /dev/null
+++ b/sci-mathematics/flint/flint-3.1.0.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit cmake flag-o-matic python-any-r1
+
+DESCRIPTION="Fast Library for Number Theory"
+HOMEPAGE="https://www.flintlib.org/;
+
+# flintlib.org tarballs have been broken in the past, Bill Hart suggests
+# we get them from Github (which he has control over).
+SRC_URI="https://github.com/flintlib/flint/archive/refs/tags/v${PV}.tar.gz
+   -> ${P}.tar.gz"
+
+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
+   )
+"
+DEPEND="dev-libs/gmp:=
+   dev-libs/mpfr:=
+   ntl? ( dev-libs/ntl:= )
+   virtual/cblas"
+# flint 3 includes arb and arb cannot use flint 3.
+RDEPEND="${DEPEND}
+   !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}/${P}-fix-pc-install.patch"
+)
+
+src_configure() {
+   # https://github.com/flintlib/flint/issues/1683
+   append-cflags 

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/, sci-mathematics/flint/files/

2023-12-23 Thread Michael Orlitzky
commit: 92e78412b4cfab142f98c25a4de65386f8f54da9
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Sun Dec 24 04:17:42 2023 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Sun Dec 24 04:18:14 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92e78412

sci-mathematics/flint: add 3.0.1

Signed-off-by: Michael Orlitzky  gentoo.org>

 sci-mathematics/flint/Manifest |  1 +
 .../flint/files/flint-3.0.1-find-cblas.patch   | 44 
 sci-mathematics/flint/flint-3.0.1.ebuild   | 81 ++
 3 files changed, 126 insertions(+)

diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index de7412c463e2..730cca7ed921 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1 +1,2 @@
 DIST flint-2.9.0.tar.gz 5283894 BLAKE2B 
a790437ee142d8acb5cec1e6c7d21812f8d83f5d30d1e8c07e799713e96791d87792f25fbd4ce2d0d68f6a8ee2f0cde2b8d9f8db8ab26922a48485e0e90394aa
 SHA512 
4494cba6a4e215e817d7c74ef6834c4e05a832488f4808bbd7bea8b02a4a35d47ef3c63a4f213230c712b32842f5588c503fc1cf23e5e2ddc4a4a5a1627a02ba
+DIST flint-3.0.1.tar.gz 7624944 BLAKE2B 
0d94252075945f39af3dd2e49803cbe16aa65b108964dfc0c12bdfd9188748944c1e839401e17b974f8f6f8832e4da84d62a63f20b63cfff0ff5c2736bfd2d47
 SHA512 
4b5b432b962135cd708a0ce4242343f3226f0fdf73c3f541728ed4540e7ef6cb7812a48b6b46e65a8fcc1f5cae93d8bb59838d24728024cd9aa0f7b8e5c6f98f

diff --git a/sci-mathematics/flint/files/flint-3.0.1-find-cblas.patch 
b/sci-mathematics/flint/files/flint-3.0.1-find-cblas.patch
new file mode 100644
index ..77a9ed2e888f
--- /dev/null
+++ b/sci-mathematics/flint/files/flint-3.0.1-find-cblas.patch
@@ -0,0 +1,44 @@
+From 5cb3535b911c78adb9c8a908104fc4be3ffbfe51 Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky 
+Date: Sat, 23 Dec 2023 14:38:46 -0500
+Subject: [PATCH 1/1] CMake/FindCBLAS.cmake: search only for cblas
+
+On Gentoo, users can "eselect cblas" to choose a cblas implementation
+at runtime. Packages build against the reference cblas, but the others
+are (by design) compatible, so we can force one to take precedence at
+runtime with an ld.so.conf entry. But that only works when consumers
+link to libcblas.so. If they link directly to (say) openblas, then
+changing how libcblas.so resolves won't help.
+
+When Flint tries to find "cblas," it looks for accelerate and openblas
+before plain cblas. That runs afoul of the scheme described above. To
+remedy it, we patch the search function so that only "cblas" is
+considered. Since virtual/cblas always pulls in the reference
+implementation, there'd be no point in altering the search order to
+consider e.g. openblas after cblas.
+---
+ CMake/FindCBLAS.cmake | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/CMake/FindCBLAS.cmake b/CMake/FindCBLAS.cmake
+index f5b5b1c..f4919f4 100644
+--- a/CMake/FindCBLAS.cmake
 b/CMake/FindCBLAS.cmake
+@@ -11,13 +11,11 @@
+ find_path(CBLAS_INCLUDE_DIRS NAMES cblas.h
+   HINTS CBLAS_ROOT ENV CBLAS_ROOT
+   PATHS ${INCLUDE_INSTALL_DIR} ${CMAKE_INSTALL_PREFIX}/include
+-  PATH_SUFFIXES openblas cblas blis flexiblas
+   )
+ 
+-find_library(CBLAS_LIBRARIES NAMES accelerate openblas cblas blas blis 
flexiblas
++find_library(CBLAS_LIBRARIES NAMES cblas
+   HINTS CBLAS_ROOT ENV CBLAS_ROOT
+   PATHS ${LIB_INSTALL_DIR} ${CMAKE_INSTALL_PREFIX}/lib
+-  PATH_SUFFIXES openblas cblas blis flexiblas
+   )
+ 
+ include(FindPackageHandleStandardArgs)
+-- 
+2.41.0
+

diff --git a/sci-mathematics/flint/flint-3.0.1.ebuild 
b/sci-mathematics/flint/flint-3.0.1.ebuild
new file mode 100644
index ..7f24b83f5744
--- /dev/null
+++ b/sci-mathematics/flint/flint-3.0.1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit cmake flag-o-matic python-any-r1
+
+DESCRIPTION="Fast Library for Number Theory"
+HOMEPAGE="https://www.flintlib.org/;
+
+# flintlib.org tarballs have been broken in the past, Bill Hart suggests
+# we get them from Github (which he has control over).
+SRC_URI="https://github.com/flintlib/flint/archive/refs/tags/v${PV}.tar.gz
+   -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1+"
+
+# Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
+SLOT="0/18"
+
+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
+   )
+"
+DEPEND="dev-libs/gmp:=
+   dev-libs/mpfr:=
+   ntl? ( dev-libs/ntl:= )
+   virtual/cblas"
+# flint 3 includes arb and arb cannot use flint 3.
+RDEPEND="${DEPEND}
+   !sci-mathematics/arb"
+
+# The rst files are API docs, but they're very low-effort compared 

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2023-11-24 Thread Arthur Zamarin
commit: 59a6e58a1fdeb4f6cc79e75d01ed96fe42b579ae
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Nov 24 17:03:34 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Nov 24 17:03:34 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59a6e58a

sci-mathematics/flint: Stabilize 2.9.0 arm64, #918175

Signed-off-by: Arthur Zamarin  gentoo.org>

 sci-mathematics/flint/flint-2.9.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flint/flint-2.9.0.ebuild 
b/sci-mathematics/flint/flint-2.9.0.ebuild
index 494339dd488e..8294eb140a41 100644
--- a/sci-mathematics/flint/flint-2.9.0.ebuild
+++ b/sci-mathematics/flint/flint-2.9.0.ebuild
@@ -21,7 +21,7 @@ LICENSE="LGPL-2.1+"
 # Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
 SLOT="0/17"
 
-KEYWORDS="amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
+KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
 IUSE="doc ntl test"
 
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2023-07-15 Thread Michael Orlitzky
commit: 8b4023323fd9e5ab5ea055578e1ca60e468448eb
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Sat Jul 15 22:07:57 2023 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Sat Jul 15 22:07:57 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b402332

sci-mathematics/flint: drop 2.8.4, 2.8.5

Signed-off-by: Michael Orlitzky  gentoo.org>

 sci-mathematics/flint/Manifest   |  2 -
 sci-mathematics/flint/flint-2.8.4.ebuild | 74 -
 sci-mathematics/flint/flint-2.8.5.ebuild | 80 
 3 files changed, 156 deletions(-)

diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index 4106b7b4242d..de7412c463e2 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1,3 +1 @@
-DIST flint-2.8.4.tar.gz 5212964 BLAKE2B 
ddd3b9dca76ddac2070d3e12dfc4c5ea1a3b505c7bf28e41489798798d65ed2a5db12e01059816d42e5d1209166d17ee6035dcf0a94d991f78df59c6ad06b271
 SHA512 
1f66574a5f2f27e1f3cd0a334712c0e64f4a4b8dd57179a71f9adba4c4faff23ba8da3993f51c4f44f52a588d0d1678b1e1a272e8fe3367f2abc88e9d86ad804
-DIST flint-2.8.5.tar.gz 5212805 BLAKE2B 
8922a2925b68d93fd35aa5b78eb0b8cbc6aa609498b8846ce4ff036c2fece3932a0eabb0f04a5c152147d8df3eccd6570832f55dafe4f7a35de135246454a83d
 SHA512 
849fb61612f3becfde0d8afc019a9312a7ea07d3000a6bc558eb82babecd737e3af894d3084e4a57d52f7db0403d7298cbfa277b08e2b1f5497897637ed4825f
 DIST flint-2.9.0.tar.gz 5283894 BLAKE2B 
a790437ee142d8acb5cec1e6c7d21812f8d83f5d30d1e8c07e799713e96791d87792f25fbd4ce2d0d68f6a8ee2f0cde2b8d9f8db8ab26922a48485e0e90394aa
 SHA512 
4494cba6a4e215e817d7c74ef6834c4e05a832488f4808bbd7bea8b02a4a35d47ef3c63a4f213230c712b32842f5588c503fc1cf23e5e2ddc4a4a5a1627a02ba

diff --git a/sci-mathematics/flint/flint-2.8.4.ebuild 
b/sci-mathematics/flint/flint-2.8.4.ebuild
deleted file mode 100644
index 3e3f1fd68fe8..
--- a/sci-mathematics/flint/flint-2.8.4.ebuild
+++ /dev/null
@@ -1,74 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# ninja doesn't like "-lcblas" so using make.
-CMAKE_MAKEFILE_GENERATOR="emake"
-PYTHON_COMPAT=( python3_{9..10} )
-inherit cmake python-any-r1
-
-DESCRIPTION="Fast Library for Number Theory"
-HOMEPAGE="http://www.flintlib.org/;
-
-# flintlib.org tarballs have been broken in the past, Bill Hart suggests
-# we get them from Github (which he has control over).
-SRC_URI="https://github.com/wbhart/flint2/archive/refs/tags/v${PV}.tar.gz
-   -> ${P}.tar.gz"
-
-LICENSE="LGPL-2.1+"
-
-# Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
-SLOT="0/16"
-
-KEYWORDS="amd64 ~arm ~arm64 ~ppc ~riscv ~x86"
-IUSE="doc ntl test"
-
-RESTRICT="!test? ( test )"
-
-BDEPEND="doc? (
-   dev-python/sphinx
-   app-text/texlive-core
-   dev-texlive/texlive-latex
-   dev-texlive/texlive-latexextra
-   dev-tex/latexmk
-   )
-   ${PYTHON_DEPS}"
-DEPEND="dev-libs/gmp:=
-   dev-libs/mpfr:=
-   ntl? ( dev-libs/ntl:= )
-   virtual/cblas"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/flint2-${PV}"
-
-src_configure() {
-   local mycmakeargs=(
-   -DWITH_NTL="$(usex ntl)"
-   -DBUILD_TESTING="$(usex test)"
-   -DBUILD_DOCS="$(usex doc)"
-   -DCBLAS_INCLUDE_DIRS="${EPREFIX}/usr/include"
-   -DCBLAS_LIBRARIES="-lcblas"
-   )
-
-   cmake_src_configure
-
-   if use doc ; then
-   HTML_DOCS="${BUILD_DIR}/html/*"
-   DOCS=(
-   "${S}"/README
-   "${S}"/AUTHORS
-   "${S}"/NEWS
-   "${BUILD_DIR}"/latex/Flint.pdf
-   )
-   fi
-}
-
-src_compile() {
-   cmake_src_compile
-
-   if use doc ; then
-   cmake_build html
-   cmake_build pdf
-   fi
-}

diff --git a/sci-mathematics/flint/flint-2.8.5.ebuild 
b/sci-mathematics/flint/flint-2.8.5.ebuild
deleted file mode 100644
index 0ba6c58b49ec..
--- a/sci-mathematics/flint/flint-2.8.5.ebuild
+++ /dev/null
@@ -1,80 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# ninja doesn't like "-lcblas" so using make.
-CMAKE_MAKEFILE_GENERATOR="emake"
-PYTHON_COMPAT=( python3_{9..11} )
-inherit cmake python-any-r1
-
-DESCRIPTION="Fast Library for Number Theory"
-HOMEPAGE="http://www.flintlib.org/;
-
-# flintlib.org tarballs have been broken in the past, Bill Hart suggests
-# we get them from Github (which he has control over).
-SRC_URI="https://github.com/wbhart/flint2/archive/refs/tags/v${PV}.tar.gz
-   -> ${P}.tar.gz"
-
-LICENSE="LGPL-2.1+"
-
-# Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
-SLOT="0/16"
-
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~riscv ~x86"
-IUSE="doc ntl test"
-
-RESTRICT="!test? ( test )"
-
-BDEPEND="doc? (
-   dev-python/sphinx
-  

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/files/, sci-mathematics/flint/

2023-07-08 Thread Sam James
commit: b3d94642a52b8a887c3ae1c249275ba1fb1da2cf
Author: Matoro Mahri  users  noreply  github  
com>
AuthorDate: Sun Jul  9 03:23:27 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jul  9 04:46:25 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3d94642

sci-mathematics/flint: remove hardcoded CFLAGS

Bug: https://bugs.gentoo.org/909738
Signed-off-by: Matoro Mahri  users.noreply.github.com>
Signed-off-by: Sam James  gentoo.org>

 .../flint-2.9.0-remove-hardcoded-CFLAGS.patch  | 69 ++
 sci-mathematics/flint/flint-2.9.0.ebuild   |  1 +
 2 files changed, 70 insertions(+)

diff --git 
a/sci-mathematics/flint/files/flint-2.9.0-remove-hardcoded-CFLAGS.patch 
b/sci-mathematics/flint/files/flint-2.9.0-remove-hardcoded-CFLAGS.patch
new file mode 100644
index ..b057ea207bbd
--- /dev/null
+++ b/sci-mathematics/flint/files/flint-2.9.0-remove-hardcoded-CFLAGS.patch
@@ -0,0 +1,69 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 9784633c4..641ab9ed4 100644
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -1,6 +1,5 @@
+ cmake_minimum_required(VERSION 3.9)
+ 
+-include(CheckIPOSupported)
+ include(CheckIncludeFiles)
+ include(CheckFunctionExists)
+ include(CheckPrototypeDefinition)
+@@ -126,13 +125,6 @@ with open(join('${CMAKE_SOURCE_DIR}','qadic', 
'CPimport.txt')) as fin:
+ )
+ configure_file(${CMAKE_BINARY_DIR}/CPimport.h.in 
${CMAKE_BINARY_DIR}/CPimport.h COPYONLY)
+ 
+-# Setup for flint-config.h
+-check_c_compiler_flag("-mpopcnt" HAS_FLAG_MPOPCNT)
+-check_c_compiler_flag("-funroll-loops" HAS_FLAG_UNROLL_LOOPS)
+-
+-if(HAS_FLAG_MPOPCNT)
+-  set(CMAKE_REQUIRED_FLAGS "-mpopcnt")
+-endif()
+ # Testing __builtin_popcountl...
+ check_c_source_runs([[int main(int argc, char ** argv) {
+   #if defined(_WIN64)
+@@ -141,7 +133,6 @@ check_c_source_runs([[int main(int argc, char ** argv) {
+   return __builtin_popcountl(argc) == 100;
+   #endif
+   }]] FLINT_USES_POPCNT)
+-unset(CMAKE_REQUIRED_FLAGS)
+ 
+ # fenv configuration
+ check_c_source_compiles([[#include 
+@@ -250,13 +241,6 @@ if(BUILD_SHARED_LIBS AND WIN32)
+ target_compile_definitions(flint PUBLIC "MSC_USE_DLL")
+ endif()
+ 
+-if (HAS_FLAG_MPOPCNT)
+-target_compile_options(flint PUBLIC "-mpopcnt")
+-endif()
+-if (HAS_FLAG_UNROLL_LOOPS)
+-target_compile_options(flint PUBLIC "-funroll-loops")
+-endif()
+-
+ # Versioning
+ 
+ set_target_properties(flint PROPERTIES
+@@ -279,21 +263,6 @@ elseif (WIN32)
+ set_target_properties(flint PROPERTIES RUNTIME_OUTPUT_NAME 
"flint-${FLINT_MAJOR}")
+ endif()
+ 
+-if(NOT DEFINED IPO_SUPPORTED)
+-message(STATUS "Checking for IPO")
+-check_ipo_supported(RESULT ipo_supported LANGUAGES C)
+-if(ipo_supported)
+-message(STATUS "Checking for IPO - found")
+-else()
+-message(STATUS "Checking for IPO - not found")
+-endif()
+-set(IPO_SUPPORTED ${ipo_supported} CACHE INTERNAL "Introprocedural 
Optimization" FORCE)
+-endif()
+-
+-if(IPO_SUPPORTED)
+-set_target_properties(flint PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
+-endif()
+-
+ if(NOT MSVC)
+   target_link_libraries(flint PUBLIC m)
+ endif()

diff --git a/sci-mathematics/flint/flint-2.9.0.ebuild 
b/sci-mathematics/flint/flint-2.9.0.ebuild
index 5a1fb677b0b8..494339dd488e 100644
--- a/sci-mathematics/flint/flint-2.9.0.ebuild
+++ b/sci-mathematics/flint/flint-2.9.0.ebuild
@@ -41,6 +41,7 @@ DEPEND="dev-libs/gmp:=
 RDEPEND="${DEPEND}"
 
 S="${WORKDIR}/flint2-${PV}"
+PATCHES=( "${FILESDIR}/${PN}-2.9.0-remove-hardcoded-CFLAGS.patch" )
 
 src_prepare() {
# https://github.com/wbhart/flint2/issues/1140



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2023-04-16 Thread WANG Xuerui
commit: 5219e3bd105b8eb8ecebb1131cb5b77ac9ebf7ce
Author: WANG Xuerui  gentoo  org>
AuthorDate: Sun Apr 16 04:46:31 2023 +
Commit: WANG Xuerui  gentoo  org>
CommitDate: Sun Apr 16 12:03:01 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5219e3bd

sci-mathematics/flint: keyword 2.9.0 for ~loong

Signed-off-by: WANG Xuerui  gentoo.org>

 sci-mathematics/flint/flint-2.9.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flint/flint-2.9.0.ebuild 
b/sci-mathematics/flint/flint-2.9.0.ebuild
index 0880ba0b8068..5a8694e18bfc 100644
--- a/sci-mathematics/flint/flint-2.9.0.ebuild
+++ b/sci-mathematics/flint/flint-2.9.0.ebuild
@@ -21,7 +21,7 @@ LICENSE="LGPL-2.1+"
 # Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
 SLOT="0/17"
 
-KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv x86"
+KEYWORDS="amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv x86"
 IUSE="doc ntl test"
 
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/, sci-mathematics/flint/files/

2022-12-19 Thread Andreas Sturmlechner
commit: c538f82307e643d0b373e7b3dee488d2e7fcae1f
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sun Dec 18 11:47:51 2022 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Mon Dec 19 14:44:55 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c538f823

sci-mathematics/flint: drop 2.7.1-r1

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 sci-mathematics/flint/Manifest |   1 -
 .../files/flint-2.7.1-fix-cmake-findgmp.patch  | 146 -
 sci-mathematics/flint/flint-2.7.1-r1.ebuild|  70 --
 3 files changed, 217 deletions(-)

diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index 7e848b2cdf98..4106b7b4242d 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1,4 +1,3 @@
-DIST flint-2.7.1.tar.gz 4945081 BLAKE2B 
9dcc4b0062be08778cd8ada1794a73237ea091a7bff4a4673aa59eac9b414ed90e0291b9547bdf72aa30e48da11f98ff983267ea2e3dd1d75fcec00b24c86ca9
 SHA512 
abea97228e91089d82a9a44714e719064bef261c45f5f5b24700955bb841cc98a8182e04e6054fcbcaa3bd92f2f95a82bd5d168ec2171af6a58d4f71eb0a479a
 DIST flint-2.8.4.tar.gz 5212964 BLAKE2B 
ddd3b9dca76ddac2070d3e12dfc4c5ea1a3b505c7bf28e41489798798d65ed2a5db12e01059816d42e5d1209166d17ee6035dcf0a94d991f78df59c6ad06b271
 SHA512 
1f66574a5f2f27e1f3cd0a334712c0e64f4a4b8dd57179a71f9adba4c4faff23ba8da3993f51c4f44f52a588d0d1678b1e1a272e8fe3367f2abc88e9d86ad804
 DIST flint-2.8.5.tar.gz 5212805 BLAKE2B 
8922a2925b68d93fd35aa5b78eb0b8cbc6aa609498b8846ce4ff036c2fece3932a0eabb0f04a5c152147d8df3eccd6570832f55dafe4f7a35de135246454a83d
 SHA512 
849fb61612f3becfde0d8afc019a9312a7ea07d3000a6bc558eb82babecd737e3af894d3084e4a57d52f7db0403d7298cbfa277b08e2b1f5497897637ed4825f
 DIST flint-2.9.0.tar.gz 5283894 BLAKE2B 
a790437ee142d8acb5cec1e6c7d21812f8d83f5d30d1e8c07e799713e96791d87792f25fbd4ce2d0d68f6a8ee2f0cde2b8d9f8db8ab26922a48485e0e90394aa
 SHA512 
4494cba6a4e215e817d7c74ef6834c4e05a832488f4808bbd7bea8b02a4a35d47ef3c63a4f213230c712b32842f5588c503fc1cf23e5e2ddc4a4a5a1627a02ba

diff --git a/sci-mathematics/flint/files/flint-2.7.1-fix-cmake-findgmp.patch 
b/sci-mathematics/flint/files/flint-2.7.1-fix-cmake-findgmp.patch
deleted file mode 100644
index ca6e56ce1970..
--- a/sci-mathematics/flint/files/flint-2.7.1-fix-cmake-findgmp.patch
+++ /dev/null
@@ -1,146 +0,0 @@
-From 41c4a0869d68d894cbe74a63612df75fd1e93bdf Mon Sep 17 00:00:00 2001
-From: Michael Orlitzky 
-Date: Mon, 19 Apr 2021 16:56:54 -0400
-Subject: [PATCH 1/1] CMake/FindGMP.cmake: compile a test program to check the
- gmp version.
-
-The existing GMP version check consists of grepping the contents of
-the gmp.h header to parse out a few constants. This test fails, at
-least, on Gentoo, where the usual header file is a wrapper that
-includes the true header to allow for simultaneous 32/64-bit
-support.
-
-This commit updates FindGMP to compile a test program against gmp.h
-that compares version constants using the C preprocessor. If GMP is
-too old, the test program will fail to compile and CMake will know.

- CMake/FindGMP.cmake | 91 +++--
- 1 file changed, 47 insertions(+), 44 deletions(-)
-
-diff --git a/CMake/FindGMP.cmake b/CMake/FindGMP.cmake
-index ce4df70f5..951151274 100644
 a/CMake/FindGMP.cmake
-+++ b/CMake/FindGMP.cmake
-@@ -2,28 +2,23 @@
- # https://gmplib.org/
- #
- # This module supports requiring a minimum version, e.g. you can do
--#   find_package(GMP 6.0.0)
--# to require version 6.0.0 to newer of GMP.
-+#   find_package(GMP 6.2.1)
-+# to require version 6.2.1 to newer of GMP.
- #
- # Once done this will define
- #
- #  GMP_FOUND - system has GMP lib with correct version
- #  GMP_INCLUDE_DIRS - the GMP include directory
- #  GMP_LIBRARIES - the GMP library
--#  GMP_VERSION - GMP version
- #
--# Copyright (c) 2016 Jack Poulson, 
--# Redistribution and use is allowed according to the terms of the BSD license.
- 
--find_path(GMP_INCLUDE_DIRS NAMES gmp.h PATHS $ENV{GMPDIR} 
${INCLUDE_INSTALL_DIR})
--
--# Set GMP_FIND_VERSION to 5.1.0 if no minimum version is specified
-+# Set GMP_FIND_VERSION to 6.0.0 if no minimum version is specified
- if(NOT GMP_FIND_VERSION)
-   if(NOT GMP_FIND_VERSION_MAJOR)
--set(GMP_FIND_VERSION_MAJOR 5)
-+set(GMP_FIND_VERSION_MAJOR 6)
-   endif()
-   if(NOT GMP_FIND_VERSION_MINOR)
--set(GMP_FIND_VERSION_MINOR 1)
-+set(GMP_FIND_VERSION_MINOR 0)
-   endif()
-   if(NOT GMP_FIND_VERSION_PATCH)
- set(GMP_FIND_VERSION_PATCH 0)
-@@ -32,43 +27,51 @@ if(NOT GMP_FIND_VERSION)
- 
"${GMP_FIND_VERSION_MAJOR}.${GMP_FIND_VERSION_MINOR}.${GMP_FIND_VERSION_PATCH}")
- endif()
- 
--if(GMP_INCLUDE_DIRS)
--  # Since the GMP version macros may be in a file included by gmp.h of the 
form
--  # gmp-.*[_]?.*.h (e.g., gmp-x86_64.h), we search each of them.
--  file(GLOB GMP_HEADERS "${GMP_INCLUDE_DIRS}/gmp.h" 
"${GMP_INCLUDE_DIRS}/gmp-*.h"
--

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2022-11-18 Thread Arthur Zamarin
commit: db7c65d755c71c95fd43f68026530681b7a3b601
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Nov 18 17:29:16 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Nov 18 17:29:16 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db7c65d7

sci-mathematics/flint: Keyword 2.9.0 ppc64, #871921

Signed-off-by: Arthur Zamarin  gentoo.org>

 sci-mathematics/flint/flint-2.9.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flint/flint-2.9.0.ebuild 
b/sci-mathematics/flint/flint-2.9.0.ebuild
index 1b1aa8915415..f83f48dc3a62 100644
--- a/sci-mathematics/flint/flint-2.9.0.ebuild
+++ b/sci-mathematics/flint/flint-2.9.0.ebuild
@@ -21,7 +21,7 @@ LICENSE="LGPL-2.1+"
 # Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
 SLOT="0/17"
 
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~riscv ~x86"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
 IUSE="doc ntl test"
 
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2022-07-01 Thread Michael Orlitzky
commit: 88db6359f6661e89204104cdf698cb2ff551faeb
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Fri Jul  1 11:39:32 2022 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Fri Jul  1 21:28:35 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88db6359

sci-mathematics/flint: new upstream v2.9.0.

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Michael Orlitzky  gentoo.org>

 sci-mathematics/flint/Manifest   |  1 +
 sci-mathematics/flint/flint-2.9.0.ebuild | 80 
 2 files changed, 81 insertions(+)

diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index ecd1105730d7..7e848b2cdf98 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1,3 +1,4 @@
 DIST flint-2.7.1.tar.gz 4945081 BLAKE2B 
9dcc4b0062be08778cd8ada1794a73237ea091a7bff4a4673aa59eac9b414ed90e0291b9547bdf72aa30e48da11f98ff983267ea2e3dd1d75fcec00b24c86ca9
 SHA512 
abea97228e91089d82a9a44714e719064bef261c45f5f5b24700955bb841cc98a8182e04e6054fcbcaa3bd92f2f95a82bd5d168ec2171af6a58d4f71eb0a479a
 DIST flint-2.8.4.tar.gz 5212964 BLAKE2B 
ddd3b9dca76ddac2070d3e12dfc4c5ea1a3b505c7bf28e41489798798d65ed2a5db12e01059816d42e5d1209166d17ee6035dcf0a94d991f78df59c6ad06b271
 SHA512 
1f66574a5f2f27e1f3cd0a334712c0e64f4a4b8dd57179a71f9adba4c4faff23ba8da3993f51c4f44f52a588d0d1678b1e1a272e8fe3367f2abc88e9d86ad804
 DIST flint-2.8.5.tar.gz 5212805 BLAKE2B 
8922a2925b68d93fd35aa5b78eb0b8cbc6aa609498b8846ce4ff036c2fece3932a0eabb0f04a5c152147d8df3eccd6570832f55dafe4f7a35de135246454a83d
 SHA512 
849fb61612f3becfde0d8afc019a9312a7ea07d3000a6bc558eb82babecd737e3af894d3084e4a57d52f7db0403d7298cbfa277b08e2b1f5497897637ed4825f
+DIST flint-2.9.0.tar.gz 5283894 BLAKE2B 
a790437ee142d8acb5cec1e6c7d21812f8d83f5d30d1e8c07e799713e96791d87792f25fbd4ce2d0d68f6a8ee2f0cde2b8d9f8db8ab26922a48485e0e90394aa
 SHA512 
4494cba6a4e215e817d7c74ef6834c4e05a832488f4808bbd7bea8b02a4a35d47ef3c63a4f213230c712b32842f5588c503fc1cf23e5e2ddc4a4a5a1627a02ba

diff --git a/sci-mathematics/flint/flint-2.9.0.ebuild 
b/sci-mathematics/flint/flint-2.9.0.ebuild
new file mode 100644
index ..1b1aa8915415
--- /dev/null
+++ b/sci-mathematics/flint/flint-2.9.0.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# ninja doesn't like "-lcblas" so using make.
+CMAKE_MAKEFILE_GENERATOR="emake"
+PYTHON_COMPAT=( python3_{8..11} )
+inherit cmake python-any-r1
+
+DESCRIPTION="Fast Library for Number Theory"
+HOMEPAGE="http://www.flintlib.org/;
+
+# flintlib.org tarballs have been broken in the past, Bill Hart suggests
+# we get them from Github (which he has control over).
+SRC_URI="https://github.com/wbhart/flint2/archive/refs/tags/v${PV}.tar.gz
+   -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1+"
+
+# Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
+SLOT="0/17"
+
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~riscv ~x86"
+IUSE="doc ntl test"
+
+RESTRICT="!test? ( test )"
+
+BDEPEND="doc? (
+   dev-python/sphinx
+   app-text/texlive-core
+   dev-texlive/texlive-latex
+   dev-texlive/texlive-latexextra
+   dev-tex/latexmk
+   )
+   ${PYTHON_DEPS}"
+DEPEND="dev-libs/gmp:=
+   dev-libs/mpfr:=
+   ntl? ( dev-libs/ntl:= )
+   virtual/cblas"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/flint2-${PV}"
+
+src_prepare() {
+   # https://github.com/wbhart/flint2/issues/1140
+   rm test/t-sdiv_qrnnd.c || die
+   cmake_src_prepare
+}
+
+src_configure() {
+   local mycmakeargs=(
+   -DWITH_NTL="$(usex ntl)"
+   -DBUILD_TESTING="$(usex test)"
+   -DBUILD_DOCS="$(usex doc)"
+   -DCBLAS_INCLUDE_DIRS="${EPREFIX}/usr/include"
+   -DCBLAS_LIBRARIES="-lcblas"
+   )
+
+   cmake_src_configure
+
+   if use doc ; then
+   HTML_DOCS="${BUILD_DIR}/html/*"
+   DOCS=(
+   "${S}"/README
+   "${S}"/AUTHORS
+   "${S}"/NEWS
+   "${BUILD_DIR}"/latex/Flint.pdf
+   )
+   fi
+}
+
+src_compile() {
+   cmake_src_compile
+
+   if use doc ; then
+   cmake_build html
+   cmake_build pdf
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2022-05-26 Thread Michael Orlitzky
commit: 6398cd0e60eccff4466a9b5a38be3e25baa49e25
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Wed May 25 22:10:26 2022 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Thu May 26 22:19:09 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6398cd0e

sci-mathematics/flint: new upstream v2.8.5.

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Michael Orlitzky  gentoo.org>

 sci-mathematics/flint/Manifest   |  1 +
 sci-mathematics/flint/flint-2.8.5.ebuild | 80 
 2 files changed, 81 insertions(+)

diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index 02d1fe23a9fa..ecd1105730d7 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1,2 +1,3 @@
 DIST flint-2.7.1.tar.gz 4945081 BLAKE2B 
9dcc4b0062be08778cd8ada1794a73237ea091a7bff4a4673aa59eac9b414ed90e0291b9547bdf72aa30e48da11f98ff983267ea2e3dd1d75fcec00b24c86ca9
 SHA512 
abea97228e91089d82a9a44714e719064bef261c45f5f5b24700955bb841cc98a8182e04e6054fcbcaa3bd92f2f95a82bd5d168ec2171af6a58d4f71eb0a479a
 DIST flint-2.8.4.tar.gz 5212964 BLAKE2B 
ddd3b9dca76ddac2070d3e12dfc4c5ea1a3b505c7bf28e41489798798d65ed2a5db12e01059816d42e5d1209166d17ee6035dcf0a94d991f78df59c6ad06b271
 SHA512 
1f66574a5f2f27e1f3cd0a334712c0e64f4a4b8dd57179a71f9adba4c4faff23ba8da3993f51c4f44f52a588d0d1678b1e1a272e8fe3367f2abc88e9d86ad804
+DIST flint-2.8.5.tar.gz 5212805 BLAKE2B 
8922a2925b68d93fd35aa5b78eb0b8cbc6aa609498b8846ce4ff036c2fece3932a0eabb0f04a5c152147d8df3eccd6570832f55dafe4f7a35de135246454a83d
 SHA512 
849fb61612f3becfde0d8afc019a9312a7ea07d3000a6bc558eb82babecd737e3af894d3084e4a57d52f7db0403d7298cbfa277b08e2b1f5497897637ed4825f

diff --git a/sci-mathematics/flint/flint-2.8.5.ebuild 
b/sci-mathematics/flint/flint-2.8.5.ebuild
new file mode 100644
index ..ade006fabbd2
--- /dev/null
+++ b/sci-mathematics/flint/flint-2.8.5.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# ninja doesn't like "-lcblas" so using make.
+CMAKE_MAKEFILE_GENERATOR="emake"
+PYTHON_COMPAT=( python3_{8..11} )
+inherit cmake python-any-r1
+
+DESCRIPTION="Fast Library for Number Theory"
+HOMEPAGE="http://www.flintlib.org/;
+
+# flintlib.org tarballs have been broken in the past, Bill Hart suggests
+# we get them from Github (which he has control over).
+SRC_URI="https://github.com/wbhart/flint2/archive/refs/tags/v${PV}.tar.gz
+   -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1+"
+
+# Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
+SLOT="0/16"
+
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~riscv ~x86"
+IUSE="doc ntl test"
+
+RESTRICT="!test? ( test )"
+
+BDEPEND="doc? (
+   dev-python/sphinx
+   app-text/texlive-core
+   dev-texlive/texlive-latex
+   dev-texlive/texlive-latexextra
+   dev-tex/latexmk
+   )
+   ${PYTHON_DEPS}"
+DEPEND="dev-libs/gmp:=
+   dev-libs/mpfr:=
+   ntl? ( dev-libs/ntl:= )
+   virtual/cblas"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/flint2-${PV}"
+
+src_prepare() {
+   # https://github.com/wbhart/flint2/issues/1140
+   rm test/t-sdiv_qrnnd.c || die
+   cmake_src_prepare
+}
+
+src_configure() {
+   local mycmakeargs=(
+   -DWITH_NTL="$(usex ntl)"
+   -DBUILD_TESTING="$(usex test)"
+   -DBUILD_DOCS="$(usex doc)"
+   -DCBLAS_INCLUDE_DIRS="${EPREFIX}/usr/include"
+   -DCBLAS_LIBRARIES="-lcblas"
+   )
+
+   cmake_src_configure
+
+   if use doc ; then
+   HTML_DOCS="${BUILD_DIR}/html/*"
+   DOCS=(
+   "${S}"/README
+   "${S}"/AUTHORS
+   "${S}"/NEWS
+   "${BUILD_DIR}"/latex/Flint.pdf
+   )
+   fi
+}
+
+src_compile() {
+   cmake_src_compile
+
+   if use doc ; then
+   cmake_build html
+   cmake_build pdf
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2022-01-18 Thread Jakov Smolić
commit: e78af3f44d7d903618c26a8de3eceecc76bdff7c
Author: Jakov Smolić  gentoo  org>
AuthorDate: Tue Jan 18 21:50:21 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Tue Jan 18 21:50:21 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e78af3f4

sci-mathematics/flint: Stabilize 2.8.4 x86, #831415

Signed-off-by: Jakov Smolić  gentoo.org>

 sci-mathematics/flint/flint-2.8.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flint/flint-2.8.4.ebuild 
b/sci-mathematics/flint/flint-2.8.4.ebuild
index 8d2f8f435dc2..604d35b47fd9 100644
--- a/sci-mathematics/flint/flint-2.8.4.ebuild
+++ b/sci-mathematics/flint/flint-2.8.4.ebuild
@@ -21,7 +21,7 @@ LICENSE="LGPL-2.1+"
 # Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
 SLOT="0/16"
 
-KEYWORDS="amd64 ~arm ~arm64 ~ppc ~riscv ~x86"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc ~riscv x86"
 IUSE="doc ntl test"
 
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2022-01-18 Thread Jakov Smolić
commit: fd9690e1bd95114bf75a8c0fcc1fae85e2241938
Author: Jakov Smolić  gentoo  org>
AuthorDate: Tue Jan 18 21:50:03 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Tue Jan 18 21:50:03 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd9690e1

sci-mathematics/flint: Stabilize 2.8.4 amd64, #831415

Signed-off-by: Jakov Smolić  gentoo.org>

 sci-mathematics/flint/flint-2.8.4.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-mathematics/flint/flint-2.8.4.ebuild 
b/sci-mathematics/flint/flint-2.8.4.ebuild
index 216026f6df27..8d2f8f435dc2 100644
--- a/sci-mathematics/flint/flint-2.8.4.ebuild
+++ b/sci-mathematics/flint/flint-2.8.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -21,7 +21,7 @@ LICENSE="LGPL-2.1+"
 # Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
 SLOT="0/16"
 
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~riscv ~x86"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc ~riscv ~x86"
 IUSE="doc ntl test"
 
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2021-11-21 Thread Yixun Lan
commit: 121f62a48ee298665cfe4e8d8a2b10df6d81b1e2
Author: Alex Fan  gmail  com>
AuthorDate: Thu Nov 18 07:22:48 2021 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Mon Nov 22 03:01:21 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=121f62a4

sci-mathematics/flint: keyword 2.8.3 for ~riscv

Signed-off-by: Alex Fan  gmail.com>
Signed-off-by: Yixun Lan  gentoo.org>

 sci-mathematics/flint/flint-2.8.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flint/flint-2.8.4.ebuild 
b/sci-mathematics/flint/flint-2.8.4.ebuild
index 155984f2418a..216026f6df27 100644
--- a/sci-mathematics/flint/flint-2.8.4.ebuild
+++ b/sci-mathematics/flint/flint-2.8.4.ebuild
@@ -21,7 +21,7 @@ LICENSE="LGPL-2.1+"
 # Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
 SLOT="0/16"
 
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~riscv ~x86"
 IUSE="doc ntl test"
 
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2021-11-18 Thread Georgy Yakovlev
commit: d6ed3fbf24c0f4118264797656315d72ffb6b230
Author: Georgy Yakovlev  gentoo  org>
AuthorDate: Thu Nov 18 23:44:36 2021 +
Commit: Georgy Yakovlev  gentoo  org>
CommitDate: Thu Nov 18 23:50:14 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6ed3fbf

sci-mathematics/flint: de-stabilize for ~ppc, bug #823768

Bug: https://bugs.gentoo.org/823768
Signed-off-by: Georgy Yakovlev  gentoo.org>

 sci-mathematics/flint/flint-2.7.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flint/flint-2.7.1-r1.ebuild 
b/sci-mathematics/flint/flint-2.7.1-r1.ebuild
index 7086b59e6308..f8e7471260ea 100644
--- a/sci-mathematics/flint/flint-2.7.1-r1.ebuild
+++ b/sci-mathematics/flint/flint-2.7.1-r1.ebuild
@@ -17,7 +17,7 @@ LICENSE="LGPL-2.1+"
 # Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
 SLOT="0/15"
 
-KEYWORDS="amd64 ~arm ~arm64 ppc x86"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc x86"
 IUSE="doc ntl test"
 
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2021-11-17 Thread Michael Orlitzky
commit: f09ea032f7daf9fdc545a54cfee8ef885ec79ade
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Wed Nov 17 21:06:46 2021 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Wed Nov 17 23:56:58 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f09ea032

sci-mathematics/flint: new upstream version 2.8.4.

The CXX interface is now marked "unmaintained" in this release, and
its documentation has been moved into a plain text file. This should
take care of the documentation build problems in recent releases.

Closes: https://bugs.gentoo.org/816822
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Michael Orlitzky  gentoo.org>

 sci-mathematics/flint/Manifest   | 2 +-
 sci-mathematics/flint/{flint-2.8.3.ebuild => flint-2.8.4.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index 5035c1a47d37..02d1fe23a9fa 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1,2 +1,2 @@
 DIST flint-2.7.1.tar.gz 4945081 BLAKE2B 
9dcc4b0062be08778cd8ada1794a73237ea091a7bff4a4673aa59eac9b414ed90e0291b9547bdf72aa30e48da11f98ff983267ea2e3dd1d75fcec00b24c86ca9
 SHA512 
abea97228e91089d82a9a44714e719064bef261c45f5f5b24700955bb841cc98a8182e04e6054fcbcaa3bd92f2f95a82bd5d168ec2171af6a58d4f71eb0a479a
-DIST flint-2.8.3.tar.gz 5212158 BLAKE2B 
4e9e98565399313cc78e86e00af42c780937f0c3be1f7305122e7f23d0a9d93766726818d371657a31eaf80fe692253cde889c9e13c2b47cc5b4c023baba5bdc
 SHA512 
0ce5f92619655826ef0064403dcaa539dde336e404c9a7e85cb4baaed40438886eecdfb36d6b56ee87a1373a010da798e122ee216e88b861e51de7612d5ba501
+DIST flint-2.8.4.tar.gz 5212964 BLAKE2B 
ddd3b9dca76ddac2070d3e12dfc4c5ea1a3b505c7bf28e41489798798d65ed2a5db12e01059816d42e5d1209166d17ee6035dcf0a94d991f78df59c6ad06b271
 SHA512 
1f66574a5f2f27e1f3cd0a334712c0e64f4a4b8dd57179a71f9adba4c4faff23ba8da3993f51c4f44f52a588d0d1678b1e1a272e8fe3367f2abc88e9d86ad804

diff --git a/sci-mathematics/flint/flint-2.8.3.ebuild 
b/sci-mathematics/flint/flint-2.8.4.ebuild
similarity index 100%
rename from sci-mathematics/flint/flint-2.8.3.ebuild
rename to sci-mathematics/flint/flint-2.8.4.ebuild



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2021-11-03 Thread Michael Orlitzky
commit: 5d25fb125b5d9a4b03f8fa6840c56ef87615134d
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Wed Nov  3 15:04:09 2021 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Wed Nov  3 21:03:25 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d25fb12

sci-mathematics/flint: new upstream version 2.8.3.

This contains an important mathematical bugfix, but USE=doc still
isn't usable (for a new reason though).

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Michael Orlitzky  gentoo.org>

 sci-mathematics/flint/Manifest   |  2 +-
 .../flint/{flint-2.8.1.ebuild => flint-2.8.3.ebuild} | 12 +---
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index 5712997a6c5..5035c1a47d3 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1,2 +1,2 @@
 DIST flint-2.7.1.tar.gz 4945081 BLAKE2B 
9dcc4b0062be08778cd8ada1794a73237ea091a7bff4a4673aa59eac9b414ed90e0291b9547bdf72aa30e48da11f98ff983267ea2e3dd1d75fcec00b24c86ca9
 SHA512 
abea97228e91089d82a9a44714e719064bef261c45f5f5b24700955bb841cc98a8182e04e6054fcbcaa3bd92f2f95a82bd5d168ec2171af6a58d4f71eb0a479a
-DIST flint-2.8.1.tar.gz 5211285 BLAKE2B 
a200654190868931e4db94d3100605527cfbcbe3f95bae450187750641017869ae788d79fc568aa25b16f1c1c02a73e15e6739278b035780ad56754215858058
 SHA512 
8629e4d4bc374128e26447a60b63906e78b2d1c9f66658ce763a7eb89f851cf1aea8b2f328a9aeb0f785cfdab9a492d7de55032990ef395da7a1034ee25fb520
+DIST flint-2.8.3.tar.gz 5212158 BLAKE2B 
4e9e98565399313cc78e86e00af42c780937f0c3be1f7305122e7f23d0a9d93766726818d371657a31eaf80fe692253cde889c9e13c2b47cc5b4c023baba5bdc
 SHA512 
0ce5f92619655826ef0064403dcaa539dde336e404c9a7e85cb4baaed40438886eecdfb36d6b56ee87a1373a010da798e122ee216e88b861e51de7612d5ba501

diff --git a/sci-mathematics/flint/flint-2.8.1.ebuild 
b/sci-mathematics/flint/flint-2.8.3.ebuild
similarity index 80%
rename from sci-mathematics/flint/flint-2.8.1.ebuild
rename to sci-mathematics/flint/flint-2.8.3.ebuild
index c0196d38a19..155984f2418 100644
--- a/sci-mathematics/flint/flint-2.8.1.ebuild
+++ b/sci-mathematics/flint/flint-2.8.3.ebuild
@@ -1,16 +1,20 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 # ninja doesn't like "-lcblas" so using make.
 CMAKE_MAKEFILE_GENERATOR="emake"
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{7..10} )
 inherit cmake python-any-r1
 
 DESCRIPTION="Fast Library for Number Theory"
 HOMEPAGE="http://www.flintlib.org/;
-SRC_URI="http://www.flintlib.org/${P}.tar.gz;
+
+# flintlib.org tarballs have been broken in the past, Bill Hart suggests
+# we get them from Github (which he has control over).
+SRC_URI="https://github.com/wbhart/flint2/archive/refs/tags/v${PV}.tar.gz
+   -> ${P}.tar.gz"
 
 LICENSE="LGPL-2.1+"
 
@@ -36,6 +40,8 @@ DEPEND="dev-libs/gmp:=
virtual/cblas"
 RDEPEND="${DEPEND}"
 
+S="${WORKDIR}/flint2-${PV}"
+
 src_configure() {
local mycmakeargs=(
-DWITH_NTL="$(usex ntl)"



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2021-10-02 Thread Michael Orlitzky
commit: a7647af65c081bd124efb90b9dedd14e5dda
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Sat Oct  2 11:57:02 2021 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Sat Oct  2 15:01:37 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7647af6

sci-mathematics/flint: new bugfix release 2.8.1.

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Michael Orlitzky  gentoo.org>

 sci-mathematics/flint/Manifest   | 2 +-
 sci-mathematics/flint/{flint-2.8.0.ebuild => flint-2.8.1.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index 04321071c43..5712997a6c5 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1,2 +1,2 @@
 DIST flint-2.7.1.tar.gz 4945081 BLAKE2B 
9dcc4b0062be08778cd8ada1794a73237ea091a7bff4a4673aa59eac9b414ed90e0291b9547bdf72aa30e48da11f98ff983267ea2e3dd1d75fcec00b24c86ca9
 SHA512 
abea97228e91089d82a9a44714e719064bef261c45f5f5b24700955bb841cc98a8182e04e6054fcbcaa3bd92f2f95a82bd5d168ec2171af6a58d4f71eb0a479a
-DIST flint-2.8.0.tar.gz 5209922 BLAKE2B 
801c6130b3e8119998c3288d243358f567a843597c425cf5edcd37f6dd0f71a5d796e5dc3c8f3ffb8407f8e6dc01a3f4c62daa758e62eee2bbbf6ed07f1721e0
 SHA512 
91125f7c3aaccb40768091c36c11b5fb5d1e5010e7cb71145d18d348606baa1e72aeae27baa826c00c4a190c39ef19af9488357d0d5634a7c5774e9aeeaef3fc
+DIST flint-2.8.1.tar.gz 5211285 BLAKE2B 
a200654190868931e4db94d3100605527cfbcbe3f95bae450187750641017869ae788d79fc568aa25b16f1c1c02a73e15e6739278b035780ad56754215858058
 SHA512 
8629e4d4bc374128e26447a60b63906e78b2d1c9f66658ce763a7eb89f851cf1aea8b2f328a9aeb0f785cfdab9a492d7de55032990ef395da7a1034ee25fb520

diff --git a/sci-mathematics/flint/flint-2.8.0.ebuild 
b/sci-mathematics/flint/flint-2.8.1.ebuild
similarity index 100%
rename from sci-mathematics/flint/flint-2.8.0.ebuild
rename to sci-mathematics/flint/flint-2.8.1.ebuild



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2021-09-30 Thread Michael Orlitzky
commit: 5d6befa9534be892fb80ff06818f4d867d89590c
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Wed Sep 29 19:42:12 2021 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Thu Sep 30 11:50:39 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d6befa9

sci-mathematics/flint: new upstream version 2.8.0.

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Michael Orlitzky  gentoo.org>

 sci-mathematics/flint/Manifest   |  1 +
 sci-mathematics/flint/flint-2.8.0.ebuild | 68 
 2 files changed, 69 insertions(+)

diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index bf41b8b7db5..04321071c43 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1 +1,2 @@
 DIST flint-2.7.1.tar.gz 4945081 BLAKE2B 
9dcc4b0062be08778cd8ada1794a73237ea091a7bff4a4673aa59eac9b414ed90e0291b9547bdf72aa30e48da11f98ff983267ea2e3dd1d75fcec00b24c86ca9
 SHA512 
abea97228e91089d82a9a44714e719064bef261c45f5f5b24700955bb841cc98a8182e04e6054fcbcaa3bd92f2f95a82bd5d168ec2171af6a58d4f71eb0a479a
+DIST flint-2.8.0.tar.gz 5209922 BLAKE2B 
801c6130b3e8119998c3288d243358f567a843597c425cf5edcd37f6dd0f71a5d796e5dc3c8f3ffb8407f8e6dc01a3f4c62daa758e62eee2bbbf6ed07f1721e0
 SHA512 
91125f7c3aaccb40768091c36c11b5fb5d1e5010e7cb71145d18d348606baa1e72aeae27baa826c00c4a190c39ef19af9488357d0d5634a7c5774e9aeeaef3fc

diff --git a/sci-mathematics/flint/flint-2.8.0.ebuild 
b/sci-mathematics/flint/flint-2.8.0.ebuild
new file mode 100644
index 000..c0196d38a19
--- /dev/null
+++ b/sci-mathematics/flint/flint-2.8.0.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# ninja doesn't like "-lcblas" so using make.
+CMAKE_MAKEFILE_GENERATOR="emake"
+PYTHON_COMPAT=( python3_{7..9} )
+inherit cmake python-any-r1
+
+DESCRIPTION="Fast Library for Number Theory"
+HOMEPAGE="http://www.flintlib.org/;
+SRC_URI="http://www.flintlib.org/${P}.tar.gz;
+
+LICENSE="LGPL-2.1+"
+
+# Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
+SLOT="0/16"
+
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
+IUSE="doc ntl test"
+
+RESTRICT="!test? ( test )"
+
+BDEPEND="doc? (
+   dev-python/sphinx
+   app-text/texlive-core
+   dev-texlive/texlive-latex
+   dev-texlive/texlive-latexextra
+   dev-tex/latexmk
+   )
+   ${PYTHON_DEPS}"
+DEPEND="dev-libs/gmp:=
+   dev-libs/mpfr:=
+   ntl? ( dev-libs/ntl:= )
+   virtual/cblas"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+   local mycmakeargs=(
+   -DWITH_NTL="$(usex ntl)"
+   -DBUILD_TESTING="$(usex test)"
+   -DBUILD_DOCS="$(usex doc)"
+   -DCBLAS_INCLUDE_DIRS="${EPREFIX}/usr/include"
+   -DCBLAS_LIBRARIES="-lcblas"
+   )
+
+   cmake_src_configure
+
+   if use doc ; then
+   HTML_DOCS="${BUILD_DIR}/html/*"
+   DOCS=(
+   "${S}"/README
+   "${S}"/AUTHORS
+   "${S}"/NEWS
+   "${BUILD_DIR}"/latex/Flint.pdf
+   )
+   fi
+}
+
+src_compile() {
+   cmake_src_compile
+
+   if use doc ; then
+   cmake_build html
+   cmake_build pdf
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/, sci-mathematics/flint/files/

2021-08-07 Thread Michael Orlitzky
commit: 6f50af77c606fcf9477a8e8a34b9a6d698dcc3b8
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Sat Aug  7 03:29:28 2021 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Sat Aug  7 11:47:12 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f50af77

sci-mathematics/flint: remove old "unused" versions.

Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Michael Orlitzky  gentoo.org>

 sci-mathematics/flint/Manifest |  2 -
 .../flint/files/flint-2.5.2-memory_message.patch   | 16 -
 sci-mathematics/flint/files/flint-2.5.2-pie.patch  | 78 --
 sci-mathematics/flint/files/flint-2.5.2-utf8.patch | 13 
 .../flint/files/flint-2.6.0-multilib-strict.patch  | 20 --
 sci-mathematics/flint/files/flintxx-include.patch  | 19 --
 sci-mathematics/flint/flint-2.5.2-r1.ebuild| 74 
 sci-mathematics/flint/flint-2.6.3-r1.ebuild| 64 --
 sci-mathematics/flint/metadata.xml |  2 -
 9 files changed, 288 deletions(-)

diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index e1079aba8dc..bf41b8b7db5 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1,3 +1 @@
-DIST flint-2.5.2.tar.gz 2212242 BLAKE2B 
36b9b1f2acb1d79534d85884d755fddba3b8b40efbe92aeeecd7d1526cd21f0849054c30d23c565c6a13c609992cf22f56f5b640da15e1c7e6ba6840fc710d47
 SHA512 
cce36947b558aabecaf780171b4bbc0e1330c3b1a7e3580717584be5cab4991d33b190531c7995b224a3a440e28c4a610d6f781901e29f48ced12a9c5ba960a2
-DIST flint-2.6.3.tar.gz 4526340 BLAKE2B 
d663b44166cd857f83c2752eb4d4f6dc45eb8de535089e5dbe9939ac1464f1d69f66b62184644fff1ecd1d171f389d5ab874873def670c702733a0eba17bfd13
 SHA512 
8e71570364c789b1d4eaaa5f5adf10212cab47bf1a9f45c333211035ed021a86bb7b1de1feec51e83b2e113e8168853e370f127d2d2b1e941a12aec71fe8ae9e
 DIST flint-2.7.1.tar.gz 4945081 BLAKE2B 
9dcc4b0062be08778cd8ada1794a73237ea091a7bff4a4673aa59eac9b414ed90e0291b9547bdf72aa30e48da11f98ff983267ea2e3dd1d75fcec00b24c86ca9
 SHA512 
abea97228e91089d82a9a44714e719064bef261c45f5f5b24700955bb841cc98a8182e04e6054fcbcaa3bd92f2f95a82bd5d168ec2171af6a58d4f71eb0a479a

diff --git a/sci-mathematics/flint/files/flint-2.5.2-memory_message.patch 
b/sci-mathematics/flint/files/flint-2.5.2-memory_message.patch
deleted file mode 100644
index 65638aa7790..000
--- a/sci-mathematics/flint/files/flint-2.5.2-memory_message.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-This fixes a Python 3 doctest failure in
-rings/polynomial/polynomial_integer_dense_flint.pyx: see #28334.
-See https://github.com/wbhart/flint2/pull/585 for upstream PR
-
-diff --git a/memory_manager.c b/memory_manager.c
-index 04abf8a..bece9f5 100644
 a/memory_manager.c
-+++ b/memory_manager.c
-@@ -41,6 +41,7 @@ pthread_mutex_t register_lock;
- static void flint_memory_error()
- {
- flint_printf("Exception (FLINT memory_manager). Unable to allocate 
memory.\n");
-+fflush(stdout);
- abort();
- }
-

diff --git a/sci-mathematics/flint/files/flint-2.5.2-pie.patch 
b/sci-mathematics/flint/files/flint-2.5.2-pie.patch
deleted file mode 100644
index 442d0254e82..000
--- a/sci-mathematics/flint/files/flint-2.5.2-pie.patch
+++ /dev/null
@@ -1,78 +0,0 @@
-In newer binutils, ld options -r and -pie conflict.
-Patch due to Jörg-Volker Peetz
-(source : https://groups.google.com/d/msg/sage-devel/TduebNoZuBE/sEULolL0BQAJ),
-packaged by Emmanuel Charpentier
-
-diff -ru flint-2.5.2-orig/fq/Makefile flint-2.5.2-new/fq/Makefile
 flint-2.5.2-orig/fq/Makefile   2015-08-13 18:16:22.0 +0200
-+++ flint-2.5.2-new/fq/Makefile2016-11-07 18:41:09.148996528 +0100
-@@ -35,7 +35,7 @@
-   $(CC) $(CFLAGS) -c $(INCS) $< -o $@
- 
- $(MOD_LOBJ): $(LOBJS)
--  $(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib
-+  $(CC) $(ABI_FLAG) -r $^ -o $@ -nostdlib
- 
- $(BUILD_DIR)/%.lo: %.c
-   $(CC) $(PICFLAG) $(CFLAGS) $(INCS) -c $< -o $@
-diff -ru flint-2.5.2-orig/fq_poly/Makefile flint-2.5.2-new/fq_poly/Makefile
 flint-2.5.2-orig/fq_poly/Makefile  2015-08-13 18:16:22.0 +0200
-+++ flint-2.5.2-new/fq_poly/Makefile   2016-11-07 18:41:09.148996528 +0100
-@@ -35,7 +35,7 @@
-   $(CC) $(CFLAGS) -c $(INCS) $< -o $@
- 
- $(MOD_LOBJ): $(LOBJS)
--  $(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib
-+  $(CC) $(ABI_FLAG) -r $^ -o $@ -nostdlib
- 
- $(BUILD_DIR)/%.lo: %.c
-   $(CC) $(PICFLAG) $(CFLAGS) $(INCS) -c $< -o $@
-diff -ru flint-2.5.2-orig/Makefile.subdirs flint-2.5.2-new/Makefile.subdirs
 flint-2.5.2-orig/Makefile.subdirs  2015-08-13 18:16:22.0 +0200
-+++ flint-2.5.2-new/Makefile.subdirs   2016-11-07 18:41:09.144996522 +0100
-@@ -59,7 +59,7 @@
-   $(QUIET_CC) $(CC) $(CFLAGS) $(INCS) -c $< -o $@ -MMD -MP -MF 
"$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$@"
- 
- $(MOD_LOBJ): $(LOBJS)
--  $(QUIET_CC) $(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib
-+  $(QUIET_CC) $(CC) 

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2021-08-01 Thread Sam James
commit: e1e1fd0c91eb8aa3d50085324aee54db4efa6014
Author: Sam James  gentoo  org>
AuthorDate: Mon Aug  2 00:42:59 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Aug  2 00:42:59 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1e1fd0c

sci-mathematics/flint: Stabilize 2.7.1-r1 ppc, #792684

Signed-off-by: Sam James  gentoo.org>

 sci-mathematics/flint/flint-2.7.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flint/flint-2.7.1-r1.ebuild 
b/sci-mathematics/flint/flint-2.7.1-r1.ebuild
index f8e7471260e..7086b59e630 100644
--- a/sci-mathematics/flint/flint-2.7.1-r1.ebuild
+++ b/sci-mathematics/flint/flint-2.7.1-r1.ebuild
@@ -17,7 +17,7 @@ LICENSE="LGPL-2.1+"
 # Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
 SLOT="0/15"
 
-KEYWORDS="amd64 ~arm ~arm64 ~ppc x86"
+KEYWORDS="amd64 ~arm ~arm64 ppc x86"
 IUSE="doc ntl test"
 
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2021-05-31 Thread David Seifert
commit: 6d25bc2627dd66b3e3455d69bdfac82c85ae89c6
Author: David Seifert  gentoo  org>
AuthorDate: Mon May 31 20:45:15 2021 +
Commit: David Seifert  gentoo  org>
CommitDate: Mon May 31 20:45:15 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d25bc26

sci-mathematics/flint: drop inactive maintainer

Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: David Seifert  gentoo.org>

 sci-mathematics/flint/metadata.xml | 5 -
 1 file changed, 5 deletions(-)

diff --git a/sci-mathematics/flint/metadata.xml 
b/sci-mathematics/flint/metadata.xml
index d7a6c834fe0..d0d5374ab2f 100644
--- a/sci-mathematics/flint/metadata.xml
+++ b/sci-mathematics/flint/metadata.xml
@@ -1,11 +1,6 @@
 
 http://www.gentoo.org/dtd/metadata.dtd;>
 
-  
-patr...@gentoo.org
-Patrick Lauer
-  
-
   
 m...@gentoo.org
   



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2021-05-29 Thread Agostino Sarubbo
commit: b30c748d5070e9f719c2220e3250a25eec22f67e
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sat May 29 08:53:01 2021 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sat May 29 08:53:01 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b30c748d

sci-mathematics/flint: x86 stable wrt bug #792684

Package-Manager: Portage-3.0.13, Repoman-3.0.2
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 sci-mathematics/flint/flint-2.7.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flint/flint-2.7.1-r1.ebuild 
b/sci-mathematics/flint/flint-2.7.1-r1.ebuild
index bc978900cef..f8e7471260e 100644
--- a/sci-mathematics/flint/flint-2.7.1-r1.ebuild
+++ b/sci-mathematics/flint/flint-2.7.1-r1.ebuild
@@ -17,7 +17,7 @@ LICENSE="LGPL-2.1+"
 # Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
 SLOT="0/15"
 
-KEYWORDS="amd64 ~arm ~arm64 ~ppc ~x86"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc x86"
 IUSE="doc ntl test"
 
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2021-05-29 Thread Agostino Sarubbo
commit: 22494b845f64ebb8202ea4a8690e8cee96acb4ba
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sat May 29 08:41:01 2021 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sat May 29 08:41:01 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22494b84

sci-mathematics/flint: amd64 stable wrt bug #792684

Package-Manager: Portage-3.0.13, Repoman-3.0.2
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 sci-mathematics/flint/flint-2.7.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flint/flint-2.7.1-r1.ebuild 
b/sci-mathematics/flint/flint-2.7.1-r1.ebuild
index 912adc940b1..bc978900cef 100644
--- a/sci-mathematics/flint/flint-2.7.1-r1.ebuild
+++ b/sci-mathematics/flint/flint-2.7.1-r1.ebuild
@@ -17,7 +17,7 @@ LICENSE="LGPL-2.1+"
 # Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
 SLOT="0/15"
 
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc ~x86"
 IUSE="doc ntl test"
 
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/files/

2021-05-28 Thread Michael Orlitzky
commit: 23c86f8f7da0613fef04521842168147f21bfc62
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Fri May 28 19:09:42 2021 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Fri May 28 19:27:46 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23c86f8f

sci-mathematics/flint: update GMP detection patch.

The new patch to fix detection of GMP was unnecessarily hostile to
cross-compiling, but someone was nice enough to point it out on the
upstream pull request. Here's the patch that was accepted upstream.

Closes: https://bugs.gentoo.org/771663
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Michael Orlitzky  gentoo.org>

 .../files/flint-2.7.1-fix-cmake-findgmp.patch  | 72 ++
 1 file changed, 33 insertions(+), 39 deletions(-)

diff --git a/sci-mathematics/flint/files/flint-2.7.1-fix-cmake-findgmp.patch 
b/sci-mathematics/flint/files/flint-2.7.1-fix-cmake-findgmp.patch
index d94d65c08d7..ca6e56ce197 100644
--- a/sci-mathematics/flint/files/flint-2.7.1-fix-cmake-findgmp.patch
+++ b/sci-mathematics/flint/files/flint-2.7.1-fix-cmake-findgmp.patch
@@ -1,4 +1,4 @@
-From 9f1ef23f34a7ceca1063606cfc749e4d32bef81c Mon Sep 17 00:00:00 2001
+From 41c4a0869d68d894cbe74a63612df75fd1e93bdf Mon Sep 17 00:00:00 2001
 From: Michael Orlitzky 
 Date: Mon, 19 Apr 2021 16:56:54 -0400
 Subject: [PATCH 1/1] CMake/FindGMP.cmake: compile a test program to check the
@@ -7,18 +7,18 @@ Subject: [PATCH 1/1] CMake/FindGMP.cmake: compile a test 
program to check the
 The existing GMP version check consists of grepping the contents of
 the gmp.h header to parse out a few constants. This test fails, at
 least, on Gentoo, where the usual header file is a wrapper that
-includes the true header (to allow for simultaneous 32/64-bit
-support).
+includes the true header to allow for simultaneous 32/64-bit
+support.
 
-This commit updates the FindGMP check to compile a test program
-against gmp.h that compares the version bounds within C, and reports
-success or failure as the return value from main().
+This commit updates FindGMP to compile a test program against gmp.h
+that compares version constants using the C preprocessor. If GMP is
+too old, the test program will fail to compile and CMake will know.
 ---
- CMake/FindGMP.cmake | 97 +
- 1 file changed, 53 insertions(+), 44 deletions(-)
+ CMake/FindGMP.cmake | 91 +++--
+ 1 file changed, 47 insertions(+), 44 deletions(-)
 
 diff --git a/CMake/FindGMP.cmake b/CMake/FindGMP.cmake
-index ce4df70f5..bd2871ca3 100644
+index ce4df70f5..951151274 100644
 --- a/CMake/FindGMP.cmake
 +++ b/CMake/FindGMP.cmake
 @@ -2,28 +2,23 @@
@@ -55,7 +55,7 @@ index ce4df70f5..bd2871ca3 100644
endif()
if(NOT GMP_FIND_VERSION_PATCH)
  set(GMP_FIND_VERSION_PATCH 0)
-@@ -32,43 +27,57 @@ if(NOT GMP_FIND_VERSION)
+@@ -32,43 +27,51 @@ if(NOT GMP_FIND_VERSION)
  
"${GMP_FIND_VERSION_MAJOR}.${GMP_FIND_VERSION_MINOR}.${GMP_FIND_VERSION_PATCH}")
  endif()
  
@@ -102,42 +102,36 @@ index ce4df70f5..bd2871ca3 100644
 +
 +if(GMP_INCLUDE_DIRS AND GMP_LIBRARIES)
 +
-+  # Return "1" if the version is OK, or "0" otherwise.  This is
-+  # opposite the usual C program conventions, but makes the purpose of
-+  # the result variable semantically clear. We create an integer using
-+  # a few basic GMP functions to ensure that we can actually link against
-+  # the GMP library.
++  # This program will fail to compile if GMP is too old.
++  # We prefer to perform this "test" at compile-time to
++  # avoid problems with e.g. try_run() during cross-compilation.
 +  file(WRITE ${PROJECT_BINARY_DIR}/gmp-version-check.c ""
 +  "#include \n"
 +  "\n"
-+  "int main(int argc, char **argv) {\n"
-+  "  mpz_t x;\n"
-+  "  mpz_init_set_str(x, \"7612058254738945\", 10);\n"
-+  "  mpz_clear(x);\n"
-+  "  if (__GNU_MP_VERSION < ${GMP_FIND_VERSION_MAJOR}) {\n"
-+  "return 0;\n"
-+  "  }\n"
-+  "  else {\n"
-+  "if (__GNU_MP_VERSION_MINOR < ${GMP_FIND_VERSION_MINOR}) {\n"
-+  "  return 0;\n"
-+  "}\n"
-+  "else {\n"
-+  "  if (__GNU_MP_VERSION_PATCHLEVEL < ${GMP_FIND_VERSION_PATCH}) {\n"
-+  "return 0;\n"
-+  "  }\n"
-+  "}\n"
-+  "  }\n"
-+  "  return 1;\n"
-+  "}\n")
++  "#define GMP_FIND_VERSION_MAJOR ${GMP_FIND_VERSION_MAJOR}\n"
++  "#define GMP_FIND_VERSION_MINOR ${GMP_FIND_VERSION_MINOR}\n"
++  "#define GMP_FIND_VERSION_PATCH ${GMP_FIND_VERSION_PATCH}\n"
++  "\n"
++  "#if __GNU_MP_VERSION < GMP_FIND_VERSION_MAJOR\n"
++  "#error insufficient GMP major version\n"
++  "#elif __GNU_MP_VERSION == GMP_FIND_VERSION_MAJOR\n"
++  "#if __GNU_MP_VERSION_MINOR < GMP_FIND_VERSION_MINOR\n"
++  "#error insufficient GMP minor version\n"
++  "#elif __GNU_MP_VERSION_MINOR == GMP_FIND_VERSION_MINOR\n"
++  "#if __GNU_MP_VERSION_PATCH < GMP_FIND_VERSION_PATCH\n"
++  "#error insufficient GMP patch version\n"
++  "#endif\n"
++  "#endif\n"
++  "#endif\n"
++  

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2021-05-04 Thread Sam James
commit: 685fcd0f772dd5c0cfbe60dd7c4875a73e93e175
Author: Sam James  gentoo  org>
AuthorDate: Tue May  4 03:18:20 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Tue May  4 19:09:50 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=685fcd0f

sci-mathematics/flint: fix phase definition style

Package-Manager: Portage-3.0.18-prefix, Repoman-3.0.3
Signed-off-by: Sam James  gentoo.org>

 sci-mathematics/flint/flint-2.5.2-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-mathematics/flint/flint-2.5.2-r1.ebuild 
b/sci-mathematics/flint/flint-2.5.2-r1.ebuild
index 161e3cc3445..4a5052ab039 100644
--- a/sci-mathematics/flint/flint-2.5.2-r1.ebuild
+++ b/sci-mathematics/flint/flint-2.5.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -32,7 +32,7 @@ PATCHES=(
"${FILESDIR}/${PN}-2.5.2-memory_message.patch"
 )
 
-src_prepare(){
+src_prepare() {
default
 
# The autodetection finds "lib" first, which may e.g. contain 32-bit



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/files/, sci-mathematics/flint/

2021-04-21 Thread Michael Orlitzky
commit: 491b50cf718ca492e2d3329545b6709783264a5e
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Thu Apr 22 01:10:11 2021 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Thu Apr 22 01:10:11 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=491b50cf

sci-mathematics/flint: new revision to fix x86 gmp detection.

The FindGMP routine in upstream's CMake is using voodoo to determine
the version of gmp that's installed. The sorcery succeeds quite
accidentally on amd64, but fails on x86. We patch their cmake
to do something more reliable.

Bug: https://bugs.gentoo.org/771663
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Michael Orlitzky  gentoo.org>

 .../files/flint-2.7.1-fix-cmake-findgmp.patch  | 152 +
 .../{flint-2.7.1.ebuild => flint-2.7.1-r1.ebuild}  |   2 +
 2 files changed, 154 insertions(+)

diff --git a/sci-mathematics/flint/files/flint-2.7.1-fix-cmake-findgmp.patch 
b/sci-mathematics/flint/files/flint-2.7.1-fix-cmake-findgmp.patch
new file mode 100644
index 000..d94d65c08d7
--- /dev/null
+++ b/sci-mathematics/flint/files/flint-2.7.1-fix-cmake-findgmp.patch
@@ -0,0 +1,152 @@
+From 9f1ef23f34a7ceca1063606cfc749e4d32bef81c Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky 
+Date: Mon, 19 Apr 2021 16:56:54 -0400
+Subject: [PATCH 1/1] CMake/FindGMP.cmake: compile a test program to check the
+ gmp version.
+
+The existing GMP version check consists of grepping the contents of
+the gmp.h header to parse out a few constants. This test fails, at
+least, on Gentoo, where the usual header file is a wrapper that
+includes the true header (to allow for simultaneous 32/64-bit
+support).
+
+This commit updates the FindGMP check to compile a test program
+against gmp.h that compares the version bounds within C, and reports
+success or failure as the return value from main().
+---
+ CMake/FindGMP.cmake | 97 +
+ 1 file changed, 53 insertions(+), 44 deletions(-)
+
+diff --git a/CMake/FindGMP.cmake b/CMake/FindGMP.cmake
+index ce4df70f5..bd2871ca3 100644
+--- a/CMake/FindGMP.cmake
 b/CMake/FindGMP.cmake
+@@ -2,28 +2,23 @@
+ # https://gmplib.org/
+ #
+ # This module supports requiring a minimum version, e.g. you can do
+-#   find_package(GMP 6.0.0)
+-# to require version 6.0.0 to newer of GMP.
++#   find_package(GMP 6.2.1)
++# to require version 6.2.1 to newer of GMP.
+ #
+ # Once done this will define
+ #
+ #  GMP_FOUND - system has GMP lib with correct version
+ #  GMP_INCLUDE_DIRS - the GMP include directory
+ #  GMP_LIBRARIES - the GMP library
+-#  GMP_VERSION - GMP version
+ #
+-# Copyright (c) 2016 Jack Poulson, 
+-# Redistribution and use is allowed according to the terms of the BSD license.
+ 
+-find_path(GMP_INCLUDE_DIRS NAMES gmp.h PATHS $ENV{GMPDIR} 
${INCLUDE_INSTALL_DIR})
+-
+-# Set GMP_FIND_VERSION to 5.1.0 if no minimum version is specified
++# Set GMP_FIND_VERSION to 6.0.0 if no minimum version is specified
+ if(NOT GMP_FIND_VERSION)
+   if(NOT GMP_FIND_VERSION_MAJOR)
+-set(GMP_FIND_VERSION_MAJOR 5)
++set(GMP_FIND_VERSION_MAJOR 6)
+   endif()
+   if(NOT GMP_FIND_VERSION_MINOR)
+-set(GMP_FIND_VERSION_MINOR 1)
++set(GMP_FIND_VERSION_MINOR 0)
+   endif()
+   if(NOT GMP_FIND_VERSION_PATCH)
+ set(GMP_FIND_VERSION_PATCH 0)
+@@ -32,43 +27,57 @@ if(NOT GMP_FIND_VERSION)
+ 
"${GMP_FIND_VERSION_MAJOR}.${GMP_FIND_VERSION_MINOR}.${GMP_FIND_VERSION_PATCH}")
+ endif()
+ 
+-if(GMP_INCLUDE_DIRS)
+-  # Since the GMP version macros may be in a file included by gmp.h of the 
form
+-  # gmp-.*[_]?.*.h (e.g., gmp-x86_64.h), we search each of them.
+-  file(GLOB GMP_HEADERS "${GMP_INCLUDE_DIRS}/gmp.h" 
"${GMP_INCLUDE_DIRS}/gmp-*.h"
+-"${GMP_INCLUDE_DIRS}/x86*/gmp.h")
+-  foreach(gmp_header_filename ${GMP_HEADERS})
+-file(READ "${gmp_header_filename}" _gmp_version_header)
+-string(REGEX MATCH
+-  "define[ \t]+__GNU_MP_VERSION[ \t]+([0-9]+)" _gmp_major_version_match
+-  "${_gmp_version_header}")
+-if(_gmp_major_version_match)
+-  set(GMP_MAJOR_VERSION "${CMAKE_MATCH_1}")
+-  string(REGEX MATCH "define[ \t]+__GNU_MP_VERSION_MINOR[ \t]+([0-9]+)"
+-_gmp_minor_version_match "${_gmp_version_header}")
+-  set(GMP_MINOR_VERSION "${CMAKE_MATCH_1}")
+-  string(REGEX MATCH "define[ \t]+__GNU_MP_VERSION_PATCHLEVEL[ 
\t]+([0-9]+)"
+-_gmp_patchlevel_version_match "${_gmp_version_header}")
+-  set(GMP_PATCHLEVEL_VERSION "${CMAKE_MATCH_1}")
+-  set(GMP_VERSION
+-${GMP_MAJOR_VERSION}.${GMP_MINOR_VERSION}.${GMP_PATCHLEVEL_VERSION})
+-endif()
+-  endforeach()
++find_path(GMP_INCLUDE_DIRS
++  NAMES gmp.h
++  PATHS $ENV{GMPDIR} ${INCLUDE_INSTALL_DIR})
+ 
+-  # Check whether found version exists and exceeds the minimum requirement
+-  if(NOT GMP_VERSION)
+-set(GMP_VERSION_OK FALSE)
+-message(STATUS "GMP version was not detected")
+-  elseif(${GMP_VERSION} VERSION_LESS 

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2021-04-02 Thread Sam James
commit: 1d465356d23e625a0c9494f22bca184745b904ad
Author: Sam James  gentoo  org>
AuthorDate: Fri Apr  2 00:24:41 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Apr  2 14:04:30 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d465356

sci-mathematics/flint: fix CMAKE_MAKEFILE_GENERATOR

Controls sys-devel/make dependency in global scope,
hence must be defined pre-inherit.

Signed-off-by: Sam James  gentoo.org>

 sci-mathematics/flint/flint-2.7.1.ebuild | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sci-mathematics/flint/flint-2.7.1.ebuild 
b/sci-mathematics/flint/flint-2.7.1.ebuild
index 6557576cf7d..92eb4e95a2c 100644
--- a/sci-mathematics/flint/flint-2.7.1.ebuild
+++ b/sci-mathematics/flint/flint-2.7.1.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=7
 
+# ninja doesn't like "-lcblas" so using make.
+CMAKE_MAKEFILE_GENERATOR="emake"
 PYTHON_COMPAT=( python3_{7..9} )
 inherit cmake python-any-r1
 
@@ -34,9 +36,6 @@ DEPEND="dev-libs/gmp:=
virtual/cblas"
 RDEPEND="${DEPEND}"
 
-# ninja doesn't like "-lcblas" so using make.
-CMAKE_MAKEFILE_GENERATOR="emake"
-
 src_configure() {
local mycmakeargs=(
-DWITH_NTL="$(usex ntl)"



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2021-03-15 Thread Michael Orlitzky
commit: d1f809db6a6a35ba40a21d7e0aedd05749ddad91
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Mon Mar 15 15:05:26 2021 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Mon Mar 15 17:44:35 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1f809db

sci-mathematics/flint: add missing dev-tex/latexmk dependency.

Straight-to-stable because we're still in the process of stabilizing
v2.6.3 and I don't want to make amd64@ re-test it when I've already
done that myself.

Closes: https://bugs.gentoo.org/775164
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Michael Orlitzky  gentoo.org>

 sci-mathematics/flint/{flint-2.6.3.ebuild => flint-2.6.3-r1.ebuild} | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sci-mathematics/flint/flint-2.6.3.ebuild 
b/sci-mathematics/flint/flint-2.6.3-r1.ebuild
similarity index 98%
rename from sci-mathematics/flint/flint-2.6.3.ebuild
rename to sci-mathematics/flint/flint-2.6.3-r1.ebuild
index 2f2cf0fd152..dcf4d4d0e5a 100644
--- a/sci-mathematics/flint/flint-2.6.3.ebuild
+++ b/sci-mathematics/flint/flint-2.6.3-r1.ebuild
@@ -22,6 +22,7 @@ BDEPEND="doc? (
app-text/texlive-core
dev-texlive/texlive-latex
dev-texlive/texlive-latexextra
+   dev-tex/latexmk
)
${PYTHON_DEPS}"
 DEPEND="dev-libs/gmp:=



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2021-01-26 Thread Sam James
commit: d7c4d6463249df1b7a902f43c33f2ab3b8dd887c
Author: Sam James  gentoo  org>
AuthorDate: Wed Jan 27 03:05:37 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Jan 27 03:05:37 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7c4d646

sci-mathematics/flint: Stabilize 2.6.3 amd64, #766977

Signed-off-by: Sam James  gentoo.org>

 sci-mathematics/flint/flint-2.6.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flint/flint-2.6.3.ebuild 
b/sci-mathematics/flint/flint-2.6.3.ebuild
index 75b13e2ca97..74e214a6f88 100644
--- a/sci-mathematics/flint/flint-2.6.3.ebuild
+++ b/sci-mathematics/flint/flint-2.6.3.ebuild
@@ -12,7 +12,7 @@ SRC_URI="http://www.flintlib.org/${P}.tar.gz;
 
 LICENSE="LGPL-2.1+"
 SLOT="0/14"
-KEYWORDS="~amd64 ~arm ~arm64 ppc ~x86"
+KEYWORDS="amd64 ~arm ~arm64 ppc ~x86"
 IUSE="doc ntl test"
 
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2021-01-25 Thread Sam James
commit: a3d01059179bd75a539a1b4536ea5a39fd42f1a4
Author: Sam James  gentoo  org>
AuthorDate: Mon Jan 25 14:07:49 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan 25 14:07:49 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3d01059

sci-mathematics/flint: Stabilize 2.6.3 ppc, #766977

Signed-off-by: Sam James  gentoo.org>

 sci-mathematics/flint/flint-2.6.3.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-mathematics/flint/flint-2.6.3.ebuild 
b/sci-mathematics/flint/flint-2.6.3.ebuild
index d943d1c3905..75b13e2ca97 100644
--- a/sci-mathematics/flint/flint-2.6.3.ebuild
+++ b/sci-mathematics/flint/flint-2.6.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -12,7 +12,7 @@ SRC_URI="http://www.flintlib.org/${P}.tar.gz;
 
 LICENSE="LGPL-2.1+"
 SLOT="0/14"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
+KEYWORDS="~amd64 ~arm ~arm64 ppc ~x86"
 IUSE="doc ntl test"
 
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2021-01-23 Thread Michael Orlitzky
commit: 309ad0dd85afb5347a059b761a0256d638346053
Author: François Bissey  gmail  com>
AuthorDate: Thu Jan 21 20:10:40 2021 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Sat Jan 23 15:30:52 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=309ad0dd

sci-mathematics/flint: upstream bump and fix bugs

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Bug: https://bugs.gentoo.org/761736
Bug: https://bugs.gentoo.org/760678
Closes: https://github.com/gentoo/gentoo/pull/19152
Signed-off-by: François René Pierre Bissey  gmail.com>
Signed-off-by: Michael Orlitzky  gentoo.org>

 sci-mathematics/flint/flint-2.7.1.ebuild | 69 
 1 file changed, 69 insertions(+)

diff --git a/sci-mathematics/flint/flint-2.7.1.ebuild 
b/sci-mathematics/flint/flint-2.7.1.ebuild
new file mode 100644
index 000..1afcfef9754
--- /dev/null
+++ b/sci-mathematics/flint/flint-2.7.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6..9} )
+inherit cmake python-any-r1
+
+DESCRIPTION="Fast Library for Number Theory"
+HOMEPAGE="http://www.flintlib.org/;
+SRC_URI="http://www.flintlib.org/${P}.tar.gz;
+
+LICENSE="LGPL-2.1+"
+
+# Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
+SLOT="0/15"
+
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
+IUSE="doc ntl test"
+
+RESTRICT="!test? ( test )"
+
+BDEPEND="doc? (
+   dev-python/sphinx
+   app-text/texlive-core
+   dev-texlive/texlive-latex
+   dev-texlive/texlive-latexextra
+   dev-tex/latexmk
+   )
+   ${PYTHON_DEPS}"
+DEPEND="dev-libs/gmp:=
+   dev-libs/mpfr:=
+   ntl? ( dev-libs/ntl:= )
+   virtual/cblas"
+RDEPEND="${DEPEND}"
+
+# ninja doesn't like "-lcblas" so using make.
+CMAKE_MAKEFILE_GENERATOR="emake"
+
+src_configure() {
+   local mycmakeargs=(
+   -DWITH_NTL="$(usex ntl)"
+   -DBUILD_TESTING="$(usex test)"
+   -DBUILD_DOCS="$(usex doc)"
+   -DCBLAS_INCLUDE_DIRS="${EPREFIX}/usr/include"
+   -DCBLAS_LIBRARIES="-lcblas"
+   )
+
+   cmake_src_configure
+
+   if use doc ; then
+   HTML_DOCS="${BUILD_DIR}/html/*"
+   DOCS=(
+   "${S}"/README
+   "${S}"/AUTHORS
+   "${S}"/NEWS
+   "${BUILD_DIR}"/latex/Flint.pdf
+   )
+   fi
+}
+
+src_compile() {
+   cmake_src_compile
+
+   if use doc ; then
+   cmake_build html
+   cmake_build pdf
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2021-01-23 Thread Michael Orlitzky
commit: 5ac226ebed869698cd1d3fa291035ce1486dcb71
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Sat Jan 23 15:30:35 2021 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Sat Jan 23 15:30:53 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ac226eb

sci-mathematics/flint: add myself and François Bissey as maintainers.

We've been doing the maintenance and bug-fixing on recent versions of
flint. Let's make it official.

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Michael Orlitzky  gentoo.org>

 sci-mathematics/flint/metadata.xml | 38 ++
 1 file changed, 26 insertions(+), 12 deletions(-)

diff --git a/sci-mathematics/flint/metadata.xml 
b/sci-mathematics/flint/metadata.xml
index d455fe29d0e..d07a5a09b6d 100644
--- a/sci-mathematics/flint/metadata.xml
+++ b/sci-mathematics/flint/metadata.xml
@@ -1,16 +1,30 @@
 
 http://www.gentoo.org/dtd/metadata.dtd;>
 
-   
-   patr...@gentoo.org
-   Patrick Lauer
-   
-   
-   wbhart/flint2
-   
-   
-   Enable garbage collection
-   support via dev-libs/boehm-gc
-   Build NTL interface
-   
+  
+patr...@gentoo.org
+Patrick Lauer
+  
+
+  
+m...@gentoo.org
+  
+
+  
+frp.bis...@gmail.com
+François Bissey
+  
+  
+proxy-ma...@gentoo.org
+Proxy Maintainers
+  
+
+  
+wbhart/flint2
+  
+  
+Enable garbage collection
+support via dev-libs/boehm-gc
+Build NTL interface
+  
 



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2021-01-23 Thread Michael Orlitzky
commit: 946deb504aa840e1421fe2280ba768d869c29210
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Sat Jan 23 15:18:47 2021 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Sat Jan 23 15:30:52 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=946deb50

sci-mathematics/flint: revert "sci-mathematics/flint: Remove old"

This reverts commit 552bfac6e187598ab2dae1a078df3cdeb4d4500d. Sorry,
but we still need flint-2.6.3 for SageMath which hasn't finished
upgrading all of the necessary software to support flint-2.7.x. Sadly
I know of no good way do indicate this in the tree since SageMath is
still far from being packaged itself.

Signed-off-by: Michael Orlitzky  gentoo.org>

 sci-mathematics/flint/Manifest   |  1 +
 sci-mathematics/flint/flint-2.6.3.ebuild | 63 
 2 files changed, 64 insertions(+)

diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index b02fba26e85..23761c10238 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1,2 +1,3 @@
 DIST flint-2.5.2.tar.gz 2212242 BLAKE2B 
36b9b1f2acb1d79534d85884d755fddba3b8b40efbe92aeeecd7d1526cd21f0849054c30d23c565c6a13c609992cf22f56f5b640da15e1c7e6ba6840fc710d47
 SHA512 
cce36947b558aabecaf780171b4bbc0e1330c3b1a7e3580717584be5cab4991d33b190531c7995b224a3a440e28c4a610d6f781901e29f48ced12a9c5ba960a2
+DIST flint-2.6.3.tar.gz 4526340 BLAKE2B 
d663b44166cd857f83c2752eb4d4f6dc45eb8de535089e5dbe9939ac1464f1d69f66b62184644fff1ecd1d171f389d5ab874873def670c702733a0eba17bfd13
 SHA512 
8e71570364c789b1d4eaaa5f5adf10212cab47bf1a9f45c333211035ed021a86bb7b1de1feec51e83b2e113e8168853e370f127d2d2b1e941a12aec71fe8ae9e
 DIST flint-2.7.0.tar.gz 4943210 BLAKE2B 
a23b79195c71ef4691a450a82daded3de56eb51df1b3c850e13200527fff08da668281f350d7278ff52187eba8b7d9b27f4e69fafcaf771d8a01d72c6925b062
 SHA512 
6eac3d6fc306cacf482379074cba0d109aae4fbe8f907c17bcfe0afc2e8603c0fbe80e88a1ac374d9fa6d87aa59eb2b973f225a69da6dcc647255f060ad8711f

diff --git a/sci-mathematics/flint/flint-2.6.3.ebuild 
b/sci-mathematics/flint/flint-2.6.3.ebuild
new file mode 100644
index 000..d943d1c3905
--- /dev/null
+++ b/sci-mathematics/flint/flint-2.6.3.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6..8} )
+inherit cmake-utils python-any-r1
+
+DESCRIPTION="Fast Library for Number Theory"
+HOMEPAGE="http://www.flintlib.org/;
+SRC_URI="http://www.flintlib.org/${P}.tar.gz;
+
+LICENSE="LGPL-2.1+"
+SLOT="0/14"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
+IUSE="doc ntl test"
+
+RESTRICT="!test? ( test )"
+
+BDEPEND="doc? (
+   dev-python/sphinx
+   app-text/texlive-core
+   dev-texlive/texlive-latex
+   dev-texlive/texlive-latexextra
+   )
+   ${PYTHON_DEPS}"
+DEPEND="dev-libs/gmp:=
+   dev-libs/mpfr:=
+   ntl? ( dev-libs/ntl:= )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-2.6.0-multilib-strict.patch
+)
+
+src_configure() {
+   local mycmakeargs=(
+   -DWITH_NTL="$(usex ntl)"
+   -DBUILD_TESTING="$(usex test)"
+   -DBUILD_DOCS="$(usex doc)"
+   )
+
+   cmake-utils_src_configure
+
+   if use doc ; then
+   HTML_DOCS="${BUILD_DIR}/html/*"
+   DOCS=(
+   "${S}"/README
+   "${S}"/AUTHORS
+   "${S}"/NEWS
+   "${BUILD_DIR}"/latex/Flint.pdf
+   )
+   fi
+}
+
+src_compile() {
+   cmake-utils_src_compile
+
+   if use doc ; then
+   cmake-utils_src_make html
+   cmake-utils_src_make pdf
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2021-01-23 Thread Michael Orlitzky
commit: ad08f7ff4bc3b0766c63447874b2ad2cdc1599dd
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Sat Jan 23 15:24:42 2021 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Sat Jan 23 15:30:53 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad08f7ff

sci-mathematics/flint: remove "unused" flint-2.7.0.ebuild.

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Michael Orlitzky  gentoo.org>

 sci-mathematics/flint/Manifest   |  2 +-
 sci-mathematics/flint/flint-2.7.0.ebuild | 64 
 2 files changed, 1 insertion(+), 65 deletions(-)

diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index 23761c10238..e1079aba8dc 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1,3 +1,3 @@
 DIST flint-2.5.2.tar.gz 2212242 BLAKE2B 
36b9b1f2acb1d79534d85884d755fddba3b8b40efbe92aeeecd7d1526cd21f0849054c30d23c565c6a13c609992cf22f56f5b640da15e1c7e6ba6840fc710d47
 SHA512 
cce36947b558aabecaf780171b4bbc0e1330c3b1a7e3580717584be5cab4991d33b190531c7995b224a3a440e28c4a610d6f781901e29f48ced12a9c5ba960a2
 DIST flint-2.6.3.tar.gz 4526340 BLAKE2B 
d663b44166cd857f83c2752eb4d4f6dc45eb8de535089e5dbe9939ac1464f1d69f66b62184644fff1ecd1d171f389d5ab874873def670c702733a0eba17bfd13
 SHA512 
8e71570364c789b1d4eaaa5f5adf10212cab47bf1a9f45c333211035ed021a86bb7b1de1feec51e83b2e113e8168853e370f127d2d2b1e941a12aec71fe8ae9e
-DIST flint-2.7.0.tar.gz 4943210 BLAKE2B 
a23b79195c71ef4691a450a82daded3de56eb51df1b3c850e13200527fff08da668281f350d7278ff52187eba8b7d9b27f4e69fafcaf771d8a01d72c6925b062
 SHA512 
6eac3d6fc306cacf482379074cba0d109aae4fbe8f907c17bcfe0afc2e8603c0fbe80e88a1ac374d9fa6d87aa59eb2b973f225a69da6dcc647255f060ad8711f
+DIST flint-2.7.1.tar.gz 4945081 BLAKE2B 
9dcc4b0062be08778cd8ada1794a73237ea091a7bff4a4673aa59eac9b414ed90e0291b9547bdf72aa30e48da11f98ff983267ea2e3dd1d75fcec00b24c86ca9
 SHA512 
abea97228e91089d82a9a44714e719064bef261c45f5f5b24700955bb841cc98a8182e04e6054fcbcaa3bd92f2f95a82bd5d168ec2171af6a58d4f71eb0a479a

diff --git a/sci-mathematics/flint/flint-2.7.0.ebuild 
b/sci-mathematics/flint/flint-2.7.0.ebuild
deleted file mode 100644
index d61fd70522a..000
--- a/sci-mathematics/flint/flint-2.7.0.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{6..9} )
-inherit cmake python-any-r1
-
-DESCRIPTION="Fast Library for Number Theory"
-HOMEPAGE="http://www.flintlib.org/;
-SRC_URI="http://www.flintlib.org/${P}.tar.gz;
-
-LICENSE="LGPL-2.1+"
-
-# Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
-SLOT="0/15"
-
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
-IUSE="doc ntl test"
-
-RESTRICT="!test? ( test )"
-
-BDEPEND="doc? (
-   dev-python/sphinx
-   app-text/texlive-core
-   dev-texlive/texlive-latex
-   dev-texlive/texlive-latexextra
-   )
-   ${PYTHON_DEPS}"
-DEPEND="dev-libs/gmp:=
-   dev-libs/mpfr:=
-   ntl? ( dev-libs/ntl:= )"
-RDEPEND="${DEPEND}"
-
-PATCHES=( "${FILESDIR}/${PN}-2.6.0-multilib-strict.patch" )
-
-src_configure() {
-   local mycmakeargs=(
-   -DWITH_NTL="$(usex ntl)"
-   -DBUILD_TESTING="$(usex test)"
-   -DBUILD_DOCS="$(usex doc)"
-   )
-
-   cmake_src_configure
-
-   if use doc ; then
-   HTML_DOCS="${BUILD_DIR}/html/*"
-   DOCS=(
-   "${S}"/README
-   "${S}"/AUTHORS
-   "${S}"/NEWS
-   "${BUILD_DIR}"/latex/Flint.pdf
-   )
-   fi
-}
-
-src_compile() {
-   cmake_src_compile
-
-   if use doc ; then
-   cmake_build html
-   cmake_build pdf
-   fi
-}



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2020-12-18 Thread Michael Orlitzky
commit: 77e8fdbed312558dfd23e748cc6e0dc980516f0f
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Fri Dec 18 19:35:15 2020 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Fri Dec 18 22:45:38 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77e8fdbe

sci-mathematics/flint: new upstream version 2.7.0.

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Michael Orlitzky  gentoo.org>

 sci-mathematics/flint/Manifest   |  1 +
 sci-mathematics/flint/flint-2.7.0.ebuild | 64 
 2 files changed, 65 insertions(+)

diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index 463f6c1d5f4..23761c10238 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1,2 +1,3 @@
 DIST flint-2.5.2.tar.gz 2212242 BLAKE2B 
36b9b1f2acb1d79534d85884d755fddba3b8b40efbe92aeeecd7d1526cd21f0849054c30d23c565c6a13c609992cf22f56f5b640da15e1c7e6ba6840fc710d47
 SHA512 
cce36947b558aabecaf780171b4bbc0e1330c3b1a7e3580717584be5cab4991d33b190531c7995b224a3a440e28c4a610d6f781901e29f48ced12a9c5ba960a2
 DIST flint-2.6.3.tar.gz 4526340 BLAKE2B 
d663b44166cd857f83c2752eb4d4f6dc45eb8de535089e5dbe9939ac1464f1d69f66b62184644fff1ecd1d171f389d5ab874873def670c702733a0eba17bfd13
 SHA512 
8e71570364c789b1d4eaaa5f5adf10212cab47bf1a9f45c333211035ed021a86bb7b1de1feec51e83b2e113e8168853e370f127d2d2b1e941a12aec71fe8ae9e
+DIST flint-2.7.0.tar.gz 4943210 BLAKE2B 
a23b79195c71ef4691a450a82daded3de56eb51df1b3c850e13200527fff08da668281f350d7278ff52187eba8b7d9b27f4e69fafcaf771d8a01d72c6925b062
 SHA512 
6eac3d6fc306cacf482379074cba0d109aae4fbe8f907c17bcfe0afc2e8603c0fbe80e88a1ac374d9fa6d87aa59eb2b973f225a69da6dcc647255f060ad8711f

diff --git a/sci-mathematics/flint/flint-2.7.0.ebuild 
b/sci-mathematics/flint/flint-2.7.0.ebuild
new file mode 100644
index 000..d61fd70522a
--- /dev/null
+++ b/sci-mathematics/flint/flint-2.7.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6..9} )
+inherit cmake python-any-r1
+
+DESCRIPTION="Fast Library for Number Theory"
+HOMEPAGE="http://www.flintlib.org/;
+SRC_URI="http://www.flintlib.org/${P}.tar.gz;
+
+LICENSE="LGPL-2.1+"
+
+# Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
+SLOT="0/15"
+
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
+IUSE="doc ntl test"
+
+RESTRICT="!test? ( test )"
+
+BDEPEND="doc? (
+   dev-python/sphinx
+   app-text/texlive-core
+   dev-texlive/texlive-latex
+   dev-texlive/texlive-latexextra
+   )
+   ${PYTHON_DEPS}"
+DEPEND="dev-libs/gmp:=
+   dev-libs/mpfr:=
+   ntl? ( dev-libs/ntl:= )"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${PN}-2.6.0-multilib-strict.patch" )
+
+src_configure() {
+   local mycmakeargs=(
+   -DWITH_NTL="$(usex ntl)"
+   -DBUILD_TESTING="$(usex test)"
+   -DBUILD_DOCS="$(usex doc)"
+   )
+
+   cmake_src_configure
+
+   if use doc ; then
+   HTML_DOCS="${BUILD_DIR}/html/*"
+   DOCS=(
+   "${S}"/README
+   "${S}"/AUTHORS
+   "${S}"/NEWS
+   "${BUILD_DIR}"/latex/Flint.pdf
+   )
+   fi
+}
+
+src_compile() {
+   cmake_src_compile
+
+   if use doc ; then
+   cmake_build html
+   cmake_build pdf
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2020-10-27 Thread Sam James
commit: 08d3cca57d9946b556e224c29d6c92121e705e81
Author: Sam James  gentoo  org>
AuthorDate: Tue Oct 27 19:55:27 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Oct 27 19:55:27 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08d3cca5

sci-mathematics/flint: Keyword 2.6.3 arm64, #749927

Signed-off-by: Sam James  gentoo.org>

 sci-mathematics/flint/flint-2.6.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flint/flint-2.6.3.ebuild 
b/sci-mathematics/flint/flint-2.6.3.ebuild
index d6ba11ee4b1..d943d1c3905 100644
--- a/sci-mathematics/flint/flint-2.6.3.ebuild
+++ b/sci-mathematics/flint/flint-2.6.3.ebuild
@@ -12,7 +12,7 @@ SRC_URI="http://www.flintlib.org/${P}.tar.gz;
 
 LICENSE="LGPL-2.1+"
 SLOT="0/14"
-KEYWORDS="~amd64 ~arm ~ppc ~x86"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
 IUSE="doc ntl test"
 
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2020-08-12 Thread Michael Orlitzky
commit: 07b9c32eb9ba9958d4321f6198bd63066b3febb6
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Wed Aug 12 13:56:54 2020 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Wed Aug 12 17:31:34 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07b9c32e

sci-mathematics/flint: new version 2.6.3.

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Michael Orlitzky  gentoo.org>

 sci-mathematics/flint/Manifest   | 2 +-
 sci-mathematics/flint/{flint-2.6.0.ebuild => flint-2.6.3.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index 94837defb11..463f6c1d5f4 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1,2 +1,2 @@
 DIST flint-2.5.2.tar.gz 2212242 BLAKE2B 
36b9b1f2acb1d79534d85884d755fddba3b8b40efbe92aeeecd7d1526cd21f0849054c30d23c565c6a13c609992cf22f56f5b640da15e1c7e6ba6840fc710d47
 SHA512 
cce36947b558aabecaf780171b4bbc0e1330c3b1a7e3580717584be5cab4991d33b190531c7995b224a3a440e28c4a610d6f781901e29f48ced12a9c5ba960a2
-DIST flint-2.6.0.tar.gz 4517938 BLAKE2B 
25eeaae93dda01b91d7c76db6cd637ac61199f60cb169998b506eb733b0ed4dbd306c9d370caaf84dd20fbd85779d5b05de52086d82c8bc9afe67a581064462b
 SHA512 
623655a121190d0a1f24305eee323e14f90d2c6451c174133706cde8b62fdf6363d79bfcbe6dce8ffe04bc64d0131d902917f44e0d38c1d647d982710cbc8a8a
+DIST flint-2.6.3.tar.gz 4526340 BLAKE2B 
d663b44166cd857f83c2752eb4d4f6dc45eb8de535089e5dbe9939ac1464f1d69f66b62184644fff1ecd1d171f389d5ab874873def670c702733a0eba17bfd13
 SHA512 
8e71570364c789b1d4eaaa5f5adf10212cab47bf1a9f45c333211035ed021a86bb7b1de1feec51e83b2e113e8168853e370f127d2d2b1e941a12aec71fe8ae9e

diff --git a/sci-mathematics/flint/flint-2.6.0.ebuild 
b/sci-mathematics/flint/flint-2.6.3.ebuild
similarity index 100%
rename from sci-mathematics/flint/flint-2.6.0.ebuild
rename to sci-mathematics/flint/flint-2.6.3.ebuild



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/, sci-mathematics/flint/files/

2020-06-16 Thread Michael Orlitzky
commit: 3b0bafb98e2d78db75264322a5561a63d4e34d65
Author: François Bissey  gmail  com>
AuthorDate: Tue Jun 16 10:54:52 2020 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Wed Jun 17 01:40:13 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b0bafb9

sci-mathematics/flint: upstream bump to 2.6.0

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Closes: https://github.com/gentoo/gentoo/pull/16267
Closes: https://bugs.gentoo.org/728446
Signed-off-by: François René Pierre Bissey  gmail.com>
Signed-off-by: Michael Orlitzky  gentoo.org>

 sci-mathematics/flint/Manifest |  1 +
 .../flint/files/flint-2.6.0-multilib-strict.patch  | 20 +++
 sci-mathematics/flint/flint-2.6.0.ebuild   | 63 ++
 3 files changed, 84 insertions(+)

diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index 60823eff1c3..94837defb11 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1 +1,2 @@
 DIST flint-2.5.2.tar.gz 2212242 BLAKE2B 
36b9b1f2acb1d79534d85884d755fddba3b8b40efbe92aeeecd7d1526cd21f0849054c30d23c565c6a13c609992cf22f56f5b640da15e1c7e6ba6840fc710d47
 SHA512 
cce36947b558aabecaf780171b4bbc0e1330c3b1a7e3580717584be5cab4991d33b190531c7995b224a3a440e28c4a610d6f781901e29f48ced12a9c5ba960a2
+DIST flint-2.6.0.tar.gz 4517938 BLAKE2B 
25eeaae93dda01b91d7c76db6cd637ac61199f60cb169998b506eb733b0ed4dbd306c9d370caaf84dd20fbd85779d5b05de52086d82c8bc9afe67a581064462b
 SHA512 
623655a121190d0a1f24305eee323e14f90d2c6451c174133706cde8b62fdf6363d79bfcbe6dce8ffe04bc64d0131d902917f44e0d38c1d647d982710cbc8a8a

diff --git a/sci-mathematics/flint/files/flint-2.6.0-multilib-strict.patch 
b/sci-mathematics/flint/files/flint-2.6.0-multilib-strict.patch
new file mode 100644
index 000..84ae3dfc292
--- /dev/null
+++ b/sci-mathematics/flint/files/flint-2.6.0-multilib-strict.patch
@@ -0,0 +1,20 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 9d94776..b04fa78 100644
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -293,10 +293,12 @@ if(NOT MSVC)
+   target_link_libraries(flint PUBLIC m)
+ endif()
+ 
++include(GNUInstallDirs)
++
+ install(TARGETS flint
+-RUNTIME DESTINATION bin
+-ARCHIVE DESTINATION lib
+-LIBRARY DESTINATION lib
++RUNTIME DESTINATION "${CMAKE_INSTALL_FULL_BINDIR}"
++ARCHIVE DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}"
++LIBRARY DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}"
+ )
+ 
+ install(FILES ${HEADERS} DESTINATION include/flint)

diff --git a/sci-mathematics/flint/flint-2.6.0.ebuild 
b/sci-mathematics/flint/flint-2.6.0.ebuild
new file mode 100644
index 000..d6ba11ee4b1
--- /dev/null
+++ b/sci-mathematics/flint/flint-2.6.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6..8} )
+inherit cmake-utils python-any-r1
+
+DESCRIPTION="Fast Library for Number Theory"
+HOMEPAGE="http://www.flintlib.org/;
+SRC_URI="http://www.flintlib.org/${P}.tar.gz;
+
+LICENSE="LGPL-2.1+"
+SLOT="0/14"
+KEYWORDS="~amd64 ~arm ~ppc ~x86"
+IUSE="doc ntl test"
+
+RESTRICT="!test? ( test )"
+
+BDEPEND="doc? (
+   dev-python/sphinx
+   app-text/texlive-core
+   dev-texlive/texlive-latex
+   dev-texlive/texlive-latexextra
+   )
+   ${PYTHON_DEPS}"
+DEPEND="dev-libs/gmp:=
+   dev-libs/mpfr:=
+   ntl? ( dev-libs/ntl:= )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-2.6.0-multilib-strict.patch
+)
+
+src_configure() {
+   local mycmakeargs=(
+   -DWITH_NTL="$(usex ntl)"
+   -DBUILD_TESTING="$(usex test)"
+   -DBUILD_DOCS="$(usex doc)"
+   )
+
+   cmake-utils_src_configure
+
+   if use doc ; then
+   HTML_DOCS="${BUILD_DIR}/html/*"
+   DOCS=(
+   "${S}"/README
+   "${S}"/AUTHORS
+   "${S}"/NEWS
+   "${BUILD_DIR}"/latex/Flint.pdf
+   )
+   fi
+}
+
+src_compile() {
+   cmake-utils_src_compile
+
+   if use doc ; then
+   cmake-utils_src_make html
+   cmake-utils_src_make pdf
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/files/, sci-mathematics/flint/

2020-04-06 Thread Andreas Sturmlechner
commit: ebae2975a18df74c749864ad5e50343a3f3b49d4
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Mon Apr  6 15:08:17 2020 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Mon Apr  6 15:08:17 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebae2975

sci-mathematics/flint: Drop 2.4.4-r1

Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 sci-mathematics/flint/Manifest |   1 -
 .../flint/files/flint-2.4.3-cflags-ldflags.patch   |  33 --
 .../flint/files/flint-2.4.3-libdir.patch   |  44 
 .../flint/files/flint-2.4.3-whitespaces.patch  |  54 --
 .../flint/files/flint-2.4.4-PIE-FTBFS.patch|  17 ---
 sci-mathematics/flint/files/flint-2.4.4-test.patch |  19 
 .../flint/files/flint-2.4.5-gmp6-compat.patch  | 115 -
 .../flint/files/flint-2.4.5-ntl62.patch|  13 ---
 sci-mathematics/flint/flint-2.4.4-r1.ebuild|  71 -
 9 files changed, 367 deletions(-)

diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index e35cd2be74e..60823eff1c3 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1,2 +1 @@
-DIST flint-2.4.4.tar.gz 1639262 BLAKE2B 
54162a4d2f02c3e8e441b6a96c1e7ba4e5e8d8ad7b2d36bb7ead49bb112cd94403cb503d1e56621a0a6fedad6387e63dc39888ff3757e298aea55bf55acc4e20
 SHA512 
236997cf64bdc96741740889f450fdbaf7d7e9b58252645f864d28005c9e7bdf87f7187cd17526606c605f0489f026398a1361b8f209f71158ca3b31c42d86d2
 DIST flint-2.5.2.tar.gz 2212242 BLAKE2B 
36b9b1f2acb1d79534d85884d755fddba3b8b40efbe92aeeecd7d1526cd21f0849054c30d23c565c6a13c609992cf22f56f5b640da15e1c7e6ba6840fc710d47
 SHA512 
cce36947b558aabecaf780171b4bbc0e1330c3b1a7e3580717584be5cab4991d33b190531c7995b224a3a440e28c4a610d6f781901e29f48ced12a9c5ba960a2

diff --git a/sci-mathematics/flint/files/flint-2.4.3-cflags-ldflags.patch 
b/sci-mathematics/flint/files/flint-2.4.3-cflags-ldflags.patch
deleted file mode 100644
index f0a2ec8531b..000
--- a/sci-mathematics/flint/files/flint-2.4.3-cflags-ldflags.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-commit afadc8d05674a0e3e2fcf6dfbcf5f3c8f9133119
-Author: hasufell 
-Date:   Sun May 18 19:32:59 2014 +0200
-
-Respect CFLAGS/CXXFLAGS/LDFLAGS, fixes #66
-
-Even in linking command CFLAGS should be respected, no matter
-if all objects have already been compiled or not. Some flags
-affect both linking and object compilation and users shouldn't
-be required to figure them out. This is standard in most build
-systems anyway.
-
-Reorderd the linker line a bit, so it matches common practice,
-although this doesn't matter technically (except that LDFLAGS
-must go before libraries we link against).
-
-diff --git a/Makefile.in b/Makefile.in
-index a522ac1..6dda689 100644
 a/Makefile.in
-+++ b/Makefile.in
-@@ -104,10 +104,10 @@ $(FLINT_LIB): $(LOBJS) $(LIB_SOURCES) $(EXT_SOURCES) 
$(HEADERS) $(EXT_HEADERS) |
-   $(AT)$(foreach dir, $(BUILD_DIRS), mkdir -p build/$(dir); 
BUILD_DIR=../build/$(dir); export BUILD_DIR; MOD_DIR=$(dir); export MOD_DIR; 
$(MAKE) -f ../Makefile.subdirs -C $(dir) shared || exit $$?;)
-   $(AT)if [ "$(WANT_NTL)" -eq "1" ]; then \
- $(MAKE) build/interfaces/NTL-interface.lo; \
--$(CXX) $(ABI_FLAG) -shared $(EXTRA_SHARED_FLAGS) 
build/interfaces/NTL-interface.lo $(LOBJS) $(MOD_LOBJS) $(EXT_OBJS) $(LIBS2) -o 
$(FLINT_LIB); \
-+$(CXX) $(CXXFLAGS) $(ABI_FLAG) -shared $(EXTRA_SHARED_FLAGS) 
build/interfaces/NTL-interface.lo $(LOBJS) $(MOD_LOBJS) $(EXT_OBJS) -o 
$(FLINT_LIB) $(LDFLAGS) $(LIBS2); \
-   fi
-   $(AT)if [ "$(WANT_NTL)" -ne "1" ]; then \
--$(CC) $(ABI_FLAG) -shared $(EXTRA_SHARED_FLAGS) $(LOBJS) $(MOD_LOBJS) 
$(EXT_OBJS) $(LIBS2) -o $(FLINT_LIB); \
-+$(CC) $(CFLAGS) $(ABI_FLAG) -shared $(EXTRA_SHARED_FLAGS) $(LOBJS) 
$(MOD_LOBJS) $(EXT_OBJS) -o $(FLINT_LIB) $(LDFLAGS) $(LIBS2); \
-   fi
- 
- libflint.a: $(OBJS) $(LIB_SOURCES) $(EXT_SOURCES) $(HEADERS) $(EXT_HEADERS) | 
build build/interfaces

diff --git a/sci-mathematics/flint/files/flint-2.4.3-libdir.patch 
b/sci-mathematics/flint/files/flint-2.4.3-libdir.patch
deleted file mode 100644
index a569be40b8b..000
--- a/sci-mathematics/flint/files/flint-2.4.3-libdir.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From 27eb23c1844029ee64907500bd8aa87097ffcd32 Mon Sep 17 00:00:00 2001
-From: hasufell 
-Date: Sun, 18 May 2014 18:46:24 +0200
-Subject: [PATCH] Allow to control LIBDIR
-
-Some distributions have lib32/lib64 and need to control
-the destination properly.

- Makefile.in | 8 +---
- 1 file changed, 5 insertions(+), 3 deletions(-)
-
-diff --git a/Makefile.in b/Makefile.in
-index c16f838..b6ea4c9 100644
 a/Makefile.in
-+++ b/Makefile.in
-@@ -4,6 +4,8 @@ else
-   $(DLPATH):=$(DLPATH_ADD)
- endif
- 
-+LIBDIR=lib
-+
- QUIET_CC  = @echo '   ' CC  ' ' $@;
- QUIET_CXX = @echo 

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2020-04-06 Thread Agostino Sarubbo
commit: 3d9203fc99058587c9b761ced0b3e3a2865d25cd
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Mon Apr  6 07:34:25 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Mon Apr  6 07:34:25 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d9203fc

sci-mathematics/flint: ppc stable wrt bug #716184

Package-Manager: Portage-2.3.89, Repoman-2.3.20
RepoMan-Options: --include-arches="ppc"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 sci-mathematics/flint/flint-2.5.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flint/flint-2.5.2-r1.ebuild 
b/sci-mathematics/flint/flint-2.5.2-r1.ebuild
index 4dad9c96a32..161e3cc3445 100644
--- a/sci-mathematics/flint/flint-2.5.2-r1.ebuild
+++ b/sci-mathematics/flint/flint-2.5.2-r1.ebuild
@@ -11,7 +11,7 @@ SRC_URI="http://www.flintlib.org/${P}.tar.gz;
 
 LICENSE="LGPL-2.1+"
 SLOT="0/13"
-KEYWORDS="amd64 ~arm ~ppc x86"
+KEYWORDS="amd64 ~arm ppc x86"
 IUSE="doc gc ntl static-libs"
 
 BDEPEND="doc? (



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2020-04-04 Thread Sergei Trofimovich
commit: 177393cf50a48dac26dffd16a1a143326b0911e0
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat Apr  4 10:39:03 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat Apr  4 10:39:03 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=177393cf

sci-mathematics/flint: keyworded 2.5.2-r1 for ppc, bug #712002

Package-Manager: Portage-2.3.96, Repoman-2.3.22
RepoMan-Options: --include-arches="ppc"
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sci-mathematics/flint/flint-2.5.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flint/flint-2.5.2-r1.ebuild 
b/sci-mathematics/flint/flint-2.5.2-r1.ebuild
index 1365e17c166..4dad9c96a32 100644
--- a/sci-mathematics/flint/flint-2.5.2-r1.ebuild
+++ b/sci-mathematics/flint/flint-2.5.2-r1.ebuild
@@ -11,7 +11,7 @@ SRC_URI="http://www.flintlib.org/${P}.tar.gz;
 
 LICENSE="LGPL-2.1+"
 SLOT="0/13"
-KEYWORDS="amd64 ~arm x86"
+KEYWORDS="amd64 ~arm ~ppc x86"
 IUSE="doc gc ntl static-libs"
 
 BDEPEND="doc? (



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2020-03-09 Thread Andreas Sturmlechner
commit: e8ac08fdb49e7a03c765bd504b5a30e01cf6b4d3
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Mon Mar  9 20:00:13 2020 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Mon Mar  9 20:21:59 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8ac08fd

sci-mathematics/flint: Drop 2.4.5 and 2.5.2 (r0)

Package-Manager: Portage-2.3.93, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 sci-mathematics/flint/Manifest   |  1 -
 sci-mathematics/flint/flint-2.4.5.ebuild | 73 
 sci-mathematics/flint/flint-2.5.2.ebuild | 67 -
 3 files changed, 141 deletions(-)

diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index 77f81c97009..e35cd2be74e 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1,3 +1,2 @@
 DIST flint-2.4.4.tar.gz 1639262 BLAKE2B 
54162a4d2f02c3e8e441b6a96c1e7ba4e5e8d8ad7b2d36bb7ead49bb112cd94403cb503d1e56621a0a6fedad6387e63dc39888ff3757e298aea55bf55acc4e20
 SHA512 
236997cf64bdc96741740889f450fdbaf7d7e9b58252645f864d28005c9e7bdf87f7187cd17526606c605f0489f026398a1361b8f209f71158ca3b31c42d86d2
-DIST flint-2.4.5.tar.gz 1640022 BLAKE2B 
1267d81bb0270556614ebc8bff65287e0b3738ba0f3245f066ee7ea6971ab4d9082beb2c0a336dcd5b9c1517261aaf55c0bee519c6f71984834a7920002ad95c
 SHA512 
088ff512ea2330f9323a6ca0dc875e8c0926d755317d6007eba4b333a14d7612e82ebcfeabd26d1ec4b9204c4517dee08f914ad1ec852e37336fe378710a8bfc
 DIST flint-2.5.2.tar.gz 2212242 BLAKE2B 
36b9b1f2acb1d79534d85884d755fddba3b8b40efbe92aeeecd7d1526cd21f0849054c30d23c565c6a13c609992cf22f56f5b640da15e1c7e6ba6840fc710d47
 SHA512 
cce36947b558aabecaf780171b4bbc0e1330c3b1a7e3580717584be5cab4991d33b190531c7995b224a3a440e28c4a610d6f781901e29f48ced12a9c5ba960a2

diff --git a/sci-mathematics/flint/flint-2.4.5.ebuild 
b/sci-mathematics/flint/flint-2.4.5.ebuild
deleted file mode 100644
index 36bcaaaea7a..000
--- a/sci-mathematics/flint/flint-2.4.5.ebuild
+++ /dev/null
@@ -1,73 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit eutils multilib toolchain-funcs
-
-DESCRIPTION="Fast Library for Number Theory"
-HOMEPAGE="http://www.flintlib.org/;
-SRC_URI="http://www.flintlib.org/${P}.tar.gz;
-
-RESTRICT="mirror !test? ( test )"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="doc gc ntl static-libs test"
-
-RDEPEND="dev-libs/gmp:0=
-   dev-libs/mpfr:0
-   gc? ( dev-libs/boehm-gc )
-   ntl? ( dev-libs/ntl )"
-DEPEND="${RDEPEND}
-   doc? (
-   app-text/texlive-core
-   dev-texlive/texlive-latex
-   dev-texlive/texlive-latexextra
-   )"
-
-src_prepare() {
-   epatch "${FILESDIR}"/${PN}-2.4.3-libdir.patch \
-   "${FILESDIR}"/${PN}-2.4.3-whitespaces.patch \
-   "${FILESDIR}"/${PN}-2.4.3-cflags-ldflags.patch \
-   "${FILESDIR}"/${PN}-2.4.4-test.patch \
-   "${FILESDIR}"/${PN}-2.4.5-gmp6-compat.patch \
-   "${FILESDIR}"/${PN}-2.4.5-ntl62.patch \
-   "${FILESDIR}"/${PN}-2.4.4-PIE-FTBFS.patch
-
-   sed -i \
-   -e '/echo "DLPATH_ADD=/s/\$DLPATH_ADD/\\\$(CURDIR)/' \
-   ./configure || die
-}
-
-src_configure() {
-   ./configure \
-   --prefix="${EPREFIX}/usr" \
-   --with-gmp="${EPREFIX}/usr" \
-   --with-mpfr="${EPREFIX}/usr" \
-   $(usex ntl "--with-ntl=${EPREFIX}/usr" "") \
-   $(use_enable static-libs static) \
-   $(usex gc "--with-gc=${EPREFIX}/usr" "") \
-   CC=$(tc-getCC) \
-   CXX=$(tc-getCXX) \
-   AR=$(tc-getAR) \
-   || die
-}
-
-src_compile() {
-   emake verbose
-
-   if use doc ; then
-   emake -C doc/latex
-   fi
-}
-
-src_test() {
-   emake AT= QUIET_CC= QUIET_CXX= QUIET_AR= check
-}
-
-src_install() {
-   emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install
-   einstalldocs
-   use doc && dodoc doc/latex/flint-manual.pdf
-}

diff --git a/sci-mathematics/flint/flint-2.5.2.ebuild 
b/sci-mathematics/flint/flint-2.5.2.ebuild
deleted file mode 100644
index 0a6ef5a44bd..000
--- a/sci-mathematics/flint/flint-2.5.2.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit eutils multilib toolchain-funcs
-
-DESCRIPTION="Fast Library for Number Theory"
-HOMEPAGE="http://www.flintlib.org/;
-SRC_URI="http://www.flintlib.org/${P}.tar.gz;
-
-RESTRICT="mirror !test? ( test )"
-LICENSE="GPL-2"
-SLOT="0/13"
-KEYWORDS="~amd64 ~arm ~x86"
-IUSE="doc gc ntl static-libs test"
-
-RDEPEND="dev-libs/gmp:=
-   dev-libs/mpfr:=
-   gc? ( dev-libs/boehm-gc )
-   ntl? ( dev-libs/ntl:= )"
-DEPEND="${RDEPEND}
-   doc? (
-   

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2020-03-09 Thread Agostino Sarubbo
commit: 7d0a784daea7aca8f156c9490a65c58082caee84
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Mon Mar  9 12:48:19 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Mon Mar  9 12:48:19 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d0a784d

sci-mathematics/flint: x86 stable wrt bug #711872

Package-Manager: Portage-2.3.89, Repoman-2.3.20
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 sci-mathematics/flint/flint-2.5.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flint/flint-2.5.2-r1.ebuild 
b/sci-mathematics/flint/flint-2.5.2-r1.ebuild
index ef611ade137..1365e17c166 100644
--- a/sci-mathematics/flint/flint-2.5.2-r1.ebuild
+++ b/sci-mathematics/flint/flint-2.5.2-r1.ebuild
@@ -11,7 +11,7 @@ SRC_URI="http://www.flintlib.org/${P}.tar.gz;
 
 LICENSE="LGPL-2.1+"
 SLOT="0/13"
-KEYWORDS="amd64 ~arm ~x86"
+KEYWORDS="amd64 ~arm x86"
 IUSE="doc gc ntl static-libs"
 
 BDEPEND="doc? (



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2020-03-09 Thread Agostino Sarubbo
commit: 16c1ec32735a2d4f399dedb97ffbaf3ec24ac522
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Mon Mar  9 12:39:37 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Mon Mar  9 12:39:37 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16c1ec32

sci-mathematics/flint: amd64 stable wrt bug #711872

Package-Manager: Portage-2.3.89, Repoman-2.3.20
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 sci-mathematics/flint/flint-2.5.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flint/flint-2.5.2-r1.ebuild 
b/sci-mathematics/flint/flint-2.5.2-r1.ebuild
index 795bf6e90c6..ef611ade137 100644
--- a/sci-mathematics/flint/flint-2.5.2-r1.ebuild
+++ b/sci-mathematics/flint/flint-2.5.2-r1.ebuild
@@ -11,7 +11,7 @@ SRC_URI="http://www.flintlib.org/${P}.tar.gz;
 
 LICENSE="LGPL-2.1+"
 SLOT="0/13"
-KEYWORDS="~amd64 ~arm ~x86"
+KEYWORDS="amd64 ~arm ~x86"
 IUSE="doc gc ntl static-libs"
 
 BDEPEND="doc? (



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/files/, sci-mathematics/flint/

2020-02-28 Thread Michael Orlitzky
commit: 39b65a3d5ad4c68459f3d7ce63556937099ac93a
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Fri Feb 28 16:31:58 2020 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Fri Feb 28 17:20:43 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39b65a3d

sci-mathematics/flint: new EAPI=7 revision.

This new revision is based off François Bissey's ebuild in the
sage-on-gentoo overlay, which has accrued some fixes not present in
the ::gentoo version. Of note, it fixes an open build bug, and an
unreported issue where 32-bit libraries are detected on a 64-bit
system.

The update to EAPI=7 required only moving the LaTeX dependencies to
BDEPEND. In the process, I updated the LICENSE to LGPL-2.1+ because
upstream has done the same. I also looked long and hard for a reason
why we have RESTRICT=mirror in the ebuild. Finding none, I have
removed the restriction.

Closes: https://bugs.gentoo.org/470732
Closes: https://bugs.gentoo.org/688674
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Michael Orlitzky  gentoo.org>

 .../flint/files/flint-2.5.2-memory_message.patch   | 16 +
 sci-mathematics/flint/files/flint-2.5.2-pie.patch  | 78 ++
 sci-mathematics/flint/files/flint-2.5.2-utf8.patch | 13 
 sci-mathematics/flint/files/flintxx-include.patch  | 19 ++
 sci-mathematics/flint/flint-2.5.2-r1.ebuild| 74 
 5 files changed, 200 insertions(+)

diff --git a/sci-mathematics/flint/files/flint-2.5.2-memory_message.patch 
b/sci-mathematics/flint/files/flint-2.5.2-memory_message.patch
new file mode 100644
index 000..65638aa7790
--- /dev/null
+++ b/sci-mathematics/flint/files/flint-2.5.2-memory_message.patch
@@ -0,0 +1,16 @@
+This fixes a Python 3 doctest failure in
+rings/polynomial/polynomial_integer_dense_flint.pyx: see #28334.
+See https://github.com/wbhart/flint2/pull/585 for upstream PR
+
+diff --git a/memory_manager.c b/memory_manager.c
+index 04abf8a..bece9f5 100644
+--- a/memory_manager.c
 b/memory_manager.c
+@@ -41,6 +41,7 @@ pthread_mutex_t register_lock;
+ static void flint_memory_error()
+ {
+ flint_printf("Exception (FLINT memory_manager). Unable to allocate 
memory.\n");
++fflush(stdout);
+ abort();
+ }
+

diff --git a/sci-mathematics/flint/files/flint-2.5.2-pie.patch 
b/sci-mathematics/flint/files/flint-2.5.2-pie.patch
new file mode 100644
index 000..442d0254e82
--- /dev/null
+++ b/sci-mathematics/flint/files/flint-2.5.2-pie.patch
@@ -0,0 +1,78 @@
+In newer binutils, ld options -r and -pie conflict.
+Patch due to Jörg-Volker Peetz
+(source : https://groups.google.com/d/msg/sage-devel/TduebNoZuBE/sEULolL0BQAJ),
+packaged by Emmanuel Charpentier
+
+diff -ru flint-2.5.2-orig/fq/Makefile flint-2.5.2-new/fq/Makefile
+--- flint-2.5.2-orig/fq/Makefile   2015-08-13 18:16:22.0 +0200
 flint-2.5.2-new/fq/Makefile2016-11-07 18:41:09.148996528 +0100
+@@ -35,7 +35,7 @@
+   $(CC) $(CFLAGS) -c $(INCS) $< -o $@
+ 
+ $(MOD_LOBJ): $(LOBJS)
+-  $(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib
++  $(CC) $(ABI_FLAG) -r $^ -o $@ -nostdlib
+ 
+ $(BUILD_DIR)/%.lo: %.c
+   $(CC) $(PICFLAG) $(CFLAGS) $(INCS) -c $< -o $@
+diff -ru flint-2.5.2-orig/fq_poly/Makefile flint-2.5.2-new/fq_poly/Makefile
+--- flint-2.5.2-orig/fq_poly/Makefile  2015-08-13 18:16:22.0 +0200
 flint-2.5.2-new/fq_poly/Makefile   2016-11-07 18:41:09.148996528 +0100
+@@ -35,7 +35,7 @@
+   $(CC) $(CFLAGS) -c $(INCS) $< -o $@
+ 
+ $(MOD_LOBJ): $(LOBJS)
+-  $(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib
++  $(CC) $(ABI_FLAG) -r $^ -o $@ -nostdlib
+ 
+ $(BUILD_DIR)/%.lo: %.c
+   $(CC) $(PICFLAG) $(CFLAGS) $(INCS) -c $< -o $@
+diff -ru flint-2.5.2-orig/Makefile.subdirs flint-2.5.2-new/Makefile.subdirs
+--- flint-2.5.2-orig/Makefile.subdirs  2015-08-13 18:16:22.0 +0200
 flint-2.5.2-new/Makefile.subdirs   2016-11-07 18:41:09.144996522 +0100
+@@ -59,7 +59,7 @@
+   $(QUIET_CC) $(CC) $(CFLAGS) $(INCS) -c $< -o $@ -MMD -MP -MF 
"$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$@"
+ 
+ $(MOD_LOBJ): $(LOBJS)
+-  $(QUIET_CC) $(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib
++  $(QUIET_CC) $(CC) $(ABI_FLAG) -r $^ -o $@ -nostdlib
+ 
+ -include $(LOBJS:.lo=.d)
+ 
+Seulement dans flint-2.5.2-new/: Makefile.subdirs.orig
+diff -ru flint-2.5.2-orig/padic_mat/Makefile flint-2.5.2-new/padic_mat/Makefile
+--- flint-2.5.2-orig/padic_mat/Makefile2015-08-13 18:16:22.0 
+0200
 flint-2.5.2-new/padic_mat/Makefile 2016-11-07 18:41:09.148996528 +0100
+@@ -35,7 +35,7 @@
+   $(CC) $(CFLAGS) -c $(INCS) $< -o $@
+ 
+ $(MOD_LOBJ): $(LOBJS)
+-  $(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib
++  $(CC) $(ABI_FLAG) -r $^ -o $@ -nostdlib
+ 
+ $(BUILD_DIR)/%.lo: %.c
+   $(CC) $(PICFLAG) $(CFLAGS) $(INCS) -c $< -o $@
+diff -ru flint-2.5.2-orig/padic_poly/Makefile 
flint-2.5.2-new/padic_poly/Makefile
+--- 

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2019-12-12 Thread Michał Górny
commit: 22dba986297f9bc5cd6da4b2646ccc5a1c3f76f8
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Dec 12 15:33:34 2019 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Dec 12 16:35:10 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22dba986

sci-mathematics/flint: [QA] Fix MissingTestRestrict

Signed-off-by: Michał Górny  gentoo.org>

 sci-mathematics/flint/flint-2.4.4-r1.ebuild | 4 ++--
 sci-mathematics/flint/flint-2.4.5.ebuild| 4 ++--
 sci-mathematics/flint/flint-2.5.2.ebuild| 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/sci-mathematics/flint/flint-2.4.4-r1.ebuild 
b/sci-mathematics/flint/flint-2.4.4-r1.ebuild
index 1068395a40c..846ee038654 100644
--- a/sci-mathematics/flint/flint-2.4.4-r1.ebuild
+++ b/sci-mathematics/flint/flint-2.4.4-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
@@ -9,7 +9,7 @@ DESCRIPTION="Fast Library for Number Theory"
 HOMEPAGE="http://www.flintlib.org/;
 SRC_URI="http://www.flintlib.org/${P}.tar.gz;
 
-RESTRICT="mirror"
+RESTRICT="mirror !test? ( test )"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 ppc x86"

diff --git a/sci-mathematics/flint/flint-2.4.5.ebuild 
b/sci-mathematics/flint/flint-2.4.5.ebuild
index b36ea8b5f2b..36bcaaaea7a 100644
--- a/sci-mathematics/flint/flint-2.4.5.ebuild
+++ b/sci-mathematics/flint/flint-2.4.5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
@@ -9,7 +9,7 @@ DESCRIPTION="Fast Library for Number Theory"
 HOMEPAGE="http://www.flintlib.org/;
 SRC_URI="http://www.flintlib.org/${P}.tar.gz;
 
-RESTRICT="mirror"
+RESTRICT="mirror !test? ( test )"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"

diff --git a/sci-mathematics/flint/flint-2.5.2.ebuild 
b/sci-mathematics/flint/flint-2.5.2.ebuild
index 64f94ae79dc..0a6ef5a44bd 100644
--- a/sci-mathematics/flint/flint-2.5.2.ebuild
+++ b/sci-mathematics/flint/flint-2.5.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
@@ -9,7 +9,7 @@ DESCRIPTION="Fast Library for Number Theory"
 HOMEPAGE="http://www.flintlib.org/;
 SRC_URI="http://www.flintlib.org/${P}.tar.gz;
 
-RESTRICT="mirror"
+RESTRICT="mirror !test? ( test )"
 LICENSE="GPL-2"
 SLOT="0/13"
 KEYWORDS="~amd64 ~arm ~x86"



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2017-09-24 Thread Thomas Deutschmann
commit: 2f8c6f143df46ad4f661c05890717ba7ff2d4b76
Author: Alexander Tsoy  tsoy  me>
AuthorDate: Sun Sep 24 19:11:10 2017 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Sun Sep 24 19:17:36 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f8c6f14

sci-mathematics/flint: Fix compilation with >=sys-devel/binutils-2.25.1

Closes: https://bugs.gentoo.org/573868
Package-Manager: Portage-2.3.10, Repoman-2.3.3
Acked-by: Patrick Lauer  gentoo.org>

 sci-mathematics/flint/flint-2.4.4-r1.ebuild | 6 +-
 sci-mathematics/flint/flint-2.4.5.ebuild| 6 +-
 sci-mathematics/flint/flint-2.5.2.ebuild| 8 +++-
 3 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/sci-mathematics/flint/flint-2.4.4-r1.ebuild 
b/sci-mathematics/flint/flint-2.4.4-r1.ebuild
index 8e4d583bd03..aca6c9be941 100644
--- a/sci-mathematics/flint/flint-2.4.4-r1.ebuild
+++ b/sci-mathematics/flint/flint-2.4.4-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
@@ -31,6 +31,10 @@ src_prepare() {
"${FILESDIR}"/${PN}-2.4.3-whitespaces.patch \
"${FILESDIR}"/${PN}-2.4.3-cflags-ldflags.patch \
"${FILESDIR}"/${PN}-2.4.4-test.patch
+
+   sed -i \
+   -e '/echo "DLPATH_ADD=/s/\$DLPATH_ADD/\\\$(CURDIR)/' \
+   ./configure || die
 }
 
 src_configure() {

diff --git a/sci-mathematics/flint/flint-2.4.5.ebuild 
b/sci-mathematics/flint/flint-2.4.5.ebuild
index 318603218d1..a8293b9632a 100644
--- a/sci-mathematics/flint/flint-2.4.5.ebuild
+++ b/sci-mathematics/flint/flint-2.4.5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
@@ -33,6 +33,10 @@ src_prepare() {
"${FILESDIR}"/${PN}-2.4.4-test.patch \
"${FILESDIR}"/${PN}-2.4.5-gmp6-compat.patch \
"${FILESDIR}"/${PN}-2.4.5-ntl62.patch
+
+   sed -i \
+   -e '/echo "DLPATH_ADD=/s/\$DLPATH_ADD/\\\$(CURDIR)/' \
+   ./configure || die
 }
 
 src_configure() {

diff --git a/sci-mathematics/flint/flint-2.5.2.ebuild 
b/sci-mathematics/flint/flint-2.5.2.ebuild
index e7ccd512438..0217ae0600c 100644
--- a/sci-mathematics/flint/flint-2.5.2.ebuild
+++ b/sci-mathematics/flint/flint-2.5.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
@@ -26,6 +26,12 @@ DEPEND="${RDEPEND}
dev-texlive/texlive-latexextra
)"
 
+src_prepare() {
+   sed -i \
+   -e '/echo "DLPATH_ADD=/s/\$DLPATH_ADD/\\\$(CURDIR)/' \
+   ./configure || die
+}
+
 src_configure() {
./configure \
--prefix="${EPREFIX}/usr" \



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/, sci-mathematics/flint/files/

2017-09-24 Thread Thomas Deutschmann
commit: 78913ef011e8aaf88033f9ad8cdc235d118fccf7
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Sun Sep 24 19:17:22 2017 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Sun Sep 24 19:17:38 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78913ef0

sci-mathematics/flint: Fix FTBFS with PIE enabled

Closes: https://bugs.gentoo.org/608704
Package-Manager: Portage-2.3.10, Repoman-2.3.3

 sci-mathematics/flint/files/flint-2.4.4-PIE-FTBFS.patch | 17 +
 sci-mathematics/flint/flint-2.4.4-r1.ebuild |  3 ++-
 sci-mathematics/flint/flint-2.4.5.ebuild|  3 ++-
 sci-mathematics/flint/flint-2.5.2.ebuild|  2 ++
 4 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/sci-mathematics/flint/files/flint-2.4.4-PIE-FTBFS.patch 
b/sci-mathematics/flint/files/flint-2.4.4-PIE-FTBFS.patch
new file mode 100644
index 000..5689e3633ee
--- /dev/null
+++ b/sci-mathematics/flint/files/flint-2.4.4-PIE-FTBFS.patch
@@ -0,0 +1,17 @@
+Description: invoke $(CC) with -r and not -Wl,-r to fix FTBFS with PIE enabled
+Author: Logan Rosen 
+Forwarded: yes
+
+diff --git a/Makefile.subdirs b/Makefile.subdirs
+index ec05fb0..f2d8b37 100644
+--- a/Makefile.subdirs
 b/Makefile.subdirs
+@@ -59,7 +59,7 @@ $(BUILD_DIR)/$(MOD_DIR)_%.o: %.c
+   $(QUIET_CC) $(CC) $(CFLAGS) $(INCS) -c $< -o $@ -MMD -MP -MF 
"$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$@"
+ 
+ $(MOD_LOBJ): $(LOBJS)
+-  $(QUIET_CC) $(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib
++  $(QUIET_CC) $(CC) $(ABI_FLAG) -r $^ -o $@ -nostdlib
+ 
+ -include $(LOBJS:.lo=.d)
+ 

diff --git a/sci-mathematics/flint/flint-2.4.4-r1.ebuild 
b/sci-mathematics/flint/flint-2.4.4-r1.ebuild
index aca6c9be941..1068395a40c 100644
--- a/sci-mathematics/flint/flint-2.4.4-r1.ebuild
+++ b/sci-mathematics/flint/flint-2.4.4-r1.ebuild
@@ -30,7 +30,8 @@ src_prepare() {
epatch "${FILESDIR}"/${PN}-2.4.3-libdir.patch \
"${FILESDIR}"/${PN}-2.4.3-whitespaces.patch \
"${FILESDIR}"/${PN}-2.4.3-cflags-ldflags.patch \
-   "${FILESDIR}"/${PN}-2.4.4-test.patch
+   "${FILESDIR}"/${PN}-2.4.4-test.patch \
+   "${FILESDIR}"/${PN}-2.4.4-PIE-FTBFS.patch
 
sed -i \
-e '/echo "DLPATH_ADD=/s/\$DLPATH_ADD/\\\$(CURDIR)/' \

diff --git a/sci-mathematics/flint/flint-2.4.5.ebuild 
b/sci-mathematics/flint/flint-2.4.5.ebuild
index a8293b9632a..b36ea8b5f2b 100644
--- a/sci-mathematics/flint/flint-2.4.5.ebuild
+++ b/sci-mathematics/flint/flint-2.4.5.ebuild
@@ -32,7 +32,8 @@ src_prepare() {
"${FILESDIR}"/${PN}-2.4.3-cflags-ldflags.patch \
"${FILESDIR}"/${PN}-2.4.4-test.patch \
"${FILESDIR}"/${PN}-2.4.5-gmp6-compat.patch \
-   "${FILESDIR}"/${PN}-2.4.5-ntl62.patch
+   "${FILESDIR}"/${PN}-2.4.5-ntl62.patch \
+   "${FILESDIR}"/${PN}-2.4.4-PIE-FTBFS.patch
 
sed -i \
-e '/echo "DLPATH_ADD=/s/\$DLPATH_ADD/\\\$(CURDIR)/' \

diff --git a/sci-mathematics/flint/flint-2.5.2.ebuild 
b/sci-mathematics/flint/flint-2.5.2.ebuild
index 0217ae0600c..64f94ae79dc 100644
--- a/sci-mathematics/flint/flint-2.5.2.ebuild
+++ b/sci-mathematics/flint/flint-2.5.2.ebuild
@@ -27,6 +27,8 @@ DEPEND="${RDEPEND}
)"
 
 src_prepare() {
+   epatch "${FILESDIR}"/${PN}-2.4.4-PIE-FTBFS.patch
+
sed -i \
-e '/echo "DLPATH_ADD=/s/\$DLPATH_ADD/\\\$(CURDIR)/' \
./configure || die



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2017-09-24 Thread Thomas Deutschmann
commit: 0751a5a062ae1a1448d20fb63f028b50b6c932f1
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Sun Sep 24 18:39:03 2017 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Sun Sep 24 19:17:35 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0751a5a0

sci-mathematics/flint: Cleanup old

Package-Manager: Portage-2.3.10, Repoman-2.3.3

 sci-mathematics/flint/Manifest   |  2 --
 sci-mathematics/flint/flint-2.3.ebuild   | 32 -
 sci-mathematics/flint/flint-2.4.3.ebuild | 61 
 3 files changed, 95 deletions(-)

diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index b2cf3ea4ac9..d24120340b9 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1,5 +1,3 @@
-DIST flint-2.3.tar.gz 830837 SHA256 
6bb059048f822dc9291567949f1baed8c77f337ff2601e91a8e9d20936291a75 SHA512 
8b5cb41ef9616c984554f7085dcd914d8d91b0f8b3964939c740336e79cfcc6e81fc9135084845615f56429952a4fc0eb3960c6df13d5f779c997c3b53763e56
 WHIRLPOOL 
12ee4c4e6efadbe2913783fcfe7583f084c6c10777e04293de6748cf177423f7652e5cd8bcdd0f412be73a40f4c5fc744a84c0de89f6c1ff527c20e55e102258
-DIST flint-2.4.3.tar.gz 1636527 SHA256 
93585cd321c5a2fad053c903ba7cd947f54de71d31cf1dd1af6814906c1ee763 SHA512 
d7cecb7116c458f554e09524b9df25784ed32f889a4d83a3fc6fbf16f08ace68890b3a748a8b1b03e543c121994ed7e5efbdca9e7dbb694a4571c8d25e983aa9
 WHIRLPOOL 
4ec1ce3447218c9a45a9548284b7948714327bf264e9087d7c0687936a586cb96eb921079770d78c482af158ca78c65193ccbf489a789771ae527eed4d75d588
 DIST flint-2.4.4.tar.gz 1639262 SHA256 
c4799e9394ef06d7b8625f7fd74ba2d8ca115dbb2aa506dcc6e369b49d0e5bc7 SHA512 
236997cf64bdc96741740889f450fdbaf7d7e9b58252645f864d28005c9e7bdf87f7187cd17526606c605f0489f026398a1361b8f209f71158ca3b31c42d86d2
 WHIRLPOOL 
299820bc656e955d54dd06be3a1ba68440e8d9c72785ac54e7d9559da073b31c07b73598c9b18c98889f836dfd25ed8cd96d62a901a12a529698ae00ba30f1d1
 DIST flint-2.4.5.tar.gz 1640022 SHA256 
e489354df00f0d84976ccdd0477028693977c87ccd14f3924a89f848bb0e01e3 SHA512 
088ff512ea2330f9323a6ca0dc875e8c0926d755317d6007eba4b333a14d7612e82ebcfeabd26d1ec4b9204c4517dee08f914ad1ec852e37336fe378710a8bfc
 WHIRLPOOL 
cf5a22a9353cc23f1ab056cf6737d61d8de91ab0dc0c4a2ae46cf0777abee240a49f76de15bf854a8275023735101ce306789bca9a052151b09017e02d111069
 DIST flint-2.5.2.tar.gz 2212242 SHA256 
cbf1fe0034533c53c5c41761017065f85207a1b770483e98b2392315f6575e87 SHA512 
cce36947b558aabecaf780171b4bbc0e1330c3b1a7e3580717584be5cab4991d33b190531c7995b224a3a440e28c4a610d6f781901e29f48ced12a9c5ba960a2
 WHIRLPOOL 
74b237a8d258d17395aa0bf474c24a8ffe7ad01c4cbc4aa5b712fe14f1920191d9f96ef062461fbe8750b4461eacb0d88ff2a9d19990450363d87104e9ce203d

diff --git a/sci-mathematics/flint/flint-2.3.ebuild 
b/sci-mathematics/flint/flint-2.3.ebuild
deleted file mode 100644
index fc33fe73114..000
--- a/sci-mathematics/flint/flint-2.3.ebuild
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit eutils multilib
-
-DESCRIPTION="Fast Library for Number Theory"
-HOMEPAGE="http://www.flintlib.org/;
-SRC_URI="http://www.flintlib.org/${P}.tar.gz;
-
-RESTRICT="mirror"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-DEPEND="dev-libs/mpfr:0
-   dev-libs/ntl
-   sci-libs/mpir
-   "
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-   # Correct lib paths to be multilib-proper #470732
-   sed -i -e 's~/lib~/'$(get_libdir)'~' Makefile.in || die
-}
-
-src_configure() {
-   # handwritten script, needs extra stabbing
-   ./configure --with-mpir=/usr --with-mpfr=/usr --with-ntl=/usr 
--prefix="${D}/usr" || die
-}

diff --git a/sci-mathematics/flint/flint-2.4.3.ebuild 
b/sci-mathematics/flint/flint-2.4.3.ebuild
deleted file mode 100644
index 96f84aec152..000
--- a/sci-mathematics/flint/flint-2.4.3.ebuild
+++ /dev/null
@@ -1,61 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit eutils multilib toolchain-funcs
-
-DESCRIPTION="Fast Library for Number Theory"
-HOMEPAGE="http://www.flintlib.org/;
-SRC_URI="http://www.flintlib.org/${P}.tar.gz;
-
-RESTRICT="mirror"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="doc gc ntl static-libs test"
-
-RDEPEND="dev-libs/gmp:0=
-   dev-libs/mpfr:0
-   gc? ( dev-libs/boehm-gc )
-   ntl? ( dev-libs/ntl )"
-DEPEND="${RDEPEND}
-   doc? ( app-text/texlive-core )"
-
-src_prepare() {
-   epatch "${FILESDIR}"/${PN}-2.4.3-libdir.patch \
-   "${FILESDIR}"/${PN}-2.4.3-whitespaces.patch \
-   "${FILESDIR}"/${PN}-2.4.3-cflags-ldflags.patch
-}
-
-src_configure() {
-   ./configure \
-   --prefix="${EPREFIX}/usr" \
-   --with-gmp="${EPREFIX}/usr" \
-   --with-mpfr="${EPREFIX}/usr" \
-   $(usex ntl "--with-ntl=${EPREFIX}/usr" 

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2016-03-02 Thread Markus Meier
commit: f9ac2293469f443fdd0632159cdae5dcef841442
Author: Markus Meier  gentoo  org>
AuthorDate: Wed Mar  2 19:37:56 2016 +
Commit: Markus Meier  gentoo  org>
CommitDate: Wed Mar  2 19:38:20 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9ac2293

sci-mathematics/flint: add ~arm, bug #573944

Package-Manager: portage-2.2.27
RepoMan-Options: --include-arches="arm"

 sci-mathematics/flint/flint-2.5.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flint/flint-2.5.2.ebuild 
b/sci-mathematics/flint/flint-2.5.2.ebuild
index 7011315..b3d1096 100644
--- a/sci-mathematics/flint/flint-2.5.2.ebuild
+++ b/sci-mathematics/flint/flint-2.5.2.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://www.flintlib.org/${P}.tar.gz;
 RESTRICT="mirror"
 LICENSE="GPL-2"
 SLOT="0/13"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 ~arm ~x86"
 IUSE="doc gc ntl static-libs test"
 
 RDEPEND="dev-libs/gmp:=



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2016-01-05 Thread Patrick Lauer
commit: e6b8e13a58ec59332f6acd519dbed01d8166a17b
Author: Patrick Lauer  gentoo  org>
AuthorDate: Tue Jan  5 09:41:10 2016 +
Commit: Patrick Lauer  gentoo  org>
CommitDate: Tue Jan  5 09:41:26 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6b8e13a

sci-mathematics/flint: Bump #557978

Package-Manager: portage-2.2.26

 sci-mathematics/flint/Manifest   |  1 +
 sci-mathematics/flint/flint-2.5.2.ebuild | 60 
 2 files changed, 61 insertions(+)

diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index 959bebf..b2cf3ea 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -2,3 +2,4 @@ DIST flint-2.3.tar.gz 830837 SHA256 
6bb059048f822dc9291567949f1baed8c77f337ff260
 DIST flint-2.4.3.tar.gz 1636527 SHA256 
93585cd321c5a2fad053c903ba7cd947f54de71d31cf1dd1af6814906c1ee763 SHA512 
d7cecb7116c458f554e09524b9df25784ed32f889a4d83a3fc6fbf16f08ace68890b3a748a8b1b03e543c121994ed7e5efbdca9e7dbb694a4571c8d25e983aa9
 WHIRLPOOL 
4ec1ce3447218c9a45a9548284b7948714327bf264e9087d7c0687936a586cb96eb921079770d78c482af158ca78c65193ccbf489a789771ae527eed4d75d588
 DIST flint-2.4.4.tar.gz 1639262 SHA256 
c4799e9394ef06d7b8625f7fd74ba2d8ca115dbb2aa506dcc6e369b49d0e5bc7 SHA512 
236997cf64bdc96741740889f450fdbaf7d7e9b58252645f864d28005c9e7bdf87f7187cd17526606c605f0489f026398a1361b8f209f71158ca3b31c42d86d2
 WHIRLPOOL 
299820bc656e955d54dd06be3a1ba68440e8d9c72785ac54e7d9559da073b31c07b73598c9b18c98889f836dfd25ed8cd96d62a901a12a529698ae00ba30f1d1
 DIST flint-2.4.5.tar.gz 1640022 SHA256 
e489354df00f0d84976ccdd0477028693977c87ccd14f3924a89f848bb0e01e3 SHA512 
088ff512ea2330f9323a6ca0dc875e8c0926d755317d6007eba4b333a14d7612e82ebcfeabd26d1ec4b9204c4517dee08f914ad1ec852e37336fe378710a8bfc
 WHIRLPOOL 
cf5a22a9353cc23f1ab056cf6737d61d8de91ab0dc0c4a2ae46cf0777abee240a49f76de15bf854a8275023735101ce306789bca9a052151b09017e02d111069
+DIST flint-2.5.2.tar.gz 2212242 SHA256 
cbf1fe0034533c53c5c41761017065f85207a1b770483e98b2392315f6575e87 SHA512 
cce36947b558aabecaf780171b4bbc0e1330c3b1a7e3580717584be5cab4991d33b190531c7995b224a3a440e28c4a610d6f781901e29f48ced12a9c5ba960a2
 WHIRLPOOL 
74b237a8d258d17395aa0bf474c24a8ffe7ad01c4cbc4aa5b712fe14f1920191d9f96ef062461fbe8750b4461eacb0d88ff2a9d19990450363d87104e9ce203d

diff --git a/sci-mathematics/flint/flint-2.5.2.ebuild 
b/sci-mathematics/flint/flint-2.5.2.ebuild
new file mode 100644
index 000..7011315
--- /dev/null
+++ b/sci-mathematics/flint/flint-2.5.2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="Fast Library for Number Theory"
+HOMEPAGE="http://www.flintlib.org/;
+SRC_URI="http://www.flintlib.org/${P}.tar.gz;
+
+RESTRICT="mirror"
+LICENSE="GPL-2"
+SLOT="0/13"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc gc ntl static-libs test"
+
+RDEPEND="dev-libs/gmp:=
+   dev-libs/mpfr:=
+   gc? ( dev-libs/boehm-gc )
+   ntl? ( dev-libs/ntl:= )"
+DEPEND="${RDEPEND}
+   doc? (
+   app-text/texlive-core
+   dev-texlive/texlive-latex
+   dev-texlive/texlive-latexextra
+   )"
+
+src_configure() {
+   ./configure \
+   --prefix="${EPREFIX}/usr" \
+   --with-gmp="${EPREFIX}/usr" \
+   --with-mpfr="${EPREFIX}/usr" \
+   $(usex ntl "--with-ntl=${EPREFIX}/usr" "") \
+   $(use_enable static-libs static) \
+   $(usex gc "--with-gc=${EPREFIX}/usr" "") \
+   CC=$(tc-getCC) \
+   CXX=$(tc-getCXX) \
+   AR=$(tc-getAR) \
+   || die
+}
+
+src_compile() {
+   emake verbose
+
+   if use doc ; then
+   emake -C doc/latex
+   fi
+}
+
+src_test() {
+   emake AT= QUIET_CC= QUIET_CXX= QUIET_AR= check
+}
+
+src_install() {
+   emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install
+   einstalldocs
+   use doc && dodoc doc/latex/flint-manual.pdf
+}



[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/

2015-11-12 Thread Agostino Sarubbo
commit: 0994453662a1b80308729b1618479ddb61174a9e
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Thu Nov 12 10:10:41 2015 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Thu Nov 12 10:10:41 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09944536

sci-mathematics/flint: ppc stable wrt bug #556418

Package-Manager: portage-2.2.20.1
RepoMan-Options: --include-arches="ppc"

 sci-mathematics/flint/flint-2.4.4-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flint/flint-2.4.4-r1.ebuild 
b/sci-mathematics/flint/flint-2.4.4-r1.ebuild
index ebd7360..58af8e1 100644
--- a/sci-mathematics/flint/flint-2.4.4-r1.ebuild
+++ b/sci-mathematics/flint/flint-2.4.4-r1.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://www.flintlib.org/${P}.tar.gz;
 RESTRICT="mirror"
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 x86"
+KEYWORDS="amd64 ppc x86"
 IUSE="doc gc ntl static-libs test"
 
 RDEPEND="dev-libs/gmp