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.
59 lines
1.1 KiB
59 lines
1.1 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=7
|
||
7 years ago
|
|
||
3 years ago
|
inherit autotools toolchain-funcs
|
||
7 years ago
|
|
||
|
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"
|
||
3 years ago
|
S="${WORKDIR}/Normaliz-${PV}"
|
||
7 years ago
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0/3"
|
||
|
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||
3 years ago
|
IUSE="doc extras openmp"
|
||
7 years ago
|
|
||
|
# would be nice to package scip and cocoalib
|
||
|
RDEPEND="
|
||
3 years ago
|
dev-libs/gmp:=[cxx(+)]
|
||
7 years ago
|
"
|
||
3 years ago
|
DEPEND="
|
||
|
${RDEPEND}
|
||
7 years ago
|
dev-libs/boost
|
||
|
"
|
||
|
# Only a boost header is needed -> not RDEPEND
|
||
|
|
||
|
pkg_setup() {
|
||
|
use openmp && tc-check-openmp
|
||
|
}
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
5 years ago
|
src_configure() {
|
||
7 years ago
|
econf \
|
||
|
$(use_enable openmp) \
|
||
3 years ago
|
--disable-static
|
||
7 years ago
|
}
|
||
|
|
||
|
src_test() {
|
||
|
emake check
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
3 years ago
|
find "${ED}" -name "*.la" -delete || die
|
||
|
|
||
7 years ago
|
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
|
||
|
}
|