/[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.6 - (hide annotations) (download)
Thu Jun 24 22:13:13 2004 UTC (15 years, 8 months ago) by agriffis
Branch: MAIN
Changes since 1.5: +2 -2 lines
update copyright line: Gentoo Technologies => Gentoo Foundation

1 agriffis 1.6 # Copyright 1999-2004 Gentoo Foundation
2 george 1.1 # Distributed under the terms of the GNU General Public License v2
3 agriffis 1.6 # $Header: /var/cvsroot/gentoo-x86/app-sci/octave-forge/octave-forge-2003.06.02.ebuild,v 1.5 2004/03/10 13:00:08 phosphan Exp $
4 george 1.1
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 phosphan 1.5 KEYWORDS="x86 ~ppc ~sparc"
11 george 1.1 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 phosphan 1.4 virtual/tetex
18 george 1.1 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