From 0f558761aa2dee1017b4751e4017205e015a9560 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 29 Jun 2022 12:04:12 +0100 Subject: gentoo resync : 29.12.2022 --- sci-libs/symengine/Manifest | 11 +-- .../files/symengine-0.7.0-boost-1.77.patch | 19 ----- .../symengine/files/symengine-0.8.1-fix_llvm.patch | 68 +++++++++++++++ .../files/symengine-0.9.0-pthread-cmake.patch | 63 ++++++++++++++ sci-libs/symengine/symengine-0.6.0-r1.ebuild | 81 ------------------ sci-libs/symengine/symengine-0.7.0-r1.ebuild | 87 ------------------- sci-libs/symengine/symengine-0.8.1-r1.ebuild | 86 ------------------- sci-libs/symengine/symengine-0.8.1-r2.ebuild | 91 ++++++++++++++++++++ sci-libs/symengine/symengine-0.9.0-r2.ebuild | 99 ++++++++++++++++++++++ sci-libs/symengine/symengine-0.9.0.ebuild | 97 --------------------- 10 files changed, 325 insertions(+), 377 deletions(-) delete mode 100644 sci-libs/symengine/files/symengine-0.7.0-boost-1.77.patch create mode 100644 sci-libs/symengine/files/symengine-0.8.1-fix_llvm.patch create mode 100644 sci-libs/symengine/files/symengine-0.9.0-pthread-cmake.patch delete mode 100644 sci-libs/symengine/symengine-0.6.0-r1.ebuild delete mode 100644 sci-libs/symengine/symengine-0.7.0-r1.ebuild delete mode 100644 sci-libs/symengine/symengine-0.8.1-r1.ebuild create mode 100644 sci-libs/symengine/symengine-0.8.1-r2.ebuild create mode 100644 sci-libs/symengine/symengine-0.9.0-r2.ebuild delete mode 100644 sci-libs/symengine/symengine-0.9.0.ebuild (limited to 'sci-libs/symengine') diff --git a/sci-libs/symengine/Manifest b/sci-libs/symengine/Manifest index 65214ee0a5a2..9666c8cc1d86 100644 --- a/sci-libs/symengine/Manifest +++ b/sci-libs/symengine/Manifest @@ -1,11 +1,8 @@ -AUX symengine-0.7.0-boost-1.77.patch 607 BLAKE2B 8f9c6103369e83413667dc65fcacea8301d4c0535d0620b9cce2b9d082f635512a2a75f973425da137b5b64f6096a285c8997c8f5561025b936bbd9ba2e428d2 SHA512 12166126fad2927d3f68af17f1cb58134f17ac4dcd7b31eb47ee0c21327c9f55fe7f35a913b7400983c8c806fafcdf62c48eef516ec66383c7e416ccd3757fd8 AUX symengine-0.7.0-cmake-build-type.patch 1234 BLAKE2B b416e9b83db5eb6689bb9e18682d8f36f6ec13a4fe368004d2c3f961945cb0d1ec94081cb2c99bb16656439214cfd127a21cad2844a4752cd5c2fa6f40f3a3dc SHA512 d5e09a9603fab4caa9d9b091a0636be5ab8eddea6cb5b37b184ff7a65ac9707536f1a71e1893e0b5f795efb33396ae653d2745487aa863f7a239c63e42d22032 -DIST symengine-0.6.0.tar.gz 763481 BLAKE2B 37fe94ad08463b31c7387ab296b201a4dda821ba59dfa548d0c42e70d23958bae24df3f035bd3fffb46cc08cc010d13a25e607a9e0644e9b3c0602fa0eb363b3 SHA512 cc6f0468534e5bcd466a810d44f9884b17858ca6c7151cdcadb3af0f7d8faf0d96697d5887ab65fc9094de80df825f8243dabc54e3f5c387be544880f49b482b -DIST symengine-0.7.0.tar.gz 802307 BLAKE2B de207f565f179deae37479eec82dfced3d83bfb7e643b4e6969135e10130dd05c888f34aa75c76c238ff1babfd0864f3329c3deee126b84ec33c4937c11dc20c SHA512 fd3198bc4a05ca2b9b8a58039cc21af65b44457f295362a1a9b8dbf9c6e3df5186c0c84b289bc9fe85d9efd5ac1a683f6b7ba9a661fb6d913d6ceefb14ee2348 +AUX symengine-0.8.1-fix_llvm.patch 2674 BLAKE2B f7d493318389f63a8b61f47ee2ba6429d205e91fec3f94a5c45a062622fa7b6c29ab410fb04a260d98f983402e4e74103ca591ea3aa035c68bd4e431dfde371f SHA512 683e9acac3f6304e2ac1d2c67304d1e6a2fc6915115a201a870e29253c804e378b39d8d00298a70ac5a4e1456a153febe69d63cfbab821b31cda46fc94782131 +AUX symengine-0.9.0-pthread-cmake.patch 1973 BLAKE2B c66e3b3eb8895ac27e1a294632a1496a23271c1c315ea0781c50f48dc02ea35795759900ae152f942a2246bafd777398195d851ee9b8910f29216d92f4227a76 SHA512 7c76371c6892b6faf0848b0d25f895f37b56e318ade48eff27ac2fabe830a17dd317a48641d47cee0e4eaa689898d54c675dd5f6d01ba29d233255aaa0b9c86a DIST symengine-0.8.1.tar.gz 733007 BLAKE2B b218674bd4cc1eb5b5ebf7ec9d69093d3ab0d25c5fd302430457189ff56f44cb56640fab380a7415fdc241e9c7e3e1a4199ec8063a54b9358b35f0ab8076f05a SHA512 b83b354a722c589cf262fbfad902b277a7232ae2b949ff97f4ad8f654c44965f15eae7d78e87045a42dd6ee5f6f6f67af0a2c4def8899db430fc17e3360696a9 DIST symengine-0.9.0.tar.gz 878574 BLAKE2B 32c37ca6575b3f7e37184c80c2df74ebf7bb7846537e951be6c888994b8dc049c1ed2a6f51da1c1cfb038e0a47393b18acff60cfef665c5a5e714beb9b0ecb12 SHA512 dceca49ddb6e2ac7c4f8ecb73ce19824cbaa3eff41ad0f50008e403498121184b4e9dc660628dbd8e4db979f8c16b83a709a40540f7834954ab01f9854e12caa -EBUILD symengine-0.6.0-r1.ebuild 2216 BLAKE2B 4d9be11362f6b7b5a7727d32a7c78d95bc9d0a53287cedd127cb270f445b6e1b0af29c3414390c89ab21839c404310dc830ff4338cfbf66fa3504eb95e1fddef SHA512 135c11c561c74e6e337d0525ee8ad093fcd94ad3610d237a950c6f0e123aeeced09556201a34b893fe33e4f5d6115059f9ca422fd1441423447a30da8b61bcc9 -EBUILD symengine-0.7.0-r1.ebuild 2307 BLAKE2B 58738cdf35d5656e25cbeec02bbba2d9d847ecb21fabb65163b957d52a5edf7a010628ced7891f79905a7f31a33452040c149b31a6525ddcde00707dadebf8b5 SHA512 1817320a9de0950a17295edb02bb1f0685e030916133d55039a9b8087bbfeb2d076a33b6dab22e79912a8bcbcfad7c457d850b5500ba1a43afd8934504189975 -EBUILD symengine-0.8.1-r1.ebuild 2263 BLAKE2B f452bd2334c12daaa62d66fa0aa8af88fc712403ff00e6326c6974bcb723c717ebe162a26fa6b5dd36ab021e094b4abe2cc59ad4271f7326f0180b592407c8e6 SHA512 ee425d08b3f264ebae3ec28f829e0adb42dbc9e3abe2d83bf8f82b4db035559e5b87a887e7d9a6cb910e2ea0b69329029d96d8e26b4f6425ea7296e2e1565cee -EBUILD symengine-0.9.0.ebuild 2506 BLAKE2B 00dd886354362a51a34155046792477d415a7783c7a65be763206eb2bd84ecf71fbac16784d032245cb144e549ca0740acfa51d65685642c3f78bd027f932dc8 SHA512 bcc2feec0af7335c10499a4b0fed09bfc6e6eddc6b62e636665bad534802073ad8f8c348155fd293d184290982a426bc3d370178ebcadebb336203db2869c61e +EBUILD symengine-0.8.1-r2.ebuild 2386 BLAKE2B 6147d12c2fdabec0f92337d89da05ba8e09ae4d281e766b13617cb59f180167b887b3acb1577bdbc04d52bc4e75af30891f36d83c3bcbeff1cd569afbf44cdb9 SHA512 f0c45508d7ddf1e357d6764022132def42ab2e0d22eaaf82b00644fab25c3cc443664335f96c94221fa4616287fd32b85403284eea38371d2733a96ccce4ff6f +EBUILD symengine-0.9.0-r2.ebuild 2619 BLAKE2B 53fa816f959d8382b9501e467f896e8576d3d27d9f26fe17fa56f1feac067c426fd9d34064298af713d969eba69ca349c3cb861c50722327a0a663f9a6a0e535 SHA512 846146c45383d9c81146030e1cbc5be835abc7955fe11a2cc16b2433ddaeb88ddb5298c99d97444b75f465587afdde697bf59248860167a36e187043765b9549 MISC metadata.xml 1270 BLAKE2B e52ff12980457252a05195ef47bd90e52816794948169473a597e263d744d163cbe42d35e995243daf6b8664f1ed7d41879b63927606187277cdf503fc7bf846 SHA512 4fd6f340d1d4952774eb0fcd47d9ed6e9f145bd83ba7bd04fe428faa96ec63b6cd62173b6ead116a649471fe9b6466be7bbb48c8e534b3203f232f9a7bae12b9 diff --git a/sci-libs/symengine/files/symengine-0.7.0-boost-1.77.patch b/sci-libs/symengine/files/symengine-0.7.0-boost-1.77.patch deleted file mode 100644 index c4d6dc28e8f8..000000000000 --- a/sci-libs/symengine/files/symengine-0.7.0-boost-1.77.patch +++ /dev/null @@ -1,19 +0,0 @@ -https://github.com/symengine/symengine/commit/ceae675dccd593f119f3010d46e133de74fc01bc -https://bugs.gentoo.org/808057 - -From: Liam Keegan -Date: Mon, 31 May 2021 21:31:02 +0200 -Subject: [PATCH] use list initialization for int parameter since type depends - on boost version - ---- a/symengine/mp_boost.cpp -+++ b/symengine/mp_boost.cpp -@@ -279,7 +279,7 @@ unsigned long mp_scan1(const integer_class &i) - if (i == 0) { - return ULONG_MAX; - } -- return find_lsb(i, int_<0>()); -+ return find_lsb(i, {}); - } - - // define simple 2x2 matrix with exponentiation by repeated squaring diff --git a/sci-libs/symengine/files/symengine-0.8.1-fix_llvm.patch b/sci-libs/symengine/files/symengine-0.8.1-fix_llvm.patch new file mode 100644 index 000000000000..810e2ac766d7 --- /dev/null +++ b/sci-libs/symengine/files/symengine-0.8.1-fix_llvm.patch @@ -0,0 +1,68 @@ +From: Matthias Maier +Date: Sat, 11 Jun 2022 01:44:54 -0500 +Subject: [PATCH] Fix cmake configure for shared LLVM libraries + +Gentoo builds LLVM into a combined shared library. The CMake +configuration shipped with LLVM is evidently broken in this case, see + + https://github.com/llvm/llvm-project/issues/34593 + https://bugs.gentoo.org/745915 + +We work around this issue by simply linking against the monolithic +"LLVM" target. +--- + CMakeLists.txt | 23 +---------------------- + 1 file changed, 1 insertion(+), 22 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index cf5ab3b..dfa6605 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -402,28 +402,7 @@ if (WITH_LLVM) + endforeach() + set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DNDEBUG") + +- llvm_map_components_to_libnames(llvm_libs_direct ${SYMENGINE_LLVM_COMPONENTS}) +- llvm_expand_dependencies(llvm_libs ${llvm_libs_direct}) +- +- if (BUILD_SHARED_LIBS) +- set(SYMENGINE_LLVM_LINK_DOWNSTREAM_DEFAULT False) +- foreach(LLVM_LIB ${llvm_libs}) +- get_target_property(${LLVM_LIB}_IMPORT_LOCATION ${LLVM_LIB} LOCATION) +- if (NOT "${${LLVM_LIB}_IMPORT_LOCATION}" MATCHES "NOTFOUND") +- if (NOT "${${LLVM_LIB}_IMPORT_LOCATION}" MATCHES ".a$|.lib$") +- set(SYMENGINE_LLVM_LINK_DOWNSTREAM_DEFAULT True) +- endif() +- endif() +- endforeach() +- else() +- set(SYMENGINE_LLVM_LINK_DOWNSTREAM_DEFAULT True) +- endif() +- set(SYMENGINE_LLVM_LINK_DOWNSTREAM ${SYMENGINE_LLVM_LINK_DOWNSTREAM_DEFAULT} +- CACHE INTERNAL "Link to llvm in SymEngineConfig.cmake") +- if (NOT SYMENGINE_LLVM_LINK_DOWNSTREAM) +- unset(SYMENGINE_LLVM_COMPONENTS) +- endif () +- set(LIBS ${LIBS} ${llvm_libs}) ++ set(LIBS ${LIBS} LLVM) + include_directories(SYSTEM ${LLVM_INCLUDE_DIRS}) + set(HAVE_SYMENGINE_LLVM yes) + set(PKGS ${PKGS} "LLVM") +diff --git a/cmake/SymEngineConfig.cmake.in b/cmake/SymEngineConfig.cmake.in +index b01ef9b..6d82c10 100644 +--- a/cmake/SymEngineConfig.cmake.in ++++ b/cmake/SymEngineConfig.cmake.in +@@ -67,9 +67,7 @@ set(SYMENGINE_LLVM_COMPONENTS @SYMENGINE_LLVM_COMPONENTS@) + + if (NOT "${SYMENGINE_LLVM_COMPONENTS}" STREQUAL "") + find_package(LLVM REQUIRED ${SYMENGINE_LLVM_COMPONENTS} HINTS @LLVM_DIR@) +- llvm_map_components_to_libnames(llvm_libs_direct ${SYMENGINE_LLVM_COMPONENTS}) +- llvm_expand_dependencies(llvm_libs ${llvm_libs_direct}) +- set(SYMENGINE_LIBRARIES ${SYMENGINE_LIBRARIES} ${llvm_libs}) ++ set(SYMENGINE_LIBRARIES ${SYMENGINE_LIBRARIES} LLVM) + else() + set(SYMENGINE_LLVM_INCLUDE_DIRS) + endif() +-- +2.35.1 + diff --git a/sci-libs/symengine/files/symengine-0.9.0-pthread-cmake.patch b/sci-libs/symengine/files/symengine-0.9.0-pthread-cmake.patch new file mode 100644 index 000000000000..0fa049dbf218 --- /dev/null +++ b/sci-libs/symengine/files/symengine-0.9.0-pthread-cmake.patch @@ -0,0 +1,63 @@ +From 6ad9620ffc578abdb920b84ea5e393c726389ac0 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Wed, 8 Jun 2022 06:02:25 +0100 +Subject: [PATCH] cmake: fix pthread detection + +The homebrew FindPTHREAD.cmake module was hardcoding the path to libpthread +in the installed CMake config file which broke consumers when upgrading from +< glibc-2.34 (e.g. glibc-2.33 -> glibc-2.34). + +CMake provides FindThreads which does the job fine for us. Tested with both +glibc-2.33 (with a previously bad generated file, and then fixed) and glibc-2.35. + +This should be fine on musl and friends too. This brings symengine in line +with most CMake packages. + +Bug: https://bugs.gentoo.org/849803 +Fixes: https://github.com/symengine/symengine/issues/1910 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -335,11 +335,10 @@ if (WITH_PIRANHA) + endif() + + if (WITH_PTHREAD) +- find_package(PTHREAD REQUIRED) +- include_directories(SYSTEM ${PTHREAD_INCLUDE_DIRS}) +- set(LIBS ${LIBS} ${PTHREAD_TARGETS}) ++ find_package(Threads) ++ set(THREADS_PREFER_PTHREAD_FLAG ON) ++ set(LIBS ${LIBS} ${CMAKE_THREAD_LIBS_INIT}) + set(HAVE_SYMENGINE_PTHREAD yes) +- set(PKGS ${PKGS} "PTHREAD") + endif() + + if (WITH_MPFR) +@@ -761,10 +760,6 @@ if (WITH_BOOST) + endif() + + message("WITH_PTHREAD: ${WITH_PTHREAD}") +-if (WITH_PTHREAD) +- message("PTHREAD_INCLUDE_DIRS: ${PTHREAD_INCLUDE_DIRS}") +- message("PTHREAD_LIBRARIES: ${PTHREAD_LIBRARIES}") +-endif() + + message("WITH_MPC: ${WITH_MPC}") + if (WITH_MPC) +--- a/cmake/FindPTHREAD.cmake ++++ /dev/null +@@ -1,14 +0,0 @@ +-include(LibFindMacros) +- +-libfind_include(pthread.h pthread) +-libfind_library(pthread pthread) +- +-set(PTHREAD_LIBRARIES ${PTHREAD_LIBRARY}) +-set(PTHREAD_INCLUDE_DIRS ${PTHREAD_INCLUDE_DIR}) +-set(PTHREAD_TARGETS pthread) +- +-include(FindPackageHandleStandardArgs) +-find_package_handle_standard_args(PTHREAD DEFAULT_MSG PTHREAD_LIBRARIES +- PTHREAD_INCLUDE_DIRS) +- +-mark_as_advanced(PTHREAD_INCLUDE_DIR PTHEARD_LIBRARY) + diff --git a/sci-libs/symengine/symengine-0.6.0-r1.ebuild b/sci-libs/symengine/symengine-0.6.0-r1.ebuild deleted file mode 100644 index 1454ac3431a0..000000000000 --- a/sci-libs/symengine/symengine-0.6.0-r1.ebuild +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -CMAKE_BUILD_TYPE=Release -inherit cmake flag-o-matic toolchain-funcs - -DESCRIPTION="Fast symbolic manipulation library, written in C++" -HOMEPAGE="https://github.com/sympy/symengine" -SRC_URI="https://github.com/sympy/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="amd64 ~arm ~arm64 x86 ~amd64-linux ~x86-linux" -IUSE="arb benchmarks boost debug doc ecm flint llvm mpc mpfr openmp test tcmalloc threads" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-libs/gmp:= - sys-libs/binutils-libs:= - arb? ( sci-mathematics/arb:= ) - boost? ( dev-libs/boost:= ) - ecm? ( sci-mathematics/gmp-ecm ) - flint? ( sci-mathematics/flint:= ) - mpc? ( dev-libs/mpc:= ) - tcmalloc? ( dev-util/google-perftools ) -" -DEPEND="${RDEPEND} - doc? ( app-doc/doxygen[dot] ) -" - -pkg_pretend() { - use openmp && [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp -} - -src_prepare() { - cmake_src_prepare - sed -e "s|DESTINATION doc| DESTINATION share/doc/${PF}/html|" \ - -e "s|/lib|/$(get_libdir)|g" \ - -e "s|lib/|$(get_libdir)/|g" \ - -e "/DESTINATION/s|lib|$(get_libdir)|g" \ - -i CMakeLists.txt symengine/CMakeLists.txt \ - symengine/utilities/teuchos/CMakeLists.txt || die -} - -src_configure() { - # not in portage yet: piranha - local int_class - if use arb || use flint; then - int_class=flint - elif use mpfr; then - int_class=gmpxx - elif use boost; then - int_class=boostmp - else - int_class=gmp - fi - local mycmakeargs=( - -DINTEGER_CLASS="${int_class}" - -DBUILD_BENCHMARKS="$(usex benchmarks)" - -DBUILD_DOXYGEN="$(usex doc)" - -DBUILD_TESTS="$(usex test)" - -DWITH_ARB="$(usex arb)" - -DWITH_BFD="$(usex debug)" - -DWITH_SYMENGINE_ASSERT="$(usex debug)" - -DWITH_SYMENGINE_THREAD_SAFE="$(usex threads)" - -DWITH_FLINT="$(usex flint)" - -DWITH_OPENMP="$(usex openmp)" - -DWITH_MPFR="$(usex mpfr)" - -DWITH_MPC="$(usex mpc)" - -DWITH_LLVM="$(usex llvm)" - -DWITH_PTHREAD="$(usex threads)" - -DWITH_TCMALLOC="$(usex tcmalloc)" - -DWITH_ECM="$(usex ecm)" - ) - use arb && mycmakeargs+=( -DARB_INCLUDE_DIR="${EPREFIX}/usr/include" ) - - test-flag-CXX -std=c++11 && append-cxxflags -std=c++11 - cmake_src_configure -} diff --git a/sci-libs/symengine/symengine-0.7.0-r1.ebuild b/sci-libs/symengine/symengine-0.7.0-r1.ebuild deleted file mode 100644 index 8b1becc43784..000000000000 --- a/sci-libs/symengine/symengine-0.7.0-r1.ebuild +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake flag-o-matic toolchain-funcs - -DESCRIPTION="Fast symbolic manipulation library, written in C++" -HOMEPAGE="https://github.com/sympy/symengine" -SRC_URI="https://github.com/sympy/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="amd64 ~arm ~arm64 ~riscv x86 ~amd64-linux ~x86-linux" -IUSE="arb benchmarks boost debug doc ecm flint llvm mpc mpfr openmp test tcmalloc threads" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-libs/gmp:= - sys-libs/binutils-libs:= - arb? ( sci-mathematics/arb:= ) - boost? ( dev-libs/boost:= ) - ecm? ( sci-mathematics/gmp-ecm ) - flint? ( sci-mathematics/flint:= ) - mpc? ( dev-libs/mpc:= ) - tcmalloc? ( dev-util/google-perftools ) -" -DEPEND="${RDEPEND} - doc? ( app-doc/doxygen[dot] ) -" - -PATCHES=( - "${FILESDIR}/${PN}-0.7.0-cmake-build-type.patch" - "${FILESDIR}/${PN}-0.7.0-boost-1.77.patch" -) - -pkg_pretend() { - use openmp && [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp -} - -src_prepare() { - cmake_src_prepare - sed -e "s|DESTINATION doc| DESTINATION share/doc/${PF}/html|" \ - -e "s|/lib|/$(get_libdir)|g" \ - -e "s|lib/|$(get_libdir)/|g" \ - -e "/DESTINATION/s|lib|$(get_libdir)|g" \ - -i CMakeLists.txt symengine/CMakeLists.txt \ - symengine/utilities/teuchos/CMakeLists.txt || die -} - -src_configure() { - # not in portage yet: piranha - local int_class - - if use arb || use flint; then - int_class=flint - elif use mpfr; then - int_class=gmpxx - elif use boost; then - int_class=boostmp - else - int_class=gmp - fi - - local mycmakeargs=( - -DINTEGER_CLASS="${int_class}" - -DBUILD_BENCHMARKS="$(usex benchmarks)" - -DBUILD_DOXYGEN="$(usex doc)" - -DBUILD_TESTS="$(usex test)" - -DWITH_ARB="$(usex arb)" - -DWITH_BFD="$(usex debug)" - -DWITH_SYMENGINE_ASSERT="$(usex debug)" - -DWITH_SYMENGINE_THREAD_SAFE="$(usex threads)" - -DWITH_FLINT="$(usex flint)" - -DWITH_OPENMP="$(usex openmp)" - -DWITH_MPFR="$(usex mpfr)" - -DWITH_MPC="$(usex mpc)" - -DWITH_LLVM="$(usex llvm)" - -DWITH_PTHREAD="$(usex threads)" - -DWITH_TCMALLOC="$(usex tcmalloc)" - -DWITH_ECM="$(usex ecm)" - ) - use arb && mycmakeargs+=( -DARB_INCLUDE_DIR="${EPREFIX}/usr/include" ) - - test-flag-CXX -std=c++11 && append-cxxflags -std=c++11 - cmake_src_configure -} diff --git a/sci-libs/symengine/symengine-0.8.1-r1.ebuild b/sci-libs/symengine/symengine-0.8.1-r1.ebuild deleted file mode 100644 index 68c0939697b8..000000000000 --- a/sci-libs/symengine/symengine-0.8.1-r1.ebuild +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake flag-o-matic toolchain-funcs - -DESCRIPTION="Fast symbolic manipulation library, written in C++" -HOMEPAGE="https://github.com/sympy/symengine" -SRC_URI="https://github.com/sympy/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="amd64 ~arm ~arm64 ~riscv x86 ~amd64-linux ~x86-linux" -IUSE="arb benchmarks boost debug doc ecm flint llvm mpc mpfr openmp test tcmalloc threads" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-libs/gmp:= - sys-libs/binutils-libs:= - arb? ( sci-mathematics/arb:= ) - boost? ( dev-libs/boost:= ) - ecm? ( sci-mathematics/gmp-ecm ) - flint? ( sci-mathematics/flint:= ) - mpc? ( dev-libs/mpc:= ) - tcmalloc? ( dev-util/google-perftools ) -" -DEPEND="${RDEPEND} - doc? ( app-doc/doxygen[dot] ) -" - -PATCHES=( - "${FILESDIR}/${PN}-0.7.0-cmake-build-type.patch" -) - -pkg_pretend() { - use openmp && [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp -} - -src_prepare() { - cmake_src_prepare - sed -e "s|DESTINATION doc| DESTINATION share/doc/${PF}/html|" \ - -e "s|/lib|/$(get_libdir)|g" \ - -e "s|lib/|$(get_libdir)/|g" \ - -e "/DESTINATION/s|lib|$(get_libdir)|g" \ - -i CMakeLists.txt symengine/CMakeLists.txt \ - symengine/utilities/teuchos/CMakeLists.txt || die -} - -src_configure() { - # not in portage yet: piranha - local int_class - - if use arb || use flint; then - int_class=flint - elif use mpfr; then - int_class=gmpxx - elif use boost; then - int_class=boostmp - else - int_class=gmp - fi - - local mycmakeargs=( - -DINTEGER_CLASS="${int_class}" - -DBUILD_BENCHMARKS="$(usex benchmarks)" - -DBUILD_DOXYGEN="$(usex doc)" - -DBUILD_TESTS="$(usex test)" - -DWITH_ARB="$(usex arb)" - -DWITH_BFD="$(usex debug)" - -DWITH_SYMENGINE_ASSERT="$(usex debug)" - -DWITH_SYMENGINE_THREAD_SAFE="$(usex threads)" - -DWITH_FLINT="$(usex flint)" - -DWITH_OPENMP="$(usex openmp)" - -DWITH_MPFR="$(usex mpfr)" - -DWITH_MPC="$(usex mpc)" - -DWITH_LLVM="$(usex llvm)" - -DWITH_PTHREAD="$(usex threads)" - -DWITH_TCMALLOC="$(usex tcmalloc)" - -DWITH_ECM="$(usex ecm)" - ) - use arb && mycmakeargs+=( -DARB_INCLUDE_DIR="${EPREFIX}/usr/include" ) - - test-flag-CXX -std=c++11 && append-cxxflags -std=c++11 - cmake_src_configure -} diff --git a/sci-libs/symengine/symengine-0.8.1-r2.ebuild b/sci-libs/symengine/symengine-0.8.1-r2.ebuild new file mode 100644 index 000000000000..93bc13fbc646 --- /dev/null +++ b/sci-libs/symengine/symengine-0.8.1-r2.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic toolchain-funcs + +DESCRIPTION="Fast symbolic manipulation library, written in C++" +HOMEPAGE="https://github.com/sympy/symengine" +SRC_URI="https://github.com/sympy/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="amd64 ~arm ~arm64 ~riscv x86 ~amd64-linux ~x86-linux" +IUSE="arb benchmarks boost debug doc ecm flint llvm mpc mpfr openmp test tcmalloc threads" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/gmp:= + sys-libs/binutils-libs:= + arb? ( sci-mathematics/arb:= ) + boost? ( dev-libs/boost:= ) + ecm? ( sci-mathematics/gmp-ecm ) + flint? ( sci-mathematics/flint:= ) + mpc? ( dev-libs/mpc:= ) + tcmalloc? ( dev-util/google-perftools ) +" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen[dot] ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.7.0-cmake-build-type.patch + "${FILESDIR}"/${PN}-0.8.1-fix_llvm.patch +) + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_prepare() { + cmake_src_prepare + sed -e "s|DESTINATION doc| DESTINATION share/doc/${PF}/html|" \ + -e "s|/lib|/$(get_libdir)|g" \ + -e "s|lib/|$(get_libdir)/|g" \ + -e "/DESTINATION/s|lib|$(get_libdir)|g" \ + -i CMakeLists.txt symengine/CMakeLists.txt \ + symengine/utilities/teuchos/CMakeLists.txt || die +} + +src_configure() { + # not in portage yet: piranha + local int_class + + if use arb || use flint; then + int_class=flint + elif use mpfr; then + int_class=gmpxx + elif use boost; then + int_class=boostmp + else + int_class=gmp + fi + + local mycmakeargs=( + -DINTEGER_CLASS="${int_class}" + -DBUILD_BENCHMARKS="$(usex benchmarks)" + -DBUILD_DOXYGEN="$(usex doc)" + -DBUILD_TESTS="$(usex test)" + -DWITH_ARB="$(usex arb)" + -DWITH_BFD="$(usex debug)" + -DWITH_SYMENGINE_ASSERT="$(usex debug)" + -DWITH_SYMENGINE_THREAD_SAFE="$(usex threads)" + -DWITH_FLINT="$(usex flint)" + -DWITH_OPENMP="$(usex openmp)" + -DWITH_MPFR="$(usex mpfr)" + -DWITH_MPC="$(usex mpc)" + -DWITH_LLVM="$(usex llvm)" + -DWITH_PTHREAD="$(usex threads)" + -DWITH_TCMALLOC="$(usex tcmalloc)" + -DWITH_ECM="$(usex ecm)" + ) + use arb && mycmakeargs+=( -DARB_INCLUDE_DIR="${EPREFIX}/usr/include" ) + + test-flag-CXX -std=c++11 && append-cxxflags -std=c++11 + cmake_src_configure +} diff --git a/sci-libs/symengine/symengine-0.9.0-r2.ebuild b/sci-libs/symengine/symengine-0.9.0-r2.ebuild new file mode 100644 index 000000000000..52ecab72e67c --- /dev/null +++ b/sci-libs/symengine/symengine-0.9.0-r2.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_MAX_SLOT=13 +inherit cmake llvm toolchain-funcs + +DESCRIPTION="Fast symbolic manipulation library, written in C++" +HOMEPAGE="https://github.com/symengine/symengine" +SRC_URI="https://github.com/symengine/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="amd64 ~arm ~arm64 ~riscv x86 ~amd64-linux ~x86-linux" +# BUILD_FOR_DISTRIBUTION enables threads by default so do it here +IUSE="arb benchmarks boost debug doc ecm +flint llvm +mpc +mpfr openmp test tcmalloc +threads" +RESTRICT="!test? ( test )" + +RDEPEND="dev-libs/gmp:= + sys-libs/binutils-libs:= + arb? ( sci-mathematics/arb:= ) + boost? ( dev-libs/boost:= ) + ecm? ( sci-mathematics/gmp-ecm ) + flint? ( sci-mathematics/flint:= ) + mpc? ( dev-libs/mpc:= ) + llvm? (