/[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.3 - (show annotations) (download)
Sat Oct 18 16:49:33 2003 UTC (16 years, 4 months ago) by zul
Branch: MAIN
Changes since 1.2: +2 -2 lines
Added ~sparc to keywords.

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

  ViewVC Help
Powered by ViewVC 1.1.20