1 |
commit: d6b4ca304f506e249b4bad781446be35dac3eccf |
2 |
Author: Thomas Kahle <tomka <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 20 09:25:42 2016 +0000 |
4 |
Commit: Thomas Kahle <tomka <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 20 09:25:57 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6b4ca30 |
7 |
|
8 |
sci-mathematics/normaliz: Bump to 3.1.0 |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
sci-mathematics/normaliz/Manifest | 1 + |
13 |
sci-mathematics/normaliz/normaliz-3.1.0.ebuild | 63 ++++++++++++++++++++++++++ |
14 |
2 files changed, 64 insertions(+) |
15 |
|
16 |
diff --git a/sci-mathematics/normaliz/Manifest b/sci-mathematics/normaliz/Manifest |
17 |
index bf7a9f9..441eaca 100644 |
18 |
--- a/sci-mathematics/normaliz/Manifest |
19 |
+++ b/sci-mathematics/normaliz/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST Normaliz2.12.2.zip 6432949 SHA256 230772425b3c9964b9e144c0919c75fac0ec95260a1943c10a8a94eea9d7273e SHA512 fd42071cb87b8efbaf9af0885c173a0583e0b38dedb8821a83225eeebb44060a7b5748c44adfc4faeac20c3a1706071bcb9883cb4447e4a1ff3aeb770bd22038 WHIRLPOOL cb2974e02eac6e6d51c234214a719a24ad2e12d1400f0a6f8aee3e7a4ba3aa2ba053beec65c9032f42726e4dd4f1866820bb5b7b96f7c3d34cd132fcdbdb91af |
22 |
DIST Normaliz3.0.0.zip 8607387 SHA256 4dbc315de34a1f115a911194b22628948a32a993c486bda03623e6786172857b SHA512 b4ce7b5ab849982ee986e3b1cbef1ed620ddf57c8d89ef3d5973509ead52d49c2a59a2924357fb70838963ec1490f68cfe0c5c294b05c571402f8445234bdbf5 WHIRLPOOL f90b81eb7ea426a393cd515932765ad9e48b888e47c07a709ab085f15960c4cda4c70f90ba61bf590bbe9a2ee2ca125a46bd9a24bb0940c1e2b09203b0f16452 |
23 |
+DIST Normaliz3.1.0.zip 5734218 SHA256 dfb6b801c4a4bb9aeec6601c58eca2c92bfc420d126c5e0dce0e1f2cdb7d8200 SHA512 835f39cfcd7b6b39139a7c731320e297df2e7a41d0e68e0bfb4d72b9d6905a8b83b1ef61408458c071315933968290d5166470445cd19af4ef1b5ac6ba04496a WHIRLPOOL 25fedc897515fc4b8ce2ec82f70a2c2474b63d928c22126f140f69836af3f7af0cf9de9e1849ae6a886155e5ceabcedc8a42b234ad939648f5278302cb7a1950 |
24 |
|
25 |
diff --git a/sci-mathematics/normaliz/normaliz-3.1.0.ebuild b/sci-mathematics/normaliz/normaliz-3.1.0.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..161c894 |
28 |
--- /dev/null |
29 |
+++ b/sci-mathematics/normaliz/normaliz-3.1.0.ebuild |
30 |
@@ -0,0 +1,63 @@ |
31 |
+# Copyright 1999-2015 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=5 |
36 |
+ |
37 |
+inherit eutils toolchain-funcs versionator |
38 |
+ |
39 |
+MYPV=$(get_version_component_range 1-2) |
40 |
+MYP="Normaliz${MYPV}" |
41 |
+ |
42 |
+DESCRIPTION="Tool for computations in affine monoids and more" |
43 |
+HOMEPAGE="www.mathematik.uni-osnabrueck.de/normaliz/" |
44 |
+SRC_URI="https://www.normaliz.uni-osnabrueck.de/wp-content/uploads/2016/02/Normaliz${PV}.zip" |
45 |
+ |
46 |
+LICENSE="GPL-3" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+IUSE="doc extras openmp" |
50 |
+ |
51 |
+RDEPEND="dev-libs/gmp[cxx]" |
52 |
+DEPEND="${RDEPEND} |
53 |
+ app-arch/unzip |
54 |
+ dev-libs/boost" |
55 |
+# Only a boost header is needed -> not RDEPEND |
56 |
+ |
57 |
+S=${WORKDIR}/${MYP} |
58 |
+ |
59 |
+src_prepare () { |
60 |
+ epatch "${FILESDIR}/${PN}-3.0.0-respect-flags.patch" |
61 |
+ |
62 |
+ # Respect users AR tool (Bug 474532) |
63 |
+ sed -e "s:ar -cr:$(tc-getAR) -cr:" -i source/libnormaliz/Makefile || die |
64 |
+ |
65 |
+ if use openmp && tc-has-openmp; then |
66 |
+ export OPENMP=yes |
67 |
+ else |
68 |
+ export OPENMP=no |
69 |
+ fi |
70 |
+} |
71 |
+ |
72 |
+src_compile(){ |
73 |
+ emake CXX="$(tc-getCXX)" OPENMP="${OPENMP}" -C source |
74 |
+} |
75 |
+ |
76 |
+src_install() { |
77 |
+ dobin source/normaliz |
78 |
+ if use doc ; then |
79 |
+ dodoc doc/"Normaliz.pdf" |
80 |
+ dodoc doc/"NmzIntegrate.pdf" |
81 |
+ fi |
82 |
+ if use extras; then |
83 |
+ elog "You have selected to install extras which consist of Macaulay2" |
84 |
+ elog "and Singular packages. These have been installed into " |
85 |
+ elog "/usr/share/${PN}, and cannot be used without additional setup. Please refer" |
86 |
+ elog "to the homepages of the respective projects for additional information." |
87 |
+ elog "Note however, Gentoo's versions of Singular and Macaulay2 bring their own" |
88 |
+ elog "copies of these interface packages. Usually you don't need normaliz's versions." |
89 |
+ insinto "/usr/share/${PN}" |
90 |
+ doins Singular/normaliz.lib |
91 |
+ doins Macaulay2/Normaliz.m2 |
92 |
+ fi |
93 |
+} |