1 |
commit: 02ddda07511f808136b170397def65f67e9c6cca |
2 |
Author: layman <layman <AT> localhost> |
3 |
AuthorDate: Mon Aug 24 19:57:42 2015 +0000 |
4 |
Commit: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de> |
5 |
CommitDate: Sat Aug 29 17:36:10 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=02ddda07 |
7 |
|
8 |
sci-libs/symengine: add sympy-symengine |
9 |
|
10 |
Package-Manager: portage-2.2.20-prefix |
11 |
|
12 |
sci-libs/symengine/ChangeLog | 10 +++++ |
13 |
sci-libs/symengine/metadata.xml | 15 ++++++++ |
14 |
sci-libs/symengine/symengine-0.1.0.ebuild | 61 ++++++++++++++++++++++++++++++ |
15 |
sci-libs/symengine/symengine-9999.ebuild | 63 +++++++++++++++++++++++++++++++ |
16 |
4 files changed, 149 insertions(+) |
17 |
|
18 |
diff --git a/sci-libs/symengine/ChangeLog b/sci-libs/symengine/ChangeLog |
19 |
new file mode 100644 |
20 |
index 0000000..80d711f |
21 |
--- /dev/null |
22 |
+++ b/sci-libs/symengine/ChangeLog |
23 |
@@ -0,0 +1,10 @@ |
24 |
+# ChangeLog for sci-libs/symengine |
25 |
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
26 |
+# $Id$ |
27 |
+ |
28 |
+*symengine-0.1.0 (24 Aug 2015) |
29 |
+*symengine-9999 (24 Aug 2015) |
30 |
+ |
31 |
+ 24 Aug 2015; Michael Schubert <mschu.dev@×××××.com> +metadata.xml, |
32 |
+ +symengine-0.1.0.ebuild, +symengine-9999.ebuild: |
33 |
+ sci-libs/symengine: add sympy-symengine |
34 |
|
35 |
diff --git a/sci-libs/symengine/metadata.xml b/sci-libs/symengine/metadata.xml |
36 |
new file mode 100644 |
37 |
index 0000000..6d3c8af |
38 |
--- /dev/null |
39 |
+++ b/sci-libs/symengine/metadata.xml |
40 |
@@ -0,0 +1,15 @@ |
41 |
+<?xml version="1.0" encoding="UTF-8"?> |
42 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
43 |
+<pkgmetadata> |
44 |
+ <herd>sci-mathematics</herd> |
45 |
+ <maintainer> |
46 |
+ <email>mschu.dev@×××××.com</email> |
47 |
+ <name>Michael Schubert</name> |
48 |
+ </maintainer> |
49 |
+ <upstream> |
50 |
+ <remote-id type="github">sympy/symengine</remote-id> |
51 |
+ </upstream> |
52 |
+<use> |
53 |
+ <flag name="boost">Add support for boost (<pkg>dev-libs/boost</pkg>)</flag> |
54 |
+</use> |
55 |
+</pkgmetadata> |
56 |
|
57 |
diff --git a/sci-libs/symengine/symengine-0.1.0.ebuild b/sci-libs/symengine/symengine-0.1.0.ebuild |
58 |
new file mode 100644 |
59 |
index 0000000..cc464d1 |
60 |
--- /dev/null |
61 |
+++ b/sci-libs/symengine/symengine-0.1.0.ebuild |
62 |
@@ -0,0 +1,61 @@ |
63 |
+# Copyright 1999-2015 Gentoo Foundation |
64 |
+# Distributed under the terms of the GNU General Public License v2 |
65 |
+# $Id$ |
66 |
+ |
67 |
+EAPI=5 |
68 |
+ |
69 |
+PYTHON_COMPAT=( python2_7 ) |
70 |
+ |
71 |
+inherit cmake-utils python-single-r1 |
72 |
+ |
73 |
+DESCRIPTION="Fast symbolic manipulation library, written in C++" |
74 |
+HOMEPAGE="https://github.com/sympy/symengine" |
75 |
+SRC_URI="https://github.com/sympy/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
76 |
+ |
77 |
+LICENSE="MIT" |
78 |
+SLOT="0" |
79 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
80 |
+IUSE="boost openmp python threads" |
81 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
82 |
+ |
83 |
+RDEPEND=" |
84 |
+ dev-libs/jemalloc |
85 |
+ boost? ( dev-libs/boost ) |
86 |
+ python? ( dev-python/numpy[${PYTHON_USEDEP}] )" |
87 |
+DEPEND="${RDEPEND} |
88 |
+ openmp? ( sys-cluster/openmpi ) |
89 |
+ python? ( |
90 |
+ dev-python/cython[${PYTHON_USEDEP}] |
91 |
+ dev-python/setuptools[${PYTHON_USEDEP}] )" |
92 |
+ |
93 |
+CMAKE_BUILD_TYPE=Release |
94 |
+ |
95 |
+pkg_pretend() { |
96 |
+ if [[ ${MERGE_TYPE} != binary ]]; then |
97 |
+ if use openmp; then |
98 |
+ if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then |
99 |
+ ewarn "OpenMP is not available in your current selected gcc" |
100 |
+ die "need openmp capable gcc" |
101 |
+ fi |
102 |
+ fi |
103 |
+ fi |
104 |
+} |
105 |
+ |
106 |
+src_configure() { |
107 |
+ local mycmakeargs=( |
108 |
+ -DCMAKE_INSTALL_PREFIX:PATH="${EPREFIX}"/usr |
109 |
+ $(cmake-utils_use_with boost) |
110 |
+ $(cmake-utils_use_with openmp) |
111 |
+ $(cmake-utils_use_with python) |
112 |
+ ) |
113 |
+ |
114 |
+ if use threads; then |
115 |
+ mycmakeargs+=( |
116 |
+ -DWITH_TCMALLOC:BOOL=ON |
117 |
+ -DWITH_PTHREAD:BOOL=ON |
118 |
+ -DWITH_SYMENGINE_THREAD_SAFE:BOOL=ON |
119 |
+ ) |
120 |
+ fi |
121 |
+ |
122 |
+ cmake-utils_src_configure |
123 |
+} |
124 |
|
125 |
diff --git a/sci-libs/symengine/symengine-9999.ebuild b/sci-libs/symengine/symengine-9999.ebuild |
126 |
new file mode 100644 |
127 |
index 0000000..2949716 |
128 |
--- /dev/null |
129 |
+++ b/sci-libs/symengine/symengine-9999.ebuild |
130 |
@@ -0,0 +1,63 @@ |
131 |
+# Copyright 1999-2015 Gentoo Foundation |
132 |
+# Distributed under the terms of the GNU General Public License v2 |
133 |
+# $Id$ |
134 |
+ |
135 |
+EAPI=5 |
136 |
+ |
137 |
+PYTHON_COMPAT=( python2_7 ) |
138 |
+ |
139 |
+inherit git-r3 cmake-utils python-single-r1 |
140 |
+ |
141 |
+DESCRIPTION="Fast symbolic manipulation library, written in C++" |
142 |
+HOMEPAGE="https://github.com/sympy/symengine" |
143 |
+SRC_URI="" |
144 |
+EGIT_REPO_URI="https://github.com/sympy/symengine.git" |
145 |
+ |
146 |
+LICENSE="MIT" |
147 |
+SLOT="0" |
148 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
149 |
+IUSE="boost openmp python threads" |
150 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
151 |
+ |
152 |
+RDEPEND=" |
153 |
+ dev-libs/jemalloc |
154 |
+ boost? ( dev-libs/boost ) |
155 |
+ python? ( dev-python/numpy[${PYTHON_USEDEP}] )" |
156 |
+DEPEND="${RDEPEND} |
157 |
+ openmp? ( sys-cluster/openmpi ) |
158 |
+ python? ( |
159 |
+ dev-python/cython[${PYTHON_USEDEP}] |
160 |
+ dev-python/setuptools[${PYTHON_USEDEP}] )" |
161 |
+ |
162 |
+ |
163 |
+CMAKE_BUILD_TYPE=Release |
164 |
+ |
165 |
+pkg_pretend() { |
166 |
+ if [[ ${MERGE_TYPE} != binary ]]; then |
167 |
+ if use openmp; then |
168 |
+ if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then |
169 |
+ ewarn "OpenMP is not available in your current selected gcc" |
170 |
+ die "need openmp capable gcc" |
171 |
+ fi |
172 |
+ fi |
173 |
+ fi |
174 |
+} |
175 |
+ |
176 |
+src_configure() { |
177 |
+ local mycmakeargs=( |
178 |
+ -DCMAKE_INSTALL_PREFIX:PATH="${EPREFIX}"/usr |
179 |
+ $(cmake-utils_use_with boost) |
180 |
+ $(cmake-utils_use_with openmp) |
181 |
+ $(cmake-utils_use_with python) |
182 |
+ ) |
183 |
+ |
184 |
+ if use threads; then |
185 |
+ mycmakeargs+=( |
186 |
+ -DWITH_TCMALLOC:BOOL=ON |
187 |
+ -DWITH_PTHREAD:BOOL=ON |
188 |
+ -DWITH_SYMENGINE_THREAD_SAFE:BOOL=ON |
189 |
+ ) |
190 |
+ fi |
191 |
+ |
192 |
+ cmake-utils_src_configure |
193 |
+} |