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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (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.3: +1 -1 lines
FILE REMOVED
Version bump and removed old versions.
(Portage version: 2.1.4_rc14)

1 # Copyright 1999-2005 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.2.ebuild,v 1.3 2005/03/23 16:19:35 seemant Exp $
4
5 inherit eutils flag-o-matic toolchain-funcs
6
7 IUSE=""
8
9 DESCRIPTION="research tool for commutative algebra and algebraic geometry"
10 SRC_URI="http://www.math.uiuc.edu/Macaulay2/ftp-site/${P}-src.tar.gz \
11 ftp://www.mathematik.uni-kl.de/pub/Math/Singular/Factory/factory-1.3b.tar.gz \
12 ftp://www.mathematik.uni-kl.de/pub/Math/Singular/Libfac/libfac-0.3.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 RDEPEND="sys-libs/gdbm
21 dev-libs/gmp
22 dev-libs/boehm-gc"
23
24 DEPEND="${RDEPEND}
25 sys-apps/gawk
26 dev-util/yacc"
27
28 src_compile() {
29 if [ "$(gcc-version)" = "3.4" ]; then
30 append-flags "-fno-unit-at-a-time" # gcc 3.4 bug #15114, phosphan
31 fi
32 cd ${WORKDIR}/factory
33 epatch ${FILESDIR}/gentoo-factory-1.3b.diff
34 ./configure --disable-streamio --prefix=${WORKDIR} || die
35 make || die
36 make install || die
37
38 cd ${WORKDIR}/libfac
39 epatch ../Macaulay2-0.9.2/INSTALL.libfac-0.3.2-diffs
40 ./configure --prefix=${WORKDIR} || die
41 make DEFS=-DHAVE_SINGULAR_ERROR || die
42 make prefix=${WORKDIR} install || die
43
44 cd ${WORKDIR}/include
45 epatch ${FILESDIR}/gentoo-libfac-0.3.2.include.diff
46
47 CXXFLAGS="${CXXFLAGS} -Wno-deprecated"
48 filter-flags "-fomit-frame-pointer"
49
50 cd ${WORKDIR}/Macaulay2-0.9.2
51 epatch ${FILESDIR}/gentoo-Macaulay2-0.9.2.diff
52 CPPFLAGS='-I/usr/include/gc -I${WORKDIR}/include' LDFLAGS=-L${WORKDIR}/lib \
53 ./configure --prefix=${D}/usr || die
54 make || die
55 }
56
57 src_install () {
58 cd ${WORKDIR}/Macaulay2-0.9.2
59 einstall || die
60
61 cp ${D}/usr/bin/M2-help tmp
62 if has_version 'kde-base/kdebase' ; then
63 einfo "Using konqueror as default help-browser!"
64 sed "s:netscape:konqueror:g" < tmp > ${D}/usr/bin/M2-help
65 elif has_version 'www-client/mozilla' ; then
66 einfo "Using mozilla as default help-browser!"
67 sed "s:netscape:mozilla:g" < tmp > ${D}/usr/bin/M2-help
68 elif has_version 'www-client/mozilla-firefox' ; then
69 einfo "Using mozilla-firefox as default help-browser!"
70 sed "s:netscape:firefox:g" < tmp > ${D}/usr/bin/M2-help
71 elif has_version 'www-client/epiphany' ; then
72 einfo "Using epiphany as default help-browser!"
73 sed "s:netscape:epiphany:g" < tmp > ${D}/usr/bin/M2-help
74 else
75 mv tmp ${D}/usr/bin/M2-help
76 fi
77 chmod a+x ${D}/usr/bin/M2-help
78
79 einfo "To change the default help browser, please set the environment"
80 einfo "variable WWBROWSER to the browser of your choice"
81
82 rm ${D}/usr/libexec/*data*
83 }

  ViewVC Help
Powered by ViewVC 1.1.20