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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Wed May 5 18:21:59 2010 UTC (4 years, 11 months ago) by halcy0n
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Depended on version of sci-mathematics/octave that was removed from the tree
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2008 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-2006.01.28.ebuild,v 1.8 2008/03/20 17:32:36 markusle 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="~amd64 ~ppc ~sparc x86"
13 SLOT="0"
14 IUSE="ginac qhull X"
15
16 DEPEND="~sci-mathematics/octave-2.1.72
17 sci-libs/netcdf
18 media-libs/jpeg
19 media-libs/libpng
20 sci-libs/gsl
21 dev-libs/libpcre
22 sys-libs/readline
23 sys-apps/texinfo
24 sys-libs/ncurses
25 virtual/lapack
26 virtual/blas
27 X? ( x11-libs/libX11 )
28 !amd64? ( ginac? ( sci-mathematics/ginac ) )
29 qhull? ( >=media-libs/qhull-3.1-r1 )"
30
31 src_compile() {
32 econf $(use_with X) || die "econf failed"
33
34 # patch Makefiles to avoid sandbox violations
35 sed -e "s|\$(MPATH)|${D}/\$(MPATH)|" \
36 -i "${S}"/main/comm/Makefile \
37 -i "${S}"/main/comm/doc/Makefile \
38 -i "${S}"/main/fixed/Makefile \
39 -i "${S}"/main/fixed/doc/Makefile \
40 || die "failed to patch Makefiles"
41
42 emake || die "emake failed"
43 }
44
45 src_install() {
46 make DESTDIR="${D}" install || die "install failed"
47
48 dodoc AUTHORS COPYING* ChangeLog RELEASE-NOTES TODO
49 }
50
51 pkg_postinst() {
52 einfo "If you do not have GiNaC and Qhull installed, octave-forge did not"
53 einfo "compile itself with support for the geometry and symbolic math"
54 einfo "extensions. If you would like these features, please emerge ginac"
55 einfo "and/or qhull and then re-emerge octave-forge. Alternately, you can"
56 einfo "specify USE='ginac qhull' and re-emerge octave-forge; in that case"
57 einfo "the ebuild will automatically install the additional packages."
58 }

  ViewVC Help
Powered by ViewVC 1.1.20