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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Mar 9 08:32:44 2005 UTC (9 years, 4 months ago) by phosphan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Fixed #84366 for 2004.11.16
(Portage version: 2.0.51.19)

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/octave-forge/octave-forge-2003.06.02.ebuild,v 1.2 2005/01/17 11:36:23 phosphan 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=">=sci-mathematics/octave-2.1.40
15 >=sys-apps/sed-4
16 sys-libs/libtermcap-compat
17 virtual/tetex
18 ginac? ( sci-mathematics/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 }

  ViewVC Help
Powered by ViewVC 1.1.20