You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.6 KiB
65 lines
1.6 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
8 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=6
|
||
|
|
||
|
inherit toolchain-funcs versionator
|
||
|
|
||
|
MYP="Normaliz-${PV}"
|
||
|
|
||
|
DESCRIPTION="Tool for computations in affine monoids and more"
|
||
8 years ago
|
HOMEPAGE="http://www.mathematik.uni-osnabrueck.de/normaliz/"
|
||
8 years ago
|
SRC_URI="https://github.com/Normaliz/Normaliz/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||
8 years ago
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
8 years ago
|
KEYWORDS="amd64 ~arm x86"
|
||
8 years ago
|
IUSE="doc extras openmp"
|
||
|
|
||
|
RDEPEND="
|
||
3 years ago
|
dev-libs/gmp[cxx(+)]
|
||
8 years ago
|
"
|
||
|
DEPEND="${RDEPEND}
|
||
|
doc? ( app-text/texlive )
|
||
|
dev-libs/boost"
|
||
|
# Only a boost header is needed -> not RDEPEND
|
||
|
|
||
|
S=${WORKDIR}/${MYP}
|
||
|
|
||
5 years ago
|
src_prepare() {
|
||
8 years ago
|
./bootstrap.sh || die
|
||
|
default
|
||
|
}
|
||
|
|
||
5 years ago
|
src_configure() {
|
||
8 years ago
|
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
|
||
|
}
|