/[gentoo-x86]/sci-mathematics/normaliz/normaliz-2.12.2.ebuild
Gentoo

Contents of /sci-mathematics/normaliz/normaliz-2.12.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Mar 25 14:12:05 2015 UTC (4 years, 9 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Stable for x86, wrt bug #542270

(Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/normaliz/normaliz-2.12.2.ebuild,v 1.3 2015/03/09 11:45:56 ago Exp $
4
5 EAPI=5
6
7 inherit eutils toolchain-funcs versionator
8
9 MYPV=$(get_version_component_range 1-2)
10 MYP="Normaliz${MYPV}"
11
12 DESCRIPTION="Tool for computations in affine monoids and more"
13 HOMEPAGE="http://www.mathematik.uni-osnabrueck.de/normaliz/"
14 SRC_URI="http://www.mathematik.uni-osnabrueck.de/${PN}/Normaliz${PV}/Normaliz${PV}.zip"
15
16 LICENSE="GPL-3"
17 SLOT="0"
18 KEYWORDS="amd64 x86"
19 IUSE="doc extras openmp"
20
21 RDEPEND="dev-libs/gmp[cxx]"
22 DEPEND="${RDEPEND}
23 app-arch/unzip
24 dev-libs/boost"
25 # Only a boost header is needed -> not RDEPEND
26
27 S=${WORKDIR}/${MYP}
28
29 src_prepare () {
30 epatch "${FILESDIR}/${PN}-2.12.1-respect-flags.patch"
31 epatch "${FILESDIR}/${PN}-2.12.2-gcc49.patch"
32
33 # Respect users AR tool (Bug 474532)
34 sed -e "s:ar -cr:$(tc-getAR) -cr:" -i source/libnormaliz/Makefile || die
35
36 if use openmp && tc-has-openmp; then
37 export OPENMP=yes
38 else
39 export OPENMP=no
40 fi
41 }
42
43 src_compile(){
44 emake CXX="$(tc-getCXX)" OPENMP="${OPENMP}" -C source
45 }
46
47 src_install() {
48 dobin source/normaliz
49 if use doc ; then
50 dodoc doc/"Normaliz.pdf"
51 dodoc doc/"NmzIntegrate.pdf"
52 fi
53 if use extras; then
54 elog "You have selected to install extras which consist of Macaulay2"
55 elog "and Singular packages. These have been installed into "
56 elog "/usr/share/${PN}, and cannot be used without additional setup. Please refer"
57 elog "to the homepages of the respective projects for additional information."
58 elog "Note however, Gentoo's versions of Singular and Macaulay2 bring their own"
59 elog "copies of these interface packages. Usually you don't need normaliz's versions."
60 insinto "/usr/share/${PN}"
61 doins Singular/normaliz.lib
62 doins Macaulay2/Normaliz.m2
63 fi
64 }

  ViewVC Help
Powered by ViewVC 1.1.20