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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Feb 1 07:09:46 2010 UTC (4 years, 8 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +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.3.ebuild,v 1.1 2009/11/04 11:26:39 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}"/${PN}-3.2.0_parallel_make.patch
49 epatch "${FILESDIR}"/${PN}-3.2.0_as_needed.patch
50 }
51
52 src_configure() {
53 econf \
54 --localstatedir=/var/state/octave \
55 --enable-shared \
56 --with-blas="$(pkg-config --libs blas)" \
57 --with-lapack="$(pkg-config --libs lapack)" \
58 $(use_with hdf5) \
59 $(use_with curl) \
60 $(use_with zlib) \
61 $(use_with fftw) \
62 $(use_with sparse arpack) \
63 $(use_with sparse umfpack) \
64 $(use_with sparse colamd) \
65 $(use_with sparse ccolamd) \
66 $(use_with sparse cholmod) \
67 $(use_with sparse cxsparse) \
68 $(use_enable readline)
69 }
70
71 src_compile() {
72 emake || die "emake failed"
73
74 if use xemacs; then
75 cd "${S}/emacs"
76 xemacs-elisp-comp *.el
77 fi
78 }
79
80 src_install() {
81 emake install DESTDIR="${D}" || die "emake install failed"
82
83 if use doc; then
84 einfo "Installing documentation..."
85 insinto /usr/share/doc/${PF}
86 doins $(find doc -name \*.pdf)
87 fi
88
89 if use emacs || use xemacs; then
90 cd emacs
91 exeinto /usr/bin
92 doexe octave-tags || die "Failed to install octave-tags"
93 doman octave-tags.1 || die "Failed to install octave-tags.1"
94 if use xemacs; then
95 xemacs-elisp-install ${PN} *.el *.elc
96 fi
97 cd ..
98 fi
99
100 echo "LDPATH=/usr/$(get_libdir)/octave-${PV}" > 99octave
101 doenvd 99octave || die
102 }

  ViewVC Help
Powered by ViewVC 1.1.20