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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Jul 12 20:52:00 2011 UTC (3 years, 5 months ago) by rafaelmartins
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Revision bump. Fixes bug #373985. Thanks to trubatch@hotmail.com for reporting.

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

  ViewVC Help
Powered by ViewVC 1.1.20