diff options
author | Thomas Kahle <tomka@gentoo.org> | 2011-07-08 11:22:05 +0000 |
---|---|---|
committer | Thomas Kahle <tomka@gentoo.org> | 2011-07-08 11:22:05 +0000 |
commit | 7337e9ccf9ab4e509eccfa58b93b9c52530c1bcc (patch) | |
tree | 3faffa695a386643ba5f4e3c2b346802d3771eab /sci-mathematics/normaliz/normaliz-2.7.ebuild | |
parent | Fix docs installation (bug #374369 by Chris Mayo) and version bump. (diff) | |
download | historical-7337e9ccf9ab4e509eccfa58b93b9c52530c1bcc.tar.gz historical-7337e9ccf9ab4e509eccfa58b93b9c52530c1bcc.tar.bz2 historical-7337e9ccf9ab4e509eccfa58b93b9c52530c1bcc.zip |
Bump to 2.7
Package-Manager: portage-2.1.10.3/cvs/Linux i686
Diffstat (limited to 'sci-mathematics/normaliz/normaliz-2.7.ebuild')
-rw-r--r-- | sci-mathematics/normaliz/normaliz-2.7.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/sci-mathematics/normaliz/normaliz-2.7.ebuild b/sci-mathematics/normaliz/normaliz-2.7.ebuild new file mode 100644 index 000000000000..13c5d5d19b0d --- /dev/null +++ b/sci-mathematics/normaliz/normaliz-2.7.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/normaliz/normaliz-2.7.ebuild,v 1.1 2011/07/08 11:22:05 tomka Exp $ + +EAPI=2 + +inherit eutils toolchain-funcs + +MYP="Normaliz${PV}" + +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}/${MYP}/${MYP}.zip" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="extras openmp" + +RDEPEND="dev-libs/gmp[-nocxx]" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR}/${MYP} + +src_prepare () { + epatch "${FILESDIR}/${P}-respect-flags.patch" + + 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 || die +} + +src_install() { + dobin source/normaliz || die + dodoc doc/"${MYP}Documentation.pdf" || die + 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 +} |