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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Jun 9 21:58:24 2011 UTC (3 years, 1 month ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Added some patches for compiling on gcc-4.6, fixing fltk, and building packages directory from fedora. Added a parallel compilation patch.

(Portage version: 2.1.10/cvs/Linux x86_64)

1 # Copyright 1999-2011 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-r2.ebuild,v 1.2 2011/03/20 20:01:35 jlec 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="ftp://ftp.gnu.org/pub/gnu/${PN}/${P}.tar.bz2"
12
13 SLOT="0"
14 IUSE="curl doc emacs fltk fftw opengl readline sparse test xemacs zlib"
15 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~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 app-text/ptex )
46 dev-util/gperf
47 dev-util/pkgconfig"
48
49 src_prepare() {
50 epatch "${FILESDIR}"/${PN}-3.2.0_parallel_make.patch
51 epatch "${FILESDIR}"/${PN}-3.2.0_as_needed.patch
52 epatch "${FILESDIR}"/${PN}-3.2.4-imread.patch
53 epatch "${FILESDIR}"/${PN}-3.2.4-ldflags.patch
54 epatch "${FILESDIR}"/${PN}-3.2.4-fltk-magic.patch
55 epatch "${FILESDIR}"/${PN}-3.2.4-dlmread-speedup.patch
56 eautoreconf
57 }
58
59 src_configure() {
60 # hdf5 disabled because not really useful (bug #299876)
61 econf \
62 --localstatedir=/var/state/octave \
63 --enable-shared \
64 --without-hdf5 \
65 --with-qrupdate \
66 --with-blas="$(pkg-config --libs blas)" \
67 --with-lapack="$(pkg-config --libs lapack)" \
68 $(use_enable readline) \
69 $(use_with curl) \
70 $(use_with fftw) \
71 $(use_with fltk) \
72 $(use_with opengl framework-opengl) \
73 $(use_with sparse arpack) \
74 $(use_with sparse umfpack) \
75 $(use_with sparse colamd) \
76 $(use_with sparse ccolamd) \
77 $(use_with sparse cholmod) \
78 $(use_with sparse cxsparse) \
79 $(use_with zlib)
80 }
81
82 src_compile() {
83 emake || die "emake failed"
84 if use xemacs; then
85 cd "${S}/emacs"
86 xemacs-elisp-comp *.el
87 fi
88 }
89
90 src_install() {
91 emake install DESTDIR="${D}" || die "emake install failed"
92
93 if use doc; then
94 einfo "Installing documentation..."
95 insinto /usr/share/doc/${PF}
96 doins $(find doc -name \*.pdf)
97 fi
98
99 if use emacs || use xemacs; then
100 cd emacs
101 exeinto /usr/bin
102 doexe octave-tags || die "Failed to install octave-tags"
103 doman octave-tags.1 || die "Failed to install octave-tags.1"
104 if use xemacs; then
105 xemacs-elisp-install ${PN} *.el *.elc
106 fi
107 cd ..
108 fi
109 use test && dodoc test/fntests.log
110 echo "LDPATH=/usr/$(get_libdir)/octave-${PV}" > 99octave
111 doenvd 99octave || die
112 }

  ViewVC Help
Powered by ViewVC 1.1.20