From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B40EA13888F for ; Tue, 6 Oct 2015 21:01:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7CB9821C00D; Tue, 6 Oct 2015 21:01:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 08DE421C002 for ; Tue, 6 Oct 2015 21:01:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B9292340814 for ; Tue, 6 Oct 2015 21:01:46 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 69D14B14 for ; Tue, 6 Oct 2015 21:01:45 +0000 (UTC) From: "Marius Brehler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marius Brehler" Message-ID: <1440869770.02ddda07511f808136b170397def65f67e9c6cca.marbre@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/symengine/ X-VCS-Repository: proj/sci X-VCS-Files: sci-libs/symengine/ChangeLog sci-libs/symengine/metadata.xml sci-libs/symengine/symengine-0.1.0.ebuild sci-libs/symengine/symengine-9999.ebuild X-VCS-Directories: sci-libs/symengine/ X-VCS-Committer: marbre X-VCS-Committer-Name: Marius Brehler X-VCS-Revision: 02ddda07511f808136b170397def65f67e9c6cca X-VCS-Branch: master Date: Tue, 6 Oct 2015 21:01:45 +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: ef193dcb-95eb-4568-9d19-7eaafadbbfcf X-Archives-Hash: 5f4e40f9415a71069136f5c571fda82e commit: 02ddda07511f808136b170397def65f67e9c6cca Author: layman localhost> AuthorDate: Mon Aug 24 19:57:42 2015 +0000 Commit: Marius Brehler linux sungazer de> CommitDate: Sat Aug 29 17:36:10 2015 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=02ddda07 sci-libs/symengine: add sympy-symengine Package-Manager: portage-2.2.20-prefix sci-libs/symengine/ChangeLog | 10 +++++ sci-libs/symengine/metadata.xml | 15 ++++++++ sci-libs/symengine/symengine-0.1.0.ebuild | 61 ++++++++++++++++++++++++++++++ sci-libs/symengine/symengine-9999.ebuild | 63 +++++++++++++++++++++++++++++++ 4 files changed, 149 insertions(+) diff --git a/sci-libs/symengine/ChangeLog b/sci-libs/symengine/ChangeLog new file mode 100644 index 0000000..80d711f --- /dev/null +++ b/sci-libs/symengine/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sci-libs/symengine +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Id$ + +*symengine-0.1.0 (24 Aug 2015) +*symengine-9999 (24 Aug 2015) + + 24 Aug 2015; Michael Schubert +metadata.xml, + +symengine-0.1.0.ebuild, +symengine-9999.ebuild: + sci-libs/symengine: add sympy-symengine diff --git a/sci-libs/symengine/metadata.xml b/sci-libs/symengine/metadata.xml new file mode 100644 index 0000000..6d3c8af --- /dev/null +++ b/sci-libs/symengine/metadata.xml @@ -0,0 +1,15 @@ + + + + sci-mathematics + + mschu.dev@gmail.com + Michael Schubert + + + sympy/symengine + + + Add support for boost (dev-libs/boost) + + diff --git a/sci-libs/symengine/symengine-0.1.0.ebuild b/sci-libs/symengine/symengine-0.1.0.ebuild new file mode 100644 index 0000000..cc464d1 --- /dev/null +++ b/sci-libs/symengine/symengine-0.1.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils python-single-r1 + +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" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="boost openmp python threads" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + dev-libs/jemalloc + boost? ( dev-libs/boost ) + python? ( dev-python/numpy[${PYTHON_USEDEP}] )" +DEPEND="${RDEPEND} + openmp? ( sys-cluster/openmpi ) + python? ( + dev-python/cython[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] )" + +CMAKE_BUILD_TYPE=Release + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]]; then + if use openmp; then + if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then + ewarn "OpenMP is not available in your current selected gcc" + die "need openmp capable gcc" + fi + fi + fi +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX:PATH="${EPREFIX}"/usr + $(cmake-utils_use_with boost) + $(cmake-utils_use_with openmp) + $(cmake-utils_use_with python) + ) + + if use threads; then + mycmakeargs+=( + -DWITH_TCMALLOC:BOOL=ON + -DWITH_PTHREAD:BOOL=ON + -DWITH_SYMENGINE_THREAD_SAFE:BOOL=ON + ) + fi + + cmake-utils_src_configure +} diff --git a/sci-libs/symengine/symengine-9999.ebuild b/sci-libs/symengine/symengine-9999.ebuild new file mode 100644 index 0000000..2949716 --- /dev/null +++ b/sci-libs/symengine/symengine-9999.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit git-r3 cmake-utils python-single-r1 + +DESCRIPTION="Fast symbolic manipulation library, written in C++" +HOMEPAGE="https://github.com/sympy/symengine" +SRC_URI="" +EGIT_REPO_URI="https://github.com/sympy/symengine.git" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="boost openmp python threads" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + dev-libs/jemalloc + boost? ( dev-libs/boost ) + python? ( dev-python/numpy[${PYTHON_USEDEP}] )" +DEPEND="${RDEPEND} + openmp? ( sys-cluster/openmpi ) + python? ( + dev-python/cython[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] )" + + +CMAKE_BUILD_TYPE=Release + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]]; then + if use openmp; then + if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then + ewarn "OpenMP is not available in your current selected gcc" + die "need openmp capable gcc" + fi + fi + fi +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX:PATH="${EPREFIX}"/usr + $(cmake-utils_use_with boost) + $(cmake-utils_use_with openmp) + $(cmake-utils_use_with python) + ) + + if use threads; then + mycmakeargs+=( + -DWITH_TCMALLOC:BOOL=ON + -DWITH_PTHREAD:BOOL=ON + -DWITH_SYMENGINE_THREAD_SAFE:BOOL=ON + ) + fi + + cmake-utils_src_configure +}