Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/normaliz/
Date: Mon, 31 Jul 2017 18:12:54
Message-Id: 1501524739.f57b76a93f53ddb26af0bd5fe3a3bfbe7724ab2f.bicatali@gentoo
commit:     f57b76a93f53ddb26af0bd5fe3a3bfbe7724ab2f
Author:     S├ębastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 29 22:33:10 2017 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Mon Jul 31 18:12:19 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f57b76a9

sci-mathematics/normaliz: version bump

Package-Manager: Portage-2.3.6, Repoman-2.3.3

 sci-mathematics/normaliz/Manifest              |  1 +
 sci-mathematics/normaliz/metadata.xml          |  8 ++--
 sci-mathematics/normaliz/normaliz-3.3.0.ebuild | 60 ++++++++++++++++++++++++++
 3 files changed, 65 insertions(+), 4 deletions(-)

diff --git a/sci-mathematics/normaliz/Manifest b/sci-mathematics/normaliz/Manifest
index 9fe50d4d7fc..31b6ae25ed1 100644
--- a/sci-mathematics/normaliz/Manifest
+++ b/sci-mathematics/normaliz/Manifest
@@ -1,3 +1,4 @@
 DIST Normaliz2.12.2.zip 6432949 SHA256 230772425b3c9964b9e144c0919c75fac0ec95260a1943c10a8a94eea9d7273e SHA512 fd42071cb87b8efbaf9af0885c173a0583e0b38dedb8821a83225eeebb44060a7b5748c44adfc4faeac20c3a1706071bcb9883cb4447e4a1ff3aeb770bd22038 WHIRLPOOL cb2974e02eac6e6d51c234214a719a24ad2e12d1400f0a6f8aee3e7a4ba3aa2ba053beec65c9032f42726e4dd4f1866820bb5b7b96f7c3d34cd132fcdbdb91af
 DIST Normaliz3.1.1.zip 5839858 SHA256 192e60d3671d4516c4904b166dec96c5b32c63c0fbaae15d067e25b8d9b6119e SHA512 efa75844542df45d3cff6b6f877f2d6132905b722468b3df5a89468798bf66cbaf33f359000fb462f4d24fb3414f4c293a8ba84112a6712862dd593bb5f314ba WHIRLPOOL 5f9b503899d2d7a8c0367d516b709e45e8d034a70c06a16bbfd680c7c2b070fcc3f686c37473c73ab96c4b99b669e767817190d4882fce2085b47a7bf57de51c
 DIST normaliz-3.1.3.tar.gz 3075453 SHA256 f18f037395596219ee67cf40945903f990a6091fd3eb5dc67120d582e889ae34 SHA512 c7fb1620e758dc59de88f0d7c55f50db0f67be772a00af27205e478f30c3836b7cf012a16a8adfdee3f0367d3adb4e3f887dc7d03793a7ca1601968ddb1946ce WHIRLPOOL 7cc3534b59cf4d6af5c1760038e29171b16577b7e5ef8f76da4504cb5471e147948b0711e5deea059f8c610de87d638208e2c2718cc07fb684440677d9f1bea3
+DIST normaliz-3.3.0.tar.gz 4243027 SHA256 0a22132c960c05edbc3c39391d395308f6ba3d9cb076ca075db7bbb639d85bbb SHA512 3e09be1a265746c2cedf24c6a38de2f3801a906a66a0fa73a98b05916a5e6f412d84f5e38276781b5d99ff779a2db3fc420acdadd036e9822cae41b2ed539be5 WHIRLPOOL a08f0ec39d2b1e350eabf45d2aa7c033ed597830bc0cfd9fbcd0bb09af069bbe551d2a967b0d5de5bbffde71aa7945e021fd40d3791dc24d66582d7b27d6d658

diff --git a/sci-mathematics/normaliz/metadata.xml b/sci-mathematics/normaliz/metadata.xml
index 6edd7c37997..611dafb67f5 100644
--- a/sci-mathematics/normaliz/metadata.xml
+++ b/sci-mathematics/normaliz/metadata.xml
@@ -6,12 +6,12 @@
     <name>Gentoo Mathematics Project</name>
   </maintainer>
   <use>
-    <flag name="extras"> Install <pkg>sci-mathematics/Macaulay2</pkg> and <pkg>sci-mathematics/singular</pkg> 
-	packages as shipped by upstream</flag>
+    <flag name="extras"> Install <pkg>sci-mathematics/Macaulay2</pkg> and <pkg>sci-mathematics/singular</pkg>packages as shipped by upstream</flag>
   </use>
   <longdescription lang="en">
-Normaliz is a (command line) tool for computations in affine monoids, vector configurations, lattice polytopes, and
-rational cones.
+    Normaliz is a (command line) tool for computations in affine
+    monoids, vector configurations, lattice polytopes, and rational
+    cones.
   </longdescription>
   <upstream>
     <remote-id type="github">Normaliz/Normaliz</remote-id>

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 00000000000..f379562bd32
--- /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
+}