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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Tue Dec 28 14:53:34 2004 UTC (15 years ago) by ribosome
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Moving to sci-mathematics/octave-forge

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-sci/octave-forge/octave-forge-2004.02.12.ebuild,v 1.8 2004/12/28 14:50:12 ribosome Exp $
4
5 inherit eutils
6
7 DESCRIPTION="A collection of custom scripts, functions and extensions for GNU Octave"
8 HOMEPAGE="http://octave.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/octave/${P}.tar.gz"
10
11 LICENSE="as-is"
12 KEYWORDS="x86 ~ppc ~sparc amd64"
13 SLOT="0"
14 IUSE="ginac qhull"
15
16 DEPEND=">=sci-mathematics/octave-2.1.40
17 >=sys-apps/sed-4
18 sys-libs/libtermcap-compat
19 !amd64? ( ginac? ( sci-mathematics/ginac ) )
20 qhull? ( >=media-libs/qhull-3.1-r1 )"
21
22 src_unpack() {
23 unpack ${A}
24 cd ${S}
25 sed -e 's:a"key":a["key"]:' -i configure || die "sed failed on configure"
26 sed -e 's:\(^man1dir = \):\1$(DESTDIR)/:; s:$(bindir):$(DESTDIR)/$(bindir):' -i extra/mex/Makefile \
27 || die "sed failed on mex/Makefile"
28 epatch ${FILESDIR}/octave-2.1.57+.patch
29 epatch ${FILESDIR}/${P}-fPIC.patch
30 }
31
32 src_compile() {
33 econf || die "econf failed"
34
35 # The *XPATH variables need to be changed, or they will
36 # cause Portage access violations. They cannot be easily set just using
37 # arguments passed to ./configure (at least, they can not easily be set
38 # correctly)
39 echo -en "Modifying paths..."
40 for path in M O X ALTM ALTO; do
41 sed -i "s|^\(${path}PATH = \)|\1${D}|" Makeconf || \
42 die "failed to modify ${path}PATH"
43 done
44 echo -e "done.\n"
45
46 emake || die "emake failed"
47 }
48
49 src_install() {
50 make DESTDIR="${D}" install || die "install failed"
51
52 # strip the fudged install paths
53 sed -i "s|${D}||g" ${D}/usr/bin/mex || die "sed failed"
54
55 dodoc AUTHORS COPYING* ChangeLog INDEX RELEASE-NOTES TODO
56 }
57
58 pkg_postinst() {
59 einfo "If you do not have GiNaC and Qhull installed, octave-forge did not"
60 einfo "compile itself with support for the geometry and symbolic math"
61 einfo "extensions. If you would like these features, please emerge ginac"
62 einfo "and/or qhull and then re-emerge octave-forge. Alternately, you can"
63 einfo "specify USE='ginac qhull' and re-emerge octave-forge; in that case"
64 einfo "the ebuild will automatically install the additional packages."
65 }
66

  ViewVC Help
Powered by ViewVC 1.1.20