commit:     02ddda07511f808136b170397def65f67e9c6cca
Author:     layman <layman <AT> localhost>
AuthorDate: Mon Aug 24 19:57:42 2015 +0000
Commit:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> 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 <[email protected]> +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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <herd>sci-mathematics</herd>
+  <maintainer>
+    <email>[email protected]</email>
+    <name>Michael Schubert</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">sympy/symengine</remote-id>
+  </upstream>
+<use>
+       <flag name="boost">Add support for boost 
(<pkg>dev-libs/boost</pkg>)</flag>
+</use>
+</pkgmetadata>

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
+}

Reply via email to