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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jun 26 02:13:44 2005 UTC (9 years, 2 months ago) by ribosome
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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.11.16.ebuild,v 1.2 2005/02/13 03:42:53 robbat2 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.62
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 epatch ${FILESDIR}/${PV}.patch
26
27 # make it compile when X isn't installed. The source file there really
28 # doesn't need X at all.
29 # 02 Feb 2005, Robin H. Johnson <robbat2@gentoo.org>
30 sed -e '/#include <X11/d' -i ${S}/main/audio/aurecord.cc
31 }
32
33 src_compile() {
34 econf || die "econf failed"
35
36 # The *XPATH variables need to be changed, or they will
37 # cause Portage access violations. They cannot be easily set just using
38 # arguments passed to ./configure (at least, they can not easily be set
39 # correctly)
40 echo -en "Modifying paths..."
41 for path in M O X ALTM ALTO; do
42 sed -i "s|^\(${path}PATH = \)|\1${D}|" Makeconf || \
43 die "failed to modify ${path}PATH"
44 done
45 echo -e "done.\n"
46
47 emake || die "emake failed"
48 }
49
50 src_install() {
51 make DESTDIR="${D}" install || die "install failed"
52
53 # strip the fudged install paths
54 sed -i "s|${D}||g" ${D}/usr/bin/mex || die "sed failed"
55
56 dodoc AUTHORS COPYING* ChangeLog INDEX RELEASE-NOTES TODO
57 }
58
59 pkg_postinst() {
60 einfo "If you do not have GiNaC and Qhull installed, octave-forge did not"
61 einfo "compile itself with support for the geometry and symbolic math"
62 einfo "extensions. If you would like these features, please emerge ginac"
63 einfo "and/or qhull and then re-emerge octave-forge. Alternately, you can"
64 einfo "specify USE='ginac qhull' and re-emerge octave-forge; in that case"
65 einfo "the ebuild will automatically install the additional packages."
66 }

  ViewVC Help
Powered by ViewVC 1.1.20