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.
64 lines
1.8 KiB
64 lines
1.8 KiB
10 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
10 years ago
|
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/normaliz/normaliz-2.12.2.ebuild,v 1.1 2015/01/29 10:02:44 tomka Exp $
|
||
10 years ago
|
|
||
|
EAPI=5
|
||
|
|
||
|
inherit eutils toolchain-funcs versionator
|
||
|
|
||
|
MYPV=$(get_version_component_range 1-2)
|
||
|
MYP="Normaliz${MYPV}"
|
||
|
|
||
|
DESCRIPTION="Tool for computations in affine monoids and more"
|
||
|
HOMEPAGE="http://www.mathematik.uni-osnabrueck.de/normaliz/"
|
||
|
SRC_URI="http://www.mathematik.uni-osnabrueck.de/${PN}/Normaliz${PV}/Normaliz${PV}.zip"
|
||
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE="doc extras openmp"
|
||
|
|
||
|
RDEPEND="dev-libs/gmp[cxx]"
|
||
|
DEPEND="${RDEPEND}
|
||
|
app-arch/unzip
|
||
|
dev-libs/boost"
|
||
|
# Only a boost header is needed -> not RDEPEND
|
||
|
|
||
|
S=${WORKDIR}/${MYP}
|
||
|
|
||
|
src_prepare () {
|
||
10 years ago
|
epatch "${FILESDIR}/${PN}-2.12.1-respect-flags.patch"
|
||
10 years ago
|
|
||
|
# Respect users AR tool (Bug 474532)
|
||
|
sed -e "s:ar -cr:$(tc-getAR) -cr:" -i source/libnormaliz/Makefile || die
|
||
|
|
||
|
if use openmp && tc-has-openmp; then
|
||
|
export OPENMP=yes
|
||
|
else
|
||
|
export OPENMP=no
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
src_compile(){
|
||
|
emake CXX="$(tc-getCXX)" OPENMP="${OPENMP}" -C source
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dobin source/normaliz
|
||
|
if use doc ; then
|
||
|
dodoc doc/"Normaliz.pdf"
|
||
|
dodoc doc/"NmzIntegrate.pdf"
|
||
|
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
|
||
|
}
|