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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations) (download)
Wed Jun 6 21:31:28 2012 UTC (2 years, 6 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +1 -1 lines
FILE REMOVED
Version bump

(Portage version: 2.1.10.63/cvs/Linux x86_64)

1 # Copyright 1999-2012 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-r1.ebuild,v 1.15 2012/05/04 07:46:51 jdhore Exp $
4
5 EAPI="2"
6 inherit flag-o-matic xemacs-elisp-common autotools
7
8 DESCRIPTION="High-level interactive language for numerical computations"
9 LICENSE="GPL-3"
10 HOMEPAGE="http://www.octave.org/"
11 SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2"
12
13 SLOT="0"
14 IUSE="curl doc emacs fltk fftw opengl readline sparse test xemacs zlib"
15 KEYWORDS="amd64 hppa ppc ppc64 x86"
16
17 RDEPEND="dev-libs/libpcre
18 media-gfx/graphicsmagick[cxx]
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[opengl?] )
28 fftw? ( sci-libs/fftw:3.0 )
29 opengl? ( virtual/opengl media-libs/ftgl )
30 sparse? ( sci-libs/arpack
31 sci-libs/camd
32 sci-libs/ccolamd
33 sci-libs/cholmod
34 sci-libs/colamd
35 sci-libs/cxsparse
36 sci-libs/umfpack )
37 xemacs? ( app-editors/xemacs )
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 dev-util/gperf
46 virtual/pkgconfig"
47
48 src_prepare() {
49 epatch "${FILESDIR}"/${PN}-3.2.0_parallel_make.patch \
50 "${FILESDIR}"/${PN}-3.2.0_as_needed.patch \
51 "${FILESDIR}"/${PN}-3.2.4-imread.patch \
52 "${FILESDIR}"/${PN}-3.2.4-ldflags.patch \
53 "${FILESDIR}"/${PN}-3.2.4-fltk-magic.patch \
54 "${FILESDIR}"/${P}-curl-headers.patch
55 eautoreconf
56 }
57
58 src_configure() {
59 # hdf5 disabled because not really useful (bug #299876)
60 econf \
61 --localstatedir=/var/state/octave \
62 --enable-shared \
63 --without-hdf5 \
64 --with-qrupdate \
65 --with-blas="$(pkg-config --libs blas)" \
66 --with-lapack="$(pkg-config --libs lapack)" \
67 $(use_enable readline) \
68 $(use_with curl) \
69 $(use_with fftw) \
70 $(use_with fltk) \
71 $(use_with opengl framework-opengl) \
72 $(use_with sparse arpack) \
73 $(use_with sparse umfpack) \
74 $(use_with sparse colamd) \
75 $(use_with sparse ccolamd) \
76 $(use_with sparse cholmod) \
77 $(use_with sparse cxsparse) \
78 $(use_with zlib)
79 }
80
81 src_compile() {
82 emake || die "emake failed"
83 if use xemacs; then
84 cd "${S}/emacs"
85 xemacs-elisp-comp *.el
86 fi
87 }
88
89 src_install() {
90 emake install DESTDIR="${D}" || die "emake install failed"
91
92 if use doc; then
93 einfo "Installing documentation..."
94 insinto /usr/share/doc/${PF}
95 doins $(find doc -name \*.pdf)
96 fi
97
98 if use emacs || use xemacs; then
99 cd emacs
100 exeinto /usr/bin
101 doexe octave-tags || die "Failed to install octave-tags"
102 doman octave-tags.1 || die "Failed to install octave-tags.1"
103 if use xemacs; then
104 xemacs-elisp-install ${PN} *.el *.elc
105 fi
106 cd ..
107 fi
108 use test && dodoc test/fntests.log
109 echo "LDPATH=/usr/$(get_libdir)/octave-${PV}" > 99octave
110 doenvd 99octave || die
111 }

  ViewVC Help
Powered by ViewVC 1.1.20