/[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.6 - (hide annotations) (download)
Mon Feb 6 00:00:14 2012 UTC (6 years, 5 months ago) by bicatali
Branch: MAIN
Changes since 1.5: +2 -1 lines
Added readline dependency

(Portage version: 2.1.10.41/cvs/Linux x86_64)

1 bicatali 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 bicatali 1.6 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-3.4.3-r1.ebuild,v 1.5 2012/01/31 18:01:08 bicatali Exp $
4 bicatali 1.1
5     EAPI=4
6 bicatali 1.3 inherit eutils base autotools toolchain-funcs
7 bicatali 1.1
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 bicatali 1.3 IUSE="curl doc fftw +glpk +imagemagick opengl openmp +qhull +qrupdate
15     readline +sparse static-libs X zlib"
16 xarthisius 1.2 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
17 bicatali 1.1
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 bicatali 1.6 readline? ( sys-libs/readline )
35 bicatali 1.1 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 bicatali 1.3 dev-util/gperf
51 bicatali 1.1 dev-util/pkgconfig"
52    
53 bicatali 1.4 pkg_setup() {
54 bicatali 1.3 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 bicatali 1.1 src_prepare() {
59 bicatali 1.5 epatch "${FILESDIR}"/${P}-{pkgbuilddir,help,texi}.patch
60 bicatali 1.1 eautoreconf
61     }
62    
63     src_configure() {
64     # hdf5 disabled because not really useful (bug #299876)
65 bicatali 1.3 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 bicatali 1.1 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 bicatali 1.3 $(use_with zlib z) \
96     ${myconf}
97 bicatali 1.1 }
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