From: "Marius Brehler" <marbre@linux.sungazer.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/symengine/
Date: Tue, 6 Oct 2015 21:01:45 +0000 (UTC) [thread overview]
Message-ID: <1440869770.02ddda07511f808136b170397def65f67e9c6cca.marbre@gentoo> (raw)
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 <mschu.dev@gmail.com> +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>mschu.dev@gmail.com</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
+}
next reply other threads:[~2015-10-06 21:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-06 21:01 Marius Brehler [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-10-06 21:01 [gentoo-commits] proj/sci:master commit in: sci-libs/symengine/ Marius Brehler
2015-10-06 21:01 Marius Brehler
2020-05-03 2:41 Matthias Maier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1440869770.02ddda07511f808136b170397def65f67e9c6cca.marbre@gentoo \
--to=marbre@linux.sungazer.de \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox