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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Mar 9 08:32:44 2005 UTC (10 years, 1 month 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.02.22.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 # I have only tested this library on x86
11 KEYWORDS="x86"
12 SLOT="0"
13 IUSE="ginac qhull"
14
15 DEPEND=">=sci-mathematics/octave-2.1.44
16 >=sys-apps/sed-4
17 sys-libs/libtermcap-compat
18 ginac? ( sci-mathematics/ginac )
19 virtual/tetex
20 qhull? ( >=media-libs/qhull-3.1-r1 )"
21
22
23 src_compile() {
24 econf || die "econf failed"
25
26 # The MPATH, OPATH, and XPATH variables need to be changed, or they will
27 # cause Portage access violations. They cannot be easily set just using
28 # arguments passed to ./configure (at least, they can not easily be set
29 # correctly)
30 echo -en "Modifying paths..."
31 sed -i "s|^\(MPATH = \)|\1${D}|" Makeconf || die "failed to modify MPATH"
32 sed -i "s|^\(OPATH = \)|\1${D}|" Makeconf || die "failed to modify OPATH"
33 sed -i "s|^\(XPATH = \)|\1${D}|" Makeconf || die "failed to modify XPATH"
34 echo -e "done.\n"
35
36 emake || die "emake failed"
37 }
38
39 src_install() {
40 einstall || die "einstall failed"
41
42 # strip the fudged install paths
43 sed -i "s|${D}||g" ${D}/usr/bin/mex || die "sed failed"
44
45 dodoc AUTHORS COPYING* ChangeLog INDEX RELEASE-NOTES TODO
46 }
47
48 pkg_postinst() {
49 einfo "If you do not have GiNaC and Qhull installed, octave-forge did not"
50 einfo "compile itself with support for the geometry and symbolic math"
51 einfo "extensions. If you would like these features, please emerge ginac"
52 einfo "and/or qhull and then re-emerge octave-forge. Alternately, you can"
53 einfo "specify USE='ginac qhull' and re-emerge octave-forge; in that case"
54 einfo "the ebuild will automatically install the additional packages."
55 }

  ViewVC Help
Powered by ViewVC 1.1.20