From 3b0bafb98e2d78db75264322a5561a63d4e34d65 Mon Sep 17 00:00:00 2001 From: François Bissey Date: Tue, 16 Jun 2020 22:54:52 +1200 Subject: sci-mathematics/flint: upstream bump to 2.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Michael Orlitzky --- 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(+) create mode 100644 sci-mathematics/flint/files/flint-2.6.0-multilib-strict.patch create mode 100644 sci-mathematics/flint/flint-2.6.0.ebuild 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 00000000000..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 00000000000..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 +} -- cgit v1.2.3-18-g5258