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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Mon Feb 1 07:09:46 2010 UTC (4 years, 6 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Version bump. Pulled the science overlay version which included opengl and fltk goodness. The automagic dependency on graphicsmagick still not depend because of missing arches and imread is buggy with graphicsmagick-1.3.8.
(Portage version: 2.2_rc61/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.2.0.ebuild,v 1.7 2009/11/04 11:05:01 markusle Exp $
4
5 EAPI="2"
6 inherit flag-o-matic fortran xemacs-elisp-common
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="emacs readline zlib doc hdf5 curl fftw xemacs sparse"
15 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
16
17 RDEPEND="virtual/lapack
18 dev-libs/libpcre
19 sys-libs/ncurses
20 sci-visualization/gnuplot
21 >=sci-mathematics/glpk-4.15
22 media-libs/qhull
23 fftw? ( >=sci-libs/fftw-3.1.2 )
24 zlib? ( sys-libs/zlib )
25 hdf5? ( sci-libs/hdf5 )
26 curl? ( net-misc/curl )
27 xemacs? ( app-editors/xemacs )
28 sparse? ( sci-libs/umfpack
29 sci-libs/arpack
30 sci-libs/colamd
31 sci-libs/camd
32 sci-libs/ccolamd
33 sci-libs/cholmod
34 sci-libs/cxsparse )
35 !sci-mathematics/octave-forge"
36
37 DEPEND="${RDEPEND}
38 virtual/latex-base
39 sys-apps/texinfo
40 || ( dev-texlive/texlive-genericrecommended
41 app-text/ptex )
42 dev-util/gperf
43 dev-util/pkgconfig"
44
45 FORTRAN="gfortran ifc g77 f2c"
46
47 src_prepare() {
48 epatch "${FILESDIR}"/${P}_parallel_make.patch
49 epatch "${FILESDIR}"/${P}_as_needed.patch
50 epatch "${FILESDIR}"/${P}-dlmwrite.patch
51 }
52
53 src_configure() {
54 econf \
55 --localstatedir=/var/state/octave \
56 --enable-shared \
57 --with-blas="$(pkg-config --libs blas)" \
58 --with-lapack="$(pkg-config --libs lapack)" \
59 $(use_with hdf5) \
60 $(use_with curl) \
61 $(use_with zlib) \
62 $(use_with fftw) \
63 $(use_with sparse arpack) \
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_enable readline)
70 }
71
72 src_compile() {
73 emake || die "emake failed"
74
75 if use xemacs; then
76 cd "${S}/emacs"
77 xemacs-elisp-comp *.el
78 fi
79 }
80
81 src_install() {
82 emake install DESTDIR="${D}" || die "emake install failed"
83
84 if use doc; then
85 einfo "Installing documentation..."
86 insinto /usr/share/doc/${PF}
87 doins $(find doc -name \*.pdf)
88 fi
89
90 if use emacs || use xemacs; then
91 cd emacs
92 exeinto /usr/bin
93 doexe octave-tags || die "Failed to install octave-tags"
94 doman octave-tags.1 || die "Failed to install octave-tags.1"
95 if use xemacs; then
96 xemacs-elisp-install ${PN} *.el *.elc
97 fi
98 cd ..
99 fi
100
101 echo "LDPATH=/usr/$(get_libdir)/octave-${PV}" > 99octave
102 doenvd 99octave || die
103 }

  ViewVC Help
Powered by ViewVC 1.1.20