diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-libs/symengine |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-libs/symengine')
-rw-r--r-- | sci-libs/symengine/Manifest | 3 | ||||
-rw-r--r-- | sci-libs/symengine/metadata.xml | 25 | ||||
-rw-r--r-- | sci-libs/symengine/symengine-0.3.0-r1.ebuild | 76 |
3 files changed, 104 insertions, 0 deletions
diff --git a/sci-libs/symengine/Manifest b/sci-libs/symengine/Manifest new file mode 100644 index 000000000000..8ba823459670 --- /dev/null +++ b/sci-libs/symengine/Manifest @@ -0,0 +1,3 @@ +DIST symengine-0.3.0.tar.gz 629813 SHA256 591463cb9e741d59f6dfd39a7943e3865d3afe9eac47d1a9cbf5ca74b9c49476 SHA512 e4a906bb1cc5159003969871711f40b3c6bfb9e38ac25258dc5797933d55374a2f201c8a89e9af48821b24cc54408d4feb70f6de421e0a9fbf766d2b35846b83 WHIRLPOOL c910a8d00edeb686c94b5ec473d69a6da4e4e33e7d126b2ccc9eef4c0dbf04b7e277c63020067fed66cb30e4b00a32c9384feca204054e142835710c70be0bd8 +EBUILD symengine-0.3.0-r1.ebuild 2074 SHA256 b59937015985eccb4a6a290febd48e122d4221e81c7cddac485f7a58e6530d13 SHA512 e60602366c3c14046f7aa5131e884663f5fbbdf216b41b8824d0017ef96f7a8c9307bcf6da0eccfec9fcdf06ad3952153142bb5ea10d18bfc1f64230cc27835d WHIRLPOOL e74f349b82c99a63cb6e04bb61a34e1dfb69ae5516c2d59d60bf824b55dbb40031cac51acece285d0e189a0d668dc95d8a0af343f18b903a100f2c381c3c8e49 +MISC metadata.xml 1150 SHA256 963a25e5aa0fe932fbcde62f95f1de5a9324c81bdcdfd0ca91132397a08187e2 SHA512 33f04c5f8b7eaeb25dfe712582fec5cbc6a17a4d2f90c96eea84c43025af0be6eb8f3d6ce4a9904a46e4d36374d651a15e539ebf09f16ba9bfd2c4a61cd7e911 WHIRLPOOL 8a2af9d0f43c6210f91f23cb3f92a51fe91802d2e67437775adbc530aa66d795ef396774e47dda115db4a8e86c26c599b4741af6ab14e549980f07cb9da74c0f diff --git a/sci-libs/symengine/metadata.xml b/sci-libs/symengine/metadata.xml new file mode 100644 index 000000000000..63672cfa6a09 --- /dev/null +++ b/sci-libs/symengine/metadata.xml @@ -0,0 +1,25 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci-mathematics@gentoo.org</email> + <name>Gentoo Mathematics Project</name> + </maintainer> + <longdescription> + SymEngine is a standalone fast C++ symbolic manipulation + library. Optional thin wrappers allow usage of the library from R, + Python, Julia, Ruby, Haskell. + </longdescription> + <upstream> + <remote-id type="github">sympy/symengine</remote-id> + </upstream> + <use> + <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="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> + <flag name="mpfr">Add support for multiprecision floating point rouding(<pkg>dev-libs/mpfr</pkg>)</flag> + </use> +</pkgmetadata> diff --git a/sci-libs/symengine/symengine-0.3.0-r1.ebuild b/sci-libs/symengine/symengine-0.3.0-r1.ebuild new file mode 100644 index 000000000000..c493c94e39e8 --- /dev/null +++ b/sci-libs/symengine/symengine-0.3.0-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils 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.3" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="arb benchmarks boost debug doc flint llvm mpc mpfr openmp test tcmalloc threads" + +RDEPEND=" + dev-libs/gmp:= + sys-libs/binutils-libs:= + arb? ( sci-mathematics/arb:= ) + boost? ( dev-libs/boost:= ) + 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-utils_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, ecm + 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_SHARED_LIBS=ON + -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)" + ) + test-flag-CXX -std=c++11 && append-cxxflags -std=c++11 + CMAKE_BUILD_TYPE=Release cmake-utils_src_configure +} |