/[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.4 - (show annotations) (download)
Sat Jan 21 18:28:10 2012 UTC (6 years, 5 months ago) by bicatali
Branch: MAIN
Changes since 1.3: +2 -2 lines
Applying pkg_setup to earlier version

(Portage version: 2.1.10.41/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.4.3-r1.ebuild,v 1.3 2012/01/19 15:06:57 bicatali 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="ftp://ftp.gnu.org/pub/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="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~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 sparse? (
35 sci-libs/camd
36 sci-libs/ccolamd
37 sci-libs/cholmod
38 sci-libs/colamd
39 sci-libs/cxsparse
40 sci-libs/umfpack )
41 X? ( x11-libs/libX11 )
42 zlib? ( sys-libs/zlib )"
43
44 DEPEND="${RDEPEND}
45 doc? (
46 virtual/latex-base
47 dev-texlive/texlive-genericrecommended
48 sys-apps/texinfo )
49 dev-util/gperf
50 dev-util/pkgconfig"
51
52 pkg_setup() {
53 use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp && \
54 die "You have openmp enabled but your current gcc does not support it"
55 }
56
57 src_prepare() {
58 epatch "${FILESDIR}"/${P}-{pkgbuilddir,help}.patch
59 eautoreconf
60 }
61
62 src_configure() {
63 # hdf5 disabled because not really useful (bug #299876)
64 local myconf="--without-magick"
65 if use imagemagick; then
66 if has_version media-gfx/graphicsmagick[cxx]; then
67 myconf="--with-magick=GraphicsMagick"
68 else
69 myconf="--with-magick=ImageMagick"
70 fi
71 fi
72
73 econf \
74 --localstatedir="${EPREFIX}/var/state/octave" \
75 --enable-shared \
76 --without-hdf5 \
77 --with-blas="$(pkg-config --libs blas)" \
78 --with-lapack="$(pkg-config --libs lapack)" \
79 $(use_enable doc docs) \
80 $(use_enable readline) \
81 $(use_with curl) \
82 $(use_with fftw fftw3) \
83 $(use_with fftw fftw3f) \
84 $(use_with glpk) \
85 $(use_with opengl) \
86 $(use_with qhull) \
87 $(use_with qrupdate) \
88 $(use_with sparse umfpack) \
89 $(use_with sparse colamd) \
90 $(use_with sparse ccolamd) \
91 $(use_with sparse cholmod) \
92 $(use_with sparse cxsparse) \
93 $(use_with X x) \
94 $(use_with zlib z) \
95 ${myconf}
96 }
97
98 src_install() {
99 default
100 use doc && dodoc $(find doc -name \*.pdf)
101 [[ -e test/fntests.log ]] && dodoc test/fntests.log
102 echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/${P}" > 99octave
103 doenvd 99octave
104 }

  ViewVC Help
Powered by ViewVC 1.1.20