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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Jun 26 02:13:44 2005 UTC (9 years, 6 months ago) by ribosome
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Stable x86 and amd64. Removed obsolete versions.
(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-2004.02.12.ebuild,v 1.5 2005/03/10 20:14:57 phosphan 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 <sci-mathematics/octave-2.1.64
18 >=sys-apps/sed-4
19 sys-libs/libtermcap-compat
20 !amd64? ( ginac? ( sci-mathematics/ginac ) )
21 qhull? ( >=media-libs/qhull-3.1-r1 )"
22
23 src_unpack() {
24 unpack ${A}
25 cd ${S}
26 sed -e 's:a"key":a["key"]:' -i configure || die "sed failed on configure"
27 sed -e 's:\(^man1dir = \):\1$(DESTDIR)/:; s:$(bindir):$(DESTDIR)/$(bindir):' -i extra/mex/Makefile \
28 || die "sed failed on mex/Makefile"
29 epatch ${FILESDIR}/octave-2.1.57+.patch
30 epatch ${FILESDIR}/${P}-fPIC.patch
31 }
32
33 src_compile() {
34 econf || die "econf failed"
35
36 # this must be done before the *PATH variables are changed
37 cd extra/graceplot && make grace_octave_path.m
38 cd ${S}
39
40 # The *PATH variables need to be changed, or they will
41 # cause Portage access violations. They cannot be easily set just using
42 # arguments passed to ./configure (at least, they can not easily be set
43 # correctly)
44 echo -en "Modifying paths..."
45 for path in M O X ALTM ALTO; do
46 sed -i "s|^\(${path}PATH = \)|\1${D}|" Makeconf || \
47 die "failed to modify ${path}PATH"
48 done
49 echo -e "done.\n"
50
51 emake || die "emake failed"
52 }
53
54 src_install() {
55 make DESTDIR="${D}" install || die "install failed"
56
57 # strip the fudged install paths
58 sed -i "s|${D}||g" ${D}/usr/bin/mex || die "sed failed"
59
60 dodoc AUTHORS COPYING* ChangeLog INDEX RELEASE-NOTES TODO
61 }
62
63 pkg_postinst() {
64 einfo "If you do not have GiNaC and Qhull installed, octave-forge did not"
65 einfo "compile itself with support for the geometry and symbolic math"
66 einfo "extensions. If you would like these features, please emerge ginac"
67 einfo "and/or qhull and then re-emerge octave-forge. Alternately, you can"
68 einfo "specify USE='ginac qhull' and re-emerge octave-forge; in that case"
69 einfo "the ebuild will automatically install the additional packages."
70 }

  ViewVC Help
Powered by ViewVC 1.1.20