Gentoo Archives: gentoo-commits

From: Thomas Kahle <tomka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/normaliz/
Date: Sun, 25 Sep 2016 12:01:52
Message-Id: 1474804896.5b5bc3147b2ee4bfe4cde51d8b0e7e3bd5301720.tomka@gentoo
1 commit: 5b5bc3147b2ee4bfe4cde51d8b0e7e3bd5301720
2 Author: Thomas Kahle <tomka <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 25 12:01:21 2016 +0000
4 Commit: Thomas Kahle <tomka <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 25 12:01:36 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b5bc314
7
8 sci-mathematics/normaliz: bump to 3.1.2 and EAPI=6
9
10 Package-Manager: portage-2.3.0
11
12 sci-mathematics/normaliz/Manifest | 1 +
13 sci-mathematics/normaliz/normaliz-3.1.2.ebuild | 65 ++++++++++++++++++++++++++
14 2 files changed, 66 insertions(+)
15
16 diff --git a/sci-mathematics/normaliz/Manifest b/sci-mathematics/normaliz/Manifest
17 index 949d275..de4b6bf 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.1.1.zip 5839858 SHA256 192e60d3671d4516c4904b166dec96c5b32c63c0fbaae15d067e25b8d9b6119e SHA512 efa75844542df45d3cff6b6f877f2d6132905b722468b3df5a89468798bf66cbaf33f359000fb462f4d24fb3414f4c293a8ba84112a6712862dd593bb5f314ba WHIRLPOOL 5f9b503899d2d7a8c0367d516b709e45e8d034a70c06a16bbfd680c7c2b070fcc3f686c37473c73ab96c4b99b669e767817190d4882fce2085b47a7bf57de51c
23 +DIST v3.1.2.tar.gz 3075459 SHA256 aa49b0a013014e79d521fc3e3950b2d7a1da44724fe1958bdaf620846cee4d2b SHA512 b903e8391e661685b840ecf85e5a159a274d6106b0151987d853e896fda44080546ccbafafdba253e05f0ce3c7810c90b802e7b9b9e546401deb1ef4641b283d WHIRLPOOL 2b27bd242799500840b9693330fb3d196fd7887877b404fcd3d57bec6b04297fbd03b4688c91bc852e8b173c9d42518dc4688a65631fb2f90a38034fbe87ce8e
24
25 diff --git a/sci-mathematics/normaliz/normaliz-3.1.2.ebuild b/sci-mathematics/normaliz/normaliz-3.1.2.ebuild
26 new file mode 100644
27 index 00000000..aa74f1f
28 --- /dev/null
29 +++ b/sci-mathematics/normaliz/normaliz-3.1.2.ebuild
30 @@ -0,0 +1,65 @@
31 +# Copyright 1999-2016 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=6
36 +
37 +inherit toolchain-funcs versionator
38 +
39 +MYP="Normaliz-${PV}"
40 +
41 +DESCRIPTION="Tool for computations in affine monoids and more"
42 +HOMEPAGE="www.mathematik.uni-osnabrueck.de/normaliz/"
43 +SRC_URI="https://github.com/Normaliz/Normaliz/archive/v${PV}.tar.gz"
44 +
45 +LICENSE="GPL-3"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~x86"
48 +IUSE="doc extras openmp"
49 +
50 +RDEPEND="
51 + dev-libs/gmp[cxx]
52 +"
53 +DEPEND="${RDEPEND}
54 + doc? ( app-text/texlive )
55 + dev-libs/boost"
56 +# Only a boost header is needed -> not RDEPEND
57 +
58 +S=${WORKDIR}/${MYP}
59 +
60 +src_prepare () {
61 + ./bootstrap.sh || die
62 + default
63 +}
64 +
65 +src_configure () {
66 + if use openmp && ! tc-has-openmp ; then
67 + die "You requested openmp, but your toolchain does not support it."
68 + fi
69 + econf $(use_enable openmp)
70 +}
71 +
72 +src_install() {
73 + default
74 + if use doc ; then
75 + pushd doc
76 + pdflatex Normaliz || die
77 + pdflatex Normaliz || die
78 + dodoc "Normaliz.pdf"
79 + pdflatex NmzIntegrate || die
80 + pdflatex NmzIntegrate || die
81 + dodoc "NmzIntegrate.pdf"
82 + popd
83 + fi
84 + if use extras; then
85 + elog "You have selected to install extras which consist of Macaulay2"
86 + elog "and Singular packages. These have been installed into "
87 + elog "/usr/share/${PN}, and cannot be used without additional setup. Please refer"
88 + elog "to the homepages of the respective projects for additional information."
89 + elog "Note however, Gentoo's versions of Singular and Macaulay2 bring their own"
90 + elog "copies of these interface packages. Usually you don't need normaliz's versions."
91 + insinto "/usr/share/${PN}"
92 + doins Singular/normaliz.lib
93 + doins Macaulay2/Normaliz.m2
94 + fi
95 +}