From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DA6C0139694 for ; Wed, 26 Jul 2017 20:07:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1158E1FC0E1; Wed, 26 Jul 2017 20:07:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D36871FC0E1 for ; Wed, 26 Jul 2017 20:07:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C90E03416D0 for ; Wed, 26 Jul 2017 20:07:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6BCEE3064 for ; Wed, 26 Jul 2017 20:07:17 +0000 (UTC) From: "Sebastien Fabbro" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastien Fabbro" Message-ID: <1501099622.7232e41956f0617679880628f02246e04c02fdb9.bicatali@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/symengine/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/symengine/Manifest sci-libs/symengine/metadata.xml sci-libs/symengine/symengine-0.3.0.ebuild X-VCS-Directories: sci-libs/symengine/ X-VCS-Committer: bicatali X-VCS-Committer-Name: Sebastien Fabbro X-VCS-Revision: 7232e41956f0617679880628f02246e04c02fdb9 X-VCS-Branch: master Date: Wed, 26 Jul 2017 20:07:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1fb3b5fc-0ad9-4283-be93-37e1f097c15c X-Archives-Hash: 3edfc56072bbc679432e07a2ac579ed7 commit: 7232e41956f0617679880628f02246e04c02fdb9 Author: Sébastien Fabbro gentoo org> AuthorDate: Tue Jul 25 19:57:31 2017 +0000 Commit: Sebastien Fabbro gentoo org> CommitDate: Wed Jul 26 20:07:02 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7232e419 sci-libs/symengine: initial import Package-Manager: Portage-2.3.6, Repoman-2.3.3 sci-libs/symengine/Manifest | 1 + sci-libs/symengine/metadata.xml | 25 +++++++++++ sci-libs/symengine/symengine-0.3.0.ebuild | 71 +++++++++++++++++++++++++++++++ 3 files changed, 97 insertions(+) diff --git a/sci-libs/symengine/Manifest b/sci-libs/symengine/Manifest new file mode 100644 index 00000000000..89177fe1f11 --- /dev/null +++ b/sci-libs/symengine/Manifest @@ -0,0 +1 @@ +DIST symengine-0.3.0.tar.gz 629813 SHA256 591463cb9e741d59f6dfd39a7943e3865d3afe9eac47d1a9cbf5ca74b9c49476 SHA512 e4a906bb1cc5159003969871711f40b3c6bfb9e38ac25258dc5797933d55374a2f201c8a89e9af48821b24cc54408d4feb70f6de421e0a9fbf766d2b35846b83 WHIRLPOOL c910a8d00edeb686c94b5ec473d69a6da4e4e33e7d126b2ccc9eef4c0dbf04b7e277c63020067fed66cb30e4b00a32c9384feca204054e142835710c70be0bd8 diff --git a/sci-libs/symengine/metadata.xml b/sci-libs/symengine/metadata.xml new file mode 100644 index 00000000000..63672cfa6a0 --- /dev/null +++ b/sci-libs/symengine/metadata.xml @@ -0,0 +1,25 @@ + + + + + sci-mathematics@gentoo.org + Gentoo Mathematics Project + + + SymEngine is a standalone fast C++ symbolic manipulation + library. Optional thin wrappers allow usage of the library from R, + Python, Julia, Ruby, Haskell. + + + sympy/symengine + + + Add support for arb (sci-mathematics/arb) + Build benchmarks + Add support for boost integers(dev-libs/boost) + Add support for (sci-mathematics/flint) + Build with LLVM + Add support for multiprecision complex arithmetic(dev-libs/mpc) + Add support for multiprecision floating point rouding(dev-libs/mpfr) + + diff --git a/sci-libs/symengine/symengine-0.3.0.ebuild b/sci-libs/symengine/symengine-0.3.0.ebuild new file mode 100644 index 00000000000..5e0894d0d97 --- /dev/null +++ b/sci-libs/symengine/symengine-0.3.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +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|" \ + -i 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)" + ) + CMAKE_BUILD_TYPE=Release cmake-utils_src_configure +}