blob: 3f882ec6aac833bbc4bc6f4be5ab30bb0e1f235a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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.5-r1.ebuild,v 1.7 2011/11/14 11:28:36 flameeyes 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}.zip"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="extras openmp"
RDEPEND="dev-libs/gmp[cxx]"
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/{norm64,normbig} || 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
}
|