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

Contents of /sci-mathematics/octave/octave-3.4.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Jun 9 21:58:24 2011 UTC (3 years, 6 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Added some patches for compiling on gcc-4.6, fixing fltk, and building packages directory from fedora. Added a parallel compilation patch.

(Portage version: 2.1.10/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-3.4.0.ebuild,v 1.3 2011/03/20 20:01:35 jlec Exp $
4
5 EAPI="2"
6 inherit multilib
7
8 DESCRIPTION="High-level interactive language for numerical computations"
9 LICENSE="GPL-3"
10 HOMEPAGE="http://www.octave.org/"
11 SRC_URI="ftp://ftp.gnu.org/pub/gnu/${PN}/${P}.tar.bz2"
12
13 SLOT="0"
14 IUSE="curl doc fftw readline sparse test zlib"
15 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
16
17 RDEPEND="dev-libs/libpcre
18 media-gfx/graphicsmagick[cxx]
19 media-libs/ftgl
20 media-libs/qhull
21 sci-libs/qrupdate
22 sci-mathematics/glpk
23 sci-visualization/gnuplot
24 sys-libs/ncurses
25 virtual/lapack
26 virtual/opengl
27 x11-libs/libX11
28 >=x11-libs/fltk-1.3:1[opengl]
29 curl? ( net-misc/curl )
30 fftw? ( sci-libs/fftw:3.0 )
31 sparse? (
32 sci-libs/camd
33 sci-libs/ccolamd
34 sci-libs/cholmod
35 sci-libs/colamd
36 sci-libs/cxsparse
37 sci-libs/umfpack )
38 zlib? ( sys-libs/zlib )
39 !sci-mathematics/octave-forge"
40
41 DEPEND="${RDEPEND}
42 virtual/latex-base
43 sys-apps/texinfo
44 || ( dev-texlive/texlive-genericrecommended
45 app-text/ptex )
46 dev-util/gperf
47 dev-util/pkgconfig"
48
49 src_configure() {
50 # hdf5 disabled because not really useful (bug #299876)
51 econf \
52 --localstatedir=/var/state/octave \
53 --enable-shared \
54 --without-hdf5 \
55 --with-glpk \
56 --with-opengl \
57 --with-qrupdate \
58 --with-blas="$(pkg-config --libs blas)" \
59 --with-lapack="$(pkg-config --libs lapack)" \
60 $(use_enable readline) \
61 $(use_with curl) \
62 $(use_with fftw fftw3) \
63 $(use_with fftw fftw3f) \
64 $(use_with sparse umfpack) \
65 $(use_with sparse colamd) \
66 $(use_with sparse ccolamd) \
67 $(use_with sparse cholmod) \
68 $(use_with sparse cxsparse) \
69 $(use_with zlib z)
70 }
71
72 src_install() {
73 emake install DESTDIR="${D}" || die "emake install failed"
74
75 if use doc; then
76 einfo "Installing documentation..."
77 insinto /usr/share/doc/${PF}
78 doins $(find doc -name \*.pdf)
79 fi
80
81 use test && dodoc test/fntests.log
82 echo "LDPATH=/usr/$(get_libdir)/octave-${PV}" > 99octave
83 doenvd 99octave || die
84 }

  ViewVC Help
Powered by ViewVC 1.1.20