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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue May 4 23:40:04 2010 UTC (4 years, 6 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +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.4.ebuild,v 1.3 2010/02/17 04:38:38 bicatali Exp $
4
5 EAPI="2"
6 inherit flag-o-matic 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="curl doc emacs fltk fftw hdf5 opengl readline sparse xemacs zlib"
15 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
16
17 # add media-gfx/graphicsmagick[cxx] when keyworded in arches
18 RDEPEND="dev-libs/libpcre
19 media-libs/qhull
20 sci-libs/qrupdate
21 sci-mathematics/glpk
22 sci-visualization/gnuplot
23 sys-libs/ncurses
24 virtual/lapack
25 x11-libs/libX11
26 curl? ( net-misc/curl )
27 fltk? ( x11-libs/fltk:1.1[opengl?] )
28 fftw? ( sci-libs/fftw:3.0 )
29 hdf5? ( sci-libs/hdf5 )
30 opengl? ( virtual/opengl media-libs/ftgl )
31 sparse? ( sci-libs/arpack
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 xemacs? ( app-editors/xemacs )
39 zlib? ( sys-libs/zlib )
40 !sci-mathematics/octave-forge"
41
42 DEPEND="${RDEPEND}
43 virtual/latex-base
44 sys-apps/texinfo
45 || ( dev-texlive/texlive-genericrecommended
46 app-text/ptex )
47 dev-util/gperf
48 dev-util/pkgconfig"
49
50 src_prepare() {
51 epatch "${FILESDIR}"/${PN}-3.2.0_parallel_make.patch
52 epatch "${FILESDIR}"/${PN}-3.2.0_as_needed.patch
53
54 # without this we get MPI linker errors if hdf5
55 # was compiled against mpi (see #302621)
56 if has_version sci-libs/hdf5[mpi]; then
57 export CC=mpicc
58 export FC=mpif90
59 export CXX=mpicxx
60 fi
61 }
62
63 src_configure() {
64 use fltk || export FLTK_CONFIG="no"
65 econf \
66 --localstatedir=/var/state/octave \
67 --enable-shared \
68 --with-qrupdate \
69 --with-blas="$(pkg-config --libs blas)" \
70 --with-lapack="$(pkg-config --libs lapack)" \
71 $(use_enable readline) \
72 $(use_with curl) \
73 $(use_with fftw) \
74 $(use_with hdf5) \
75 $(use_with opengl framework-opengl) \
76 $(use_with sparse arpack) \
77 $(use_with sparse umfpack) \
78 $(use_with sparse colamd) \
79 $(use_with sparse ccolamd) \
80 $(use_with sparse cholmod) \
81 $(use_with sparse cxsparse) \
82 $(use_with zlib)
83 }
84
85 src_compile() {
86 emake || die "emake failed"
87 if use xemacs; then
88 cd "${S}/emacs"
89 xemacs-elisp-comp *.el
90 fi
91 }
92
93 src_install() {
94 emake install DESTDIR="${D}" || die "emake install failed"
95
96 if use doc; then
97 einfo "Installing documentation..."
98 insinto /usr/share/doc/${PF}
99 doins $(find doc -name \*.pdf)
100 fi
101
102 if use emacs || use xemacs; then
103 cd emacs
104 exeinto /usr/bin
105 doexe octave-tags || die "Failed to install octave-tags"
106 doman octave-tags.1 || die "Failed to install octave-tags.1"
107 if use xemacs; then
108 xemacs-elisp-install ${PN} *.el *.elc
109 fi
110 cd ..
111 fi
112
113 echo "LDPATH=/usr/$(get_libdir)/octave-${PV}" > 99octave
114 doenvd 99octave || die
115 }

  ViewVC Help
Powered by ViewVC 1.1.20