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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Tue Jan 3 02:24:04 2012 UTC (2 years, 7 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Added glpk, qhull, qrupdate use flags to allow minimal no graphics build and take care of some automagic. Removed fltk flag, the native graphics need opengl anyway. Gnuplot is not a dependencency anymore (more a suggested one).

(Portage version: 2.1.10.41/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-r3.ebuild,v 1.6 2011/10/05 18:44:23 aballier 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 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/ftgl
20 media-libs/qhull
21 sci-libs/qrupdate
22 sci-mathematics/glpk
23 sci-visualization/gnuplot
24 sys-libs/ncurses
25 virtual/lapack
26 virtual/opengl
27 x11-libs/libX11
28 curl? ( net-misc/curl )
29 fltk? ( x11-libs/fltk:1[opengl] )
30 fftw? ( sci-libs/fftw:3.0 )
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 dev-util/gperf
47 dev-util/pkgconfig"
48
49 src_prepare() {
50 epatch "${FILESDIR}"/${PN}-3.2.0_parallel_make.patch \
51 "${FILESDIR}"/${PN}-3.2.0_as_needed.patch \
52 "${FILESDIR}"/${PN}-3.2.4-imread.patch \
53 "${FILESDIR}"/${PN}-3.2.4-ldflags.patch \
54 "${FILESDIR}"/${PN}-3.2.4-fltk-magic.patch \
55 "${FILESDIR}"/${PN}-3.2.4-dlmread-speedup.patch \
56 "${FILESDIR}"/${PN}-3.2.4-addpath.patch \
57 "${FILESDIR}"/${PN}-3.2.4-filter-empty-vector.patch \
58 "${FILESDIR}"/${PN}-3.2.4-imshow.patch \
59 "${FILESDIR}"/${PN}-3.2.4-interp2.patch \
60 "${FILESDIR}"/${PN}-3.2.4-no-helvetica.patch \
61 "${FILESDIR}"/${PN}-3.2.4-normal-marker-size.patch \
62 "${FILESDIR}"/${P}-curl-headers.patch
63 has_version ">=x11-libs/fltk-1.3_rc1" && \
64 epatch "${FILESDIR}"/${PN}-3.2.4-fltk-1.3.patch
65 eautoreconf
66 }
67
68 src_configure() {
69 # hdf5 disabled because not really useful (bug #299876)
70 econf \
71 --localstatedir=/var/state/octave \
72 --enable-shared \
73 --without-hdf5 \
74 --with-qrupdate \
75 --with-blas="$(pkg-config --libs blas)" \
76 --with-lapack="$(pkg-config --libs lapack)" \
77 $(use_enable readline) \
78 $(use_with curl) \
79 $(use_with fftw) \
80 $(use_with fltk) \
81 $(use_with sparse arpack) \
82 $(use_with sparse umfpack) \
83 $(use_with sparse colamd) \
84 $(use_with sparse ccolamd) \
85 $(use_with sparse cholmod) \
86 $(use_with sparse cxsparse) \
87 $(use_with zlib)
88 }
89
90 src_compile() {
91 emake || die "emake failed"
92 if use xemacs; then
93 cd "${S}/emacs"
94 xemacs-elisp-comp *.el
95 fi
96 }
97
98 src_install() {
99 emake install DESTDIR="${D}" || die "emake install failed"
100
101 if use doc; then
102 einfo "Installing documentation..."
103 insinto /usr/share/doc/${PF}
104 doins $(find doc -name \*.pdf)
105 fi
106
107 if use emacs || use xemacs; then
108 cd emacs
109 exeinto /usr/bin
110 doexe octave-tags || die "Failed to install octave-tags"
111 doman octave-tags.1 || die "Failed to install octave-tags.1"
112 if use xemacs; then
113 xemacs-elisp-install ${PN} *.el *.elc
114 fi
115 cd ..
116 fi
117 use test && dodoc test/fntests.log
118 echo "LDPATH=/usr/$(get_libdir)/octave-${PV}" > 99octave
119 doenvd 99octave || die
120 }

  ViewVC Help
Powered by ViewVC 1.1.20