/[gentoo-x86]/app-sci/octave-forge/octave-forge-2003.06.02.ebuild
Gentoo

Contents of /app-sci/octave-forge/octave-forge-2003.06.02.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Aug 24 08:13:54 2003 UTC (16 years, 6 months ago) by george
Branch: MAIN
new version

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 DESCRIPTION="A collection of custom scripts, functions and extensions for GNU Octave"
6 HOMEPAGE="http://octave.sourceforge.net/"
7 SRC_URI="mirror://sourceforge/octave/${P}.tar.gz"
8
9 LICENSE="as-is"
10 # I have only tested this library on x86
11 KEYWORDS="~x86"
12 SLOT="0"
13 IUSE="ginac qhull"
14
15 DEPEND=">=app-sci/octave-2.1.40
16 >=sys-apps/sed-4
17 sys-libs/libtermcap-compat
18 ginac? ( app-sci/ginac )
19 qhull? ( >=media-libs/qhull-3.1-r1 )"
20
21
22 src_compile() {
23 econf || die "econf failed"
24
25 # The MPATH, OPATH, and XPATH variables need to be changed, or they will
26 # cause Portage access violations. They cannot be easily set just using
27 # arguments passed to ./configure (at least, they can not easily be set
28 # correctly)
29 echo -en "Modifying paths..."
30 sed -i "s|^\(MPATH = \)|\1${D}|" Makeconf || die "failed to modify MPATH"
31 sed -i "s|^\(OPATH = \)|\1${D}|" Makeconf || die "failed to modify OPATH"
32 sed -i "s|^\(XPATH = \)|\1${D}|" Makeconf || die "failed to modify XPATH"
33 echo -e "done.\n"
34
35 emake || die "emake failed"
36 }
37
38 src_install() {
39 einstall || die "einstall failed"
40
41 # strip the fudged install paths
42 sed -i "s|${D}||g" ${D}/usr/bin/mex || die "sed failed"
43
44 dodoc AUTHORS COPYING* ChangeLog INDEX RELEASE-NOTES TODO
45 }
46
47 pkg_postinst() {
48 einfo "If you do not have GiNaC and Qhull installed, octave-forge did not"
49 einfo "compile itself with support for the geometry and symbolic math"
50 einfo "extensions. If you would like these features, please emerge ginac"
51 einfo "and/or qhull and then re-emerge octave-forge. Alternately, you can"
52 einfo "specify USE='ginac qhull' and re-emerge octave-forge; in that case"
53 einfo "the ebuild will automatically install the additional packages."
54 }
55

  ViewVC Help
Powered by ViewVC 1.1.20