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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue May 4 23:40:04 2010 UTC (4 years, 2 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Fixed some fltk automagic
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.3-r1.ebuild,v 1.2 2010/02/03 10:14:06 fauli 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 sci-libs/qrupdate
24 fftw? ( >=sci-libs/fftw-3.1.2 )
25 zlib? ( sys-libs/zlib )
26 hdf5? ( sci-libs/hdf5 )
27 curl? ( net-misc/curl )
28 xemacs? ( app-editors/xemacs )
29 sparse? ( sci-libs/umfpack
30 sci-libs/arpack
31 sci-libs/colamd
32 sci-libs/camd
33 sci-libs/ccolamd
34 sci-libs/cholmod
35 sci-libs/cxsparse )
36 !sci-mathematics/octave-forge"
37
38 DEPEND="${RDEPEND}
39 virtual/latex-base
40 sys-apps/texinfo
41 || ( dev-texlive/texlive-genericrecommended
42 app-text/ptex )
43 dev-util/gperf
44 dev-util/pkgconfig"
45
46 FORTRAN="gfortran ifc g77 f2c"
47
48 src_prepare() {
49 epatch "${FILESDIR}"/${PN}-3.2.0_parallel_make.patch
50 epatch "${FILESDIR}"/${PN}-3.2.0_as_needed.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 --with-qrupdate \
60 $(use_with hdf5) \
61 $(use_with curl) \
62 $(use_with zlib) \
63 $(use_with fftw) \
64 $(use_with sparse arpack) \
65 $(use_with sparse umfpack) \
66 $(use_with sparse colamd) \
67 $(use_with sparse ccolamd) \
68 $(use_with sparse cholmod) \
69 $(use_with sparse cxsparse) \
70 $(use_enable readline)
71 }
72
73 src_compile() {
74 emake || die "emake failed"
75
76 if use xemacs; then
77 cd "${S}/emacs"
78 xemacs-elisp-comp *.el
79 fi
80 }
81
82 src_install() {
83 emake install DESTDIR="${D}" || die "emake install failed"
84
85 if use doc; then
86 einfo "Installing documentation..."
87 insinto /usr/share/doc/${PF}
88 doins $(find doc -name \*.pdf)
89 fi
90
91 if use emacs || use xemacs; then
92 cd emacs
93 exeinto /usr/bin
94 doexe octave-tags || die "Failed to install octave-tags"
95 doman octave-tags.1 || die "Failed to install octave-tags.1"
96 if use xemacs; then
97 xemacs-elisp-install ${PN} *.el *.elc
98 fi
99 cd ..
100 fi
101
102 echo "LDPATH=/usr/$(get_libdir)/octave-${PV}" > 99octave
103 doenvd 99octave || die
104 }

  ViewVC Help
Powered by ViewVC 1.1.20