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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Fri May 4 07:46:51 2012 UTC (2 years, 3 months ago) by jdhore
Branch: MAIN
Changes since 1.13: +2 -2 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

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.4.3-r1.ebuild,v 1.13 2012/04/24 10:39:54 mgorny Exp $
4
5 EAPI=4
6 inherit eutils base autotools toolchain-funcs
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 fftw +glpk +imagemagick opengl openmp +qhull +qrupdate
15 readline +sparse static-libs X zlib"
16 KEYWORDS="amd64 hppa ppc ppc64 x86 ~amd64-linux ~x86-linux"
17
18 RDEPEND="dev-libs/libpcre
19 app-text/ghostscript-gpl
20 sys-libs/ncurses
21 virtual/lapack
22 curl? ( net-misc/curl )
23 fftw? ( sci-libs/fftw:3.0 )
24 glpk? ( sci-mathematics/glpk )
25 imagemagick? ( || (
26 media-gfx/graphicsmagick[cxx]
27 media-gfx/imagemagick[cxx] ) )
28 opengl? (
29 media-libs/freetype:2
30 media-libs/fontconfig
31 >=x11-libs/fltk-1.3:1[opengl] )
32 qhull? ( media-libs/qhull )
33 qrupdate? ( sci-libs/qrupdate )
34 readline? ( sys-libs/readline )
35 sparse? (
36 sci-libs/camd
37 sci-libs/ccolamd
38 sci-libs/cholmod
39 sci-libs/colamd
40 sci-libs/cxsparse
41 sci-libs/umfpack )
42 X? ( x11-libs/libX11 )
43 zlib? ( sys-libs/zlib )"
44
45 DEPEND="${RDEPEND}
46 doc? (
47 virtual/latex-base
48 dev-texlive/texlive-genericrecommended
49 sys-apps/texinfo )
50 dev-util/gperf
51 virtual/pkgconfig"
52
53 pkg_setup() {
54 use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp && \
55 die "You have openmp enabled but your current gcc does not support it"
56 }
57
58 src_prepare() {
59 epatch "${FILESDIR}"/${P}-{pkgbuilddir,help,texi}.patch
60 eautoreconf
61 }
62
63 src_configure() {
64 # hdf5 disabled because not really useful (bug #299876)
65 local myconf="--without-magick"
66 if use imagemagick; then
67 if has_version media-gfx/graphicsmagick[cxx]; then
68 myconf="--with-magick=GraphicsMagick"
69 else
70 myconf="--with-magick=ImageMagick"
71 fi
72 fi
73
74 econf \
75 --localstatedir="${EPREFIX}/var/state/octave" \
76 --enable-shared \
77 --without-hdf5 \
78 --with-blas="$(pkg-config --libs blas)" \
79 --with-lapack="$(pkg-config --libs lapack)" \
80 $(use_enable doc docs) \
81 $(use_enable readline) \
82 $(use_with curl) \
83 $(use_with fftw fftw3) \
84 $(use_with fftw fftw3f) \
85 $(use_with glpk) \
86 $(use_with opengl) \
87 $(use_with qhull) \
88 $(use_with qrupdate) \
89 $(use_with sparse umfpack) \
90 $(use_with sparse colamd) \
91 $(use_with sparse ccolamd) \
92 $(use_with sparse cholmod) \
93 $(use_with sparse cxsparse) \
94 $(use_with X x) \
95 $(use_with zlib z) \
96 ${myconf}
97 }
98
99 src_install() {
100 default
101 use doc && dodoc $(find doc -name \*.pdf)
102 [[ -e test/fntests.log ]] && dodoc test/fntests.log
103 echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/${P}" > 99octave
104 doenvd 99octave
105 }

  ViewVC Help
Powered by ViewVC 1.1.20