diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
commit | 21435953e16cda318a82334ddbadb3b5c36d9ea7 (patch) | |
tree | e1810a4b135afce04b34862ef0fab2bfaeb8aeca /sci-libs/symengine | |
parent | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (diff) |
gentoo resync : 15.01.2020
Diffstat (limited to 'sci-libs/symengine')
-rw-r--r-- | sci-libs/symengine/Manifest | 4 | ||||
-rw-r--r-- | sci-libs/symengine/metadata.xml | 1 | ||||
-rw-r--r-- | sci-libs/symengine/symengine-0.5.0.ebuild | 79 |
3 files changed, 83 insertions, 1 deletions
diff --git a/sci-libs/symengine/Manifest b/sci-libs/symengine/Manifest index e608b37c3c93..ed731b950a33 100644 --- a/sci-libs/symengine/Manifest +++ b/sci-libs/symengine/Manifest @@ -1,5 +1,7 @@ DIST symengine-0.3.0.tar.gz 629813 BLAKE2B 8d611703604f10d1ed8837708fa2125c0e84d12a8513d34e5d4bd44ae55395bcaa8fda92754b538ba1ecfdcacff83d079094dda9dfca6fdcdc4cccb0702cf484 SHA512 e4a906bb1cc5159003969871711f40b3c6bfb9e38ac25258dc5797933d55374a2f201c8a89e9af48821b24cc54408d4feb70f6de421e0a9fbf766d2b35846b83 DIST symengine-0.4.0.tar.gz 753664 BLAKE2B c6296ceef20cfbb16803adc3c623429cf417c639d45d8cad742c3f7cf9d8171f22fb72e168cd07a6a705726a09133866fa497e2092ec4885ae4462d55adc416e SHA512 162c4bb4c67e2f21a0a113726d7b0ad00cc3e80db0534e95109a41894dcd05ca03a3be39d1a56a336b4bb7926dadad72fbe6705c71df3448db99fde20139ad11 +DIST symengine-0.5.0.tar.gz 761321 BLAKE2B ddff0e756188f375e966b92e6e7796936b8b6fe1a884c036066dc09d46183f157761c9813fe27366e625b7cc070381332964a12f14617be66b0f38f536c0518d SHA512 0b94b531f71adf9129440e0664a5b5ce23453de6c8d22ed385958b38cda9bc2b356a0182a80076f47b217e9f6b5a57f059b040fddf7d69694d5bd5857b0a046b EBUILD symengine-0.3.0-r1.ebuild 2098 BLAKE2B 4faf5dc46cb1736f3e76fadbc11397b093827e81534216f2bb3c58b59bc9f17c5d0d29100065e6add3ab3a3c8f9d774d22df70336f9d6353fffdd3411697f335 SHA512 f9f5f7202f118e362468cc7899409c826a2590525643c05f0c5e3db773b46f761e09daf5fe692722bf07184bc72961f69725ccb7294811992ddf20a683476231 EBUILD symengine-0.4.0.ebuild 2098 BLAKE2B 072f1e55eb91c66cc0056b4de3314029c049f2caa8e8dc20b3ae30fd11b851d56df85196a8418c4ae6a5782647e25b80e2eb704c8cd95106ad4cc2f38a0d2ff9 SHA512 5d8c7336ebde34694a4acf39b37dfb9288b14b5eed41ffd54919ec8f7ec956ff47e08791e2ca6566bc6c9c0833abe07cb3ed647018d0d9a27fc3842acac365fa -MISC metadata.xml 1150 BLAKE2B b71aad51273ac2e9cd7907b72b71ab3fca4baf67ffcba3fdb3f3560ae6a75f5aef6077f4dc9e4ef26c62d75c6b66438f2dd0489c094dec37a94e733905732726 SHA512 33f04c5f8b7eaeb25dfe712582fec5cbc6a17a4d2f90c96eea84c43025af0be6eb8f3d6ce4a9904a46e4d36374d651a15e539ebf09f16ba9bfd2c4a61cd7e911 +EBUILD symengine-0.5.0.ebuild 2115 BLAKE2B 8cb38f033fb9bec53a490f657ceaa38aefd75ca701424bf3d86ed6cfb555045623a4a784d071af613eb6b175aa62044855396278915e83581eb48aadd464003b SHA512 5335024931f58917e8730a5ff5c7bb76cd9ae5f800e09c3bbe4640409b0896c39c931b5769c1b68ee17412be8f26b863b171479c126628781297a8982d04a10f +MISC metadata.xml 1265 BLAKE2B f91a4783ae464dee61dbca5f532bb73a217600b49633f0c80ee46f7650f27f2e37e32cd4f5e14e171e6a47eb4c612d686f883034378afb73520ed0c22862d564 SHA512 f2a634346a9f703565959b48d7648df6abb088a479819aa3f9818ae941df168dbfa3cb1867f48673fce9f24dc890d05134689d93edb0d6761f2a54f4c802037e diff --git a/sci-libs/symengine/metadata.xml b/sci-libs/symengine/metadata.xml index 63672cfa6a09..759e5c9c0a48 100644 --- a/sci-libs/symengine/metadata.xml +++ b/sci-libs/symengine/metadata.xml @@ -17,6 +17,7 @@ <flag name="arb">Add support for arb (<pkg>sci-mathematics/arb</pkg>)</flag> <flag name="benchmarks">Build benchmarks</flag> <flag name="boost">Add support for boost integers(<pkg>dev-libs/boost</pkg>)</flag> + <flag name="ecm">Add support for ECM integer factorization library (<pkg>sci-mathematics/gmp-ecm</pkg>)</flag> <flag name="flint">Add support for (<pkg>sci-mathematics/flint</pkg>)</flag> <flag name="llvm">Build with LLVM</flag> <flag name="mpc">Add support for multiprecision complex arithmetic(<pkg>dev-libs/mpc</pkg>)</flag> diff --git a/sci-libs/symengine/symengine-0.5.0.ebuild b/sci-libs/symengine/symengine-0.5.0.ebuild new file mode 100644 index 000000000000..6b84f4677d6c --- /dev/null +++ b/sci-libs/symengine/symengine-0.5.0.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_BUILD_TYPE=Release +inherit cmake flag-o-matic + +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 ~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 ) + 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=( + -DARB_INCLUDE_DIR="${EPREFIX}/usr/include" + -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)" + ) + test-flag-CXX -std=c++11 && append-cxxflags -std=c++11 + cmake_src_configure +} |