/[gentoo-x86]/sci-mathematics/Macaulay2/Macaulay2-0.9.95.ebuild
Gentoo

Contents of /sci-mathematics/Macaulay2/Macaulay2-0.9.95.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jan 6 15:51:17 2008 UTC (6 years, 6 months ago) by markusle
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump and removed old versions.
(Portage version: 2.1.4_rc14)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-0.9.95.ebuild,v 1.2 2007/03/02 23:14:11 markusle Exp $
4
5 inherit eutils flag-o-matic toolchain-funcs autotools
6
7 IUSE=""
8
9 DESCRIPTION="research tool for commutative algebra and algebraic geometry"
10 SRC_URI="http://www.math.uiuc.edu/Macaulay2/Downloads/${P}-src.tar.gz
11 ftp://www.mathematik.uni-kl.de/pub/Math/Singular/Factory/factory-3-0-2.tar.gz \
12 ftp://www.mathematik.uni-kl.de/pub/Math/Singular/Libfac/libfac-3-0-2.tar.gz"
13
14 HOMEPAGE="http://www.math.uiuc.edu/Macaulay2/"
15
16 SLOT="0"
17 LICENSE="GPL-2"
18 KEYWORDS="~x86"
19
20 DEPEND="sys-libs/gdbm
21 dev-libs/gmp
22 dev-libs/ntl
23 dev-libs/boehm-gc
24 virtual/blas
25 virtual/lapack
26 dev-util/ctags
27 sys-libs/ncurses"
28
29 src_unpack() {
30 unpack ${A}
31 cd "${S}"
32 epatch "${FILESDIR}"/${P}-etags-gentoo.patch
33 epatch "${FILESDIR}"/${P}-cpp-fix.patch
34 epatch "${FILESDIR}"/${P}-test-fix.patch
35 }
36
37 src_compile() {
38 cd ${WORKDIR}/factory
39 econf --enable-NTL --prefix=${WORKDIR} || \
40 die "failed to configure factory"
41 emake || die "failed to build factory"
42 make install || die "failed to install factory"
43
44 cd ${WORKDIR}/libfac
45 CPPFLAGS="-I${WORKDIR}/include" ./configure --with-NOSTREAMIO \
46 --prefix=${WORKDIR} || die "failed to configure libfac"
47 make DEFS=-DHAVE_SINGULAR_ERROR || die "failed to build libfac"
48 make install || die "failed to install libfac"
49
50 CXXFLAGS="${CXXFLAGS} -Wno-deprecated"
51 cd "${S}"
52 sed -e "/^docm2RelDir/s:Macaulay2:${P}:" \
53 -i include/config.Makefile.in || \
54 die "failed to fix makefile"
55 make && CPPFLAGS="-I/usr/include/gc -I${WORKDIR}/include" \
56 LDFLAGS="-L${WORKDIR}/lib" \
57 ./configure --prefix="${D}/usr" --disable-encap \
58 --with-lapacklibs="-llapack -lblas" || \
59 die "failed to configure Macaulay"
60 # fix install paths
61 make || die "failed to build Macaulay"
62 }
63
64 src_test() {
65 cd "${S}"
66 make check || die "tests failed"
67 }
68
69 src_install () {
70 cd "${S}"
71 make install || die "install failed"
72
73 # nothing in here, get rid of it
74 rm -fr "${D}"/usr/lib || die "failed to remove empty /usr/lib"
75 }

  ViewVC Help
Powered by ViewVC 1.1.20