diff options
author | Thomas Kahle <tomka@gentoo.org> | 2016-09-25 14:01:21 +0200 |
---|---|---|
committer | Thomas Kahle <tomka@gentoo.org> | 2016-09-25 14:01:36 +0200 |
commit | 5b5bc3147b2ee4bfe4cde51d8b0e7e3bd5301720 (patch) | |
tree | 9ac0a9ba65500f022df19058ae7dbbb0bfee4ecc /sci-mathematics/normaliz/normaliz-3.1.2.ebuild | |
parent | sci-biology/vcftools: Add missing RDEPEND on sys-libs/zlib (diff) | |
download | gentoo-5b5bc3147b2ee4bfe4cde51d8b0e7e3bd5301720.tar.gz gentoo-5b5bc3147b2ee4bfe4cde51d8b0e7e3bd5301720.tar.bz2 gentoo-5b5bc3147b2ee4bfe4cde51d8b0e7e3bd5301720.zip |
sci-mathematics/normaliz: bump to 3.1.2 and EAPI=6
Package-Manager: portage-2.3.0
Diffstat (limited to 'sci-mathematics/normaliz/normaliz-3.1.2.ebuild')
-rw-r--r-- | sci-mathematics/normaliz/normaliz-3.1.2.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/sci-mathematics/normaliz/normaliz-3.1.2.ebuild b/sci-mathematics/normaliz/normaliz-3.1.2.ebuild new file mode 100644 index 000000000000..aa74f1f927d5 --- /dev/null +++ b/sci-mathematics/normaliz/normaliz-3.1.2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit toolchain-funcs versionator + +MYP="Normaliz-${PV}" + +DESCRIPTION="Tool for computations in affine monoids and more" +HOMEPAGE="www.mathematik.uni-osnabrueck.de/normaliz/" +SRC_URI="https://github.com/Normaliz/Normaliz/archive/v${PV}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="doc extras openmp" + +RDEPEND=" + dev-libs/gmp[cxx] +" +DEPEND="${RDEPEND} + doc? ( app-text/texlive ) + dev-libs/boost" +# Only a boost header is needed -> not RDEPEND + +S=${WORKDIR}/${MYP} + +src_prepare () { + ./bootstrap.sh || die + default +} + +src_configure () { + if use openmp && ! tc-has-openmp ; then + die "You requested openmp, but your toolchain does not support it." + fi + econf $(use_enable openmp) +} + +src_install() { + default + if use doc ; then + pushd doc + pdflatex Normaliz || die + pdflatex Normaliz || die + dodoc "Normaliz.pdf" + pdflatex NmzIntegrate || die + pdflatex NmzIntegrate || die + dodoc "NmzIntegrate.pdf" + popd + fi + if use extras; then + elog "You have selected to install extras which consist of Macaulay2" + elog "and Singular packages. These have been installed into " + elog "/usr/share/${PN}, and cannot be used without additional setup. Please refer" + elog "to the homepages of the respective projects for additional information." + elog "Note however, Gentoo's versions of Singular and Macaulay2 bring their own" + elog "copies of these interface packages. Usually you don't need normaliz's versions." + insinto "/usr/share/${PN}" + doins Singular/normaliz.lib + doins Macaulay2/Normaliz.m2 + fi +} |