summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Fabbro <bicatali@gentoo.org>2017-07-29 22:33:10 +0000
committerSébastien Fabbro <bicatali@gentoo.org>2017-07-31 18:12:19 +0000
commitf57b76a93f53ddb26af0bd5fe3a3bfbe7724ab2f (patch)
tree76116195908597cdd049277fdcc8f41d3f928f23 /sci-mathematics/normaliz/normaliz-3.3.0.ebuild
parentdev-python/dask: version bump, added distributed flag (diff)
downloadgentoo-f57b76a93f53ddb26af0bd5fe3a3bfbe7724ab2f.tar.gz
gentoo-f57b76a93f53ddb26af0bd5fe3a3bfbe7724ab2f.tar.bz2
gentoo-f57b76a93f53ddb26af0bd5fe3a3bfbe7724ab2f.zip
sci-mathematics/normaliz: version bump
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'sci-mathematics/normaliz/normaliz-3.3.0.ebuild')
-rw-r--r--sci-mathematics/normaliz/normaliz-3.3.0.ebuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/sci-mathematics/normaliz/normaliz-3.3.0.ebuild b/sci-mathematics/normaliz/normaliz-3.3.0.ebuild
new file mode 100644
index 000000000000..f379562bd326
--- /dev/null
+++ b/sci-mathematics/normaliz/normaliz-3.3.0.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools toolchain-funcs eutils
+
+MYP="Normaliz-${PV}"
+
+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"
+
+LICENSE="GPL-3"
+SLOT="0/3"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc extras openmp static-libs"
+
+# 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
+
+S="${WORKDIR}/${MYP}"
+
+pkg_setup() {
+ use openmp && tc-check-openmp
+}
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure () {
+ econf \
+ $(use_enable openmp) \
+ $(use_enable static-libs static)
+}
+
+src_test() {
+ emake check
+}
+
+src_install() {
+ default
+ use static-libs || prune_libtool_files --all
+ 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
+}