diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2021-12-14 20:46:40 +0100 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2021-12-14 20:52:30 +0100 |
commit | e97de966abde4fb241e20fd46c97b5e8b8499835 (patch) | |
tree | a7f7835d65048758a9c8219c255e059fbf2472b7 /sci-libs | |
parent | dev-python/spyder-kernels: enable py3.10 (diff) | |
download | gentoo-e97de966abde4fb241e20fd46c97b5e8b8499835.tar.gz gentoo-e97de966abde4fb241e20fd46c97b5e8b8499835.tar.bz2 gentoo-e97de966abde4fb241e20fd46c97b5e8b8499835.zip |
sci-libs/symengine: add version 0.8.1
Closes: https://bugs.gentoo.org/812194
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/symengine/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/symengine/symengine-0.8.1.ebuild | 86 |
2 files changed, 87 insertions, 0 deletions
diff --git a/sci-libs/symengine/Manifest b/sci-libs/symengine/Manifest index 8add269cb677..9fa24decdfcc 100644 --- a/sci-libs/symengine/Manifest +++ b/sci-libs/symengine/Manifest @@ -1,2 +1,3 @@ DIST symengine-0.6.0.tar.gz 763481 BLAKE2B 37fe94ad08463b31c7387ab296b201a4dda821ba59dfa548d0c42e70d23958bae24df3f035bd3fffb46cc08cc010d13a25e607a9e0644e9b3c0602fa0eb363b3 SHA512 cc6f0468534e5bcd466a810d44f9884b17858ca6c7151cdcadb3af0f7d8faf0d96697d5887ab65fc9094de80df825f8243dabc54e3f5c387be544880f49b482b DIST symengine-0.7.0.tar.gz 802307 BLAKE2B de207f565f179deae37479eec82dfced3d83bfb7e643b4e6969135e10130dd05c888f34aa75c76c238ff1babfd0864f3329c3deee126b84ec33c4937c11dc20c SHA512 fd3198bc4a05ca2b9b8a58039cc21af65b44457f295362a1a9b8dbf9c6e3df5186c0c84b289bc9fe85d9efd5ac1a683f6b7ba9a661fb6d913d6ceefb14ee2348 +DIST symengine-0.8.1.tar.gz 733007 BLAKE2B b218674bd4cc1eb5b5ebf7ec9d69093d3ab0d25c5fd302430457189ff56f44cb56640fab380a7415fdc241e9c7e3e1a4199ec8063a54b9358b35f0ab8076f05a SHA512 b83b354a722c589cf262fbfad902b277a7232ae2b949ff97f4ad8f654c44965f15eae7d78e87045a42dd6ee5f6f6f67af0a2c4def8899db430fc17e3360696a9 diff --git a/sci-libs/symengine/symengine-0.8.1.ebuild b/sci-libs/symengine/symengine-0.8.1.ebuild new file mode 100644 index 000000000000..6bfea75fb875 --- /dev/null +++ b/sci-libs/symengine/symengine-0.8.1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2021 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/0.4" +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 +} |