Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/normaliz/
Date: Sun, 08 May 2022 16:35:21
Message-Id: 1652027606.a19d0d5d6c440cb475e14288136f7ac71f7616a9.mjo@gentoo
1 commit: a19d0d5d6c440cb475e14288136f7ac71f7616a9
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 8 15:33:03 2022 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Sun May 8 16:33:26 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a19d0d5d
7
8 sci-mathematics/normaliz: new upstream version 3.9.3.
9
10 * EAPI=8
11 * No more autotools.eclass (upstream provides a real release).
12 * Install the quick reference doc.
13 * Support USE=nauty for automorphism group computation.
14 * Pass --without-foo for remaining unsupported options.
15 * Use the default src_test().
16 * Fix QA warning about pre-stripped files.
17
18 Package-Manager: Portage-3.0.30, Repoman-3.0.3
19 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
20
21 sci-mathematics/normaliz/Manifest | 1 +
22 sci-mathematics/normaliz/metadata.xml | 8 +++-
23 sci-mathematics/normaliz/normaliz-3.9.3.ebuild | 63 ++++++++++++++++++++++++++
24 3 files changed, 71 insertions(+), 1 deletion(-)
25
26 diff --git a/sci-mathematics/normaliz/Manifest b/sci-mathematics/normaliz/Manifest
27 index 683077b4d89a..526cf8e4b9a9 100644
28 --- a/sci-mathematics/normaliz/Manifest
29 +++ b/sci-mathematics/normaliz/Manifest
30 @@ -1,2 +1,3 @@
31 DIST normaliz-3.1.3.tar.gz 3075453 BLAKE2B 0860b466dfa5335a58a496c21f7567e7e4682b07c73e36dbbd947eb65500e03758577d32355adb02fa4e271ca2f49bc5cb0449e26f1bdd11eab2dd5dbafd8f17 SHA512 c7fb1620e758dc59de88f0d7c55f50db0f67be772a00af27205e478f30c3836b7cf012a16a8adfdee3f0367d3adb4e3f887dc7d03793a7ca1601968ddb1946ce
32 DIST normaliz-3.8.10.tar.gz 5086191 BLAKE2B b40de665718dc1cee8a7246ccfb9b8496bdfa0754408f0260421352f1b4776133047ed1a5e8e0f044bdc15dde63a9f7d9ea1721773f36ecdccce3a8575493772 SHA512 8755011b1305b571d6bef7b6200e01bb56dbadce3f67de022fae0ef42c69c095b1f7cd2a2a432282098277ee39aa17caeffda15c806b28a6060a737930d5b82c
33 +DIST normaliz-3.9.3.tar.gz 4946498 BLAKE2B 3faff64fda86216ee11b0f55ba1341d70988472f65eedafe5b52bf6b05abd817add2dbab45144de0a43d02c501caf3c4a89d66c2b2d621b81188a2a5100d158f SHA512 5d6866cc35835c196d22d6b4b0d5f0e3e2e00f772553115fbbabd8415b20388cf367cf9a282904a72c03c2ef482b804f7009d67e3334add4fc37f3bab675da6c
34
35 diff --git a/sci-mathematics/normaliz/metadata.xml b/sci-mathematics/normaliz/metadata.xml
36 index e7b4f0b40e9a..802b12e6eb3d 100644
37 --- a/sci-mathematics/normaliz/metadata.xml
38 +++ b/sci-mathematics/normaliz/metadata.xml
39 @@ -6,7 +6,13 @@
40 <name>Gentoo Mathematics Project</name>
41 </maintainer>
42 <use>
43 - <flag name="extras"> Install Macaulay2 and <pkg>sci-mathematics/singular</pkg>packages as shipped by upstream</flag>
44 + <flag name="extras">
45 + Install Macaulay2 and <pkg>sci-mathematics/singular</pkg>packages
46 + as shipped by upstream
47 + </flag>
48 + <flag name="nauty">
49 + Use <pkg>sci-mathematics/nauty</pkg> to compute automorphism groups.
50 + </flag>
51 </use>
52 <longdescription lang="en">
53 Normaliz is a (command line) tool for computations in affine
54
55 diff --git a/sci-mathematics/normaliz/normaliz-3.9.3.ebuild b/sci-mathematics/normaliz/normaliz-3.9.3.ebuild
56 new file mode 100644
57 index 000000000000..7b7436eeb4e9
58 --- /dev/null
59 +++ b/sci-mathematics/normaliz/normaliz-3.9.3.ebuild
60 @@ -0,0 +1,63 @@
61 +# Copyright 1999-2022 Gentoo Authors
62 +# Distributed under the terms of the GNU General Public License v2
63 +
64 +EAPI=8
65 +
66 +inherit toolchain-funcs
67 +
68 +DESCRIPTION="Tool for computations in affine monoids and more"
69 +HOMEPAGE="https://www.normaliz.uni-osnabrueck.de/"
70 +SRC_URI="https://github.com/Normaliz/Normaliz/releases/download/v${PV}/${P}.tar.gz"
71 +
72 +LICENSE="GPL-3"
73 +SLOT="0/3"
74 +KEYWORDS="~amd64 ~arm ~riscv ~x86 ~amd64-linux ~x86-linux"
75 +IUSE="doc extras nauty openmp"
76 +
77 +RDEPEND="
78 + dev-libs/gmp:=[cxx(+)]
79 + nauty? ( sci-mathematics/nauty )
80 +"
81 +DEPEND="
82 + ${RDEPEND}
83 + dev-libs/boost
84 +"
85 +# Only a boost header is needed -> not RDEPEND
86 +
87 +pkg_setup() {
88 + use openmp && tc-check-openmp
89 +}
90 +
91 +src_configure() {
92 + # flint (and arb, which doesn't make an appearance in ./configure --help)
93 + # is somehow connected to e-antic, which we do not yet package. Likewise
94 + # we have no packages for cocoalib or hashlibrary.
95 + econf \
96 + $(use_enable openmp) \
97 + $(use_with nauty) \
98 + --without-cocoalib \
99 + --without-hashlibrary \
100 + --without-flint \
101 + --without-e-antic \
102 + --disable-static
103 +}
104 +
105 +src_compile() {
106 + # Clobber the default "AM_LDFLAGS = -Wl,-s" to avoid QA warnings
107 + # about pre-stripped binaries.
108 + emake AM_LDFLAGS=""
109 +}
110 +
111 +src_install() {
112 + default
113 +
114 + use doc && dodoc doc/Normaliz.pdf doc/NmzShortRef.pdf
115 + if use extras; then
116 + newdoc Singular/normaliz.pdf singular-normaliz.pdf
117 + insinto /usr/share/${PN}
118 + doins Singular/normaliz.lib
119 + doins Macaulay2/Normaliz.m2
120 + fi
121 +
122 + find "${ED}" -type f -name "*.la" -delete || die
123 +}