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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jan 3 02:24:04 2012 UTC (2 years, 8 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Added glpk, qhull, qrupdate use flags to allow minimal no graphics build and take care of some automagic. Removed fltk flag, the native graphics need opengl anyway. Gnuplot is not a dependencency anymore (more a suggested one).

(Portage version: 2.1.10.41/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.3.ebuild,v 1.1 2011/11/25 17:39:01 bicatali Exp $
4
5 EAPI=4
6 inherit eutils base autotools
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 dev-util/gperf
46 dev-util/pkgconfig"
47
48 src_prepare() {
49 epatch "${FILESDIR}"/${PN}-3.4.0-{pkgbuilddir,help}.patch
50 eautoreconf
51 }
52
53 src_configure() {
54 # hdf5 disabled because not really useful (bug #299876)
55 econf \
56 --localstatedir=/var/state/octave \
57 --enable-shared \
58 --without-hdf5 \
59 --with-glpk \
60 --with-opengl \
61 --with-qrupdate \
62 --with-blas="$(pkg-config --libs blas)" \
63 --with-lapack="$(pkg-config --libs lapack)" \
64 $(use_enable readline) \
65 $(use_with curl) \
66 $(use_with fftw fftw3) \
67 $(use_with fftw fftw3f) \
68 $(use_with sparse umfpack) \
69 $(use_with sparse colamd) \
70 $(use_with sparse ccolamd) \
71 $(use_with sparse cholmod) \
72 $(use_with sparse cxsparse) \
73 $(use_with zlib z)
74 }
75
76 src_install() {
77 default
78 if use doc; then
79 einfo "Installing documentation..."
80 insinto /usr/share/doc/${PF}
81 doins $(find doc -name \*.pdf)
82 fi
83 use test && dodoc test/fntests.log
84 echo "LDPATH=/usr/$(get_libdir)/octave-${PV}" > 99octave
85 doenvd 99octave || die
86 }

  ViewVC Help
Powered by ViewVC 1.1.20