diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-06-20 14:45:01 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-06-20 14:45:01 +0100 |
commit | 34dea8e38f88007799629d0a56b12dec480b1d21 (patch) | |
tree | 6790873994b58030360328cf5897d934b3b03d16 /sci-mathematics/normaliz/normaliz-3.8.10-r1.ebuild | |
parent | 7932d472a02d4c016ff7dff4b7a5479ab9d1883d (diff) |
gentoo resync : 20.06.2021
Diffstat (limited to 'sci-mathematics/normaliz/normaliz-3.8.10-r1.ebuild')
-rw-r--r-- | sci-mathematics/normaliz/normaliz-3.8.10-r1.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/sci-mathematics/normaliz/normaliz-3.8.10-r1.ebuild b/sci-mathematics/normaliz/normaliz-3.8.10-r1.ebuild new file mode 100644 index 000000000000..436607a9bad0 --- /dev/null +++ b/sci-mathematics/normaliz/normaliz-3.8.10-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools toolchain-funcs + +DESCRIPTION="Tool for computations in affine monoids and more" +HOMEPAGE="http://www.mathematik.uni-osnabrueck.de/normaliz/" +SRC_URI="https://github.com/Normaliz/Normaliz/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/Normaliz-${PV}" + +LICENSE="GPL-3" +SLOT="0/3" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" +IUSE="doc extras openmp" + +# would be nice to package scip and cocoalib +RDEPEND=" + dev-libs/gmp:=[cxx(+)] +" +DEPEND=" + ${RDEPEND} + dev-libs/boost +" +# Only a boost header is needed -> not RDEPEND + +pkg_setup() { + use openmp && tc-check-openmp +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + $(use_enable openmp) \ + --disable-static +} + +src_test() { + emake check +} + +src_install() { + default + find "${ED}" -name "*.la" -delete || die + + use doc && dodoc doc/Normaliz.pdf + if use extras; then + newdoc Singular/normaliz.pdf singular-normaliz.pdf + insinto /usr/share/${PN} + doins Singular/normaliz.lib + doins Macaulay2/Normaliz.m2 + fi +} |