/[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.2 - (hide annotations) (download)
Tue Jan 17 17:17:12 2012 UTC (6 years, 10 months ago) by xarthisius
Branch: MAIN
Changes since 1.1: +2 -2 lines
Add prefix keywords

(Portage version: 2.2.0_alpha84/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 xarthisius 1.2 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-3.4.3-r1.ebuild,v 1.1 2012/01/03 02:24:04 bicatali Exp $
4 bicatali 1.1
5     EAPI=4
6     inherit eutils base 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 fftw +glpk +imagemagick opengl +qhull +qrupdate readline +sparse X zlib"
15 xarthisius 1.2 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
16 bicatali 1.1
17     RDEPEND="dev-libs/libpcre
18     app-text/ghostscript-gpl
19     sys-libs/ncurses
20     virtual/lapack
21     curl? ( net-misc/curl )
22     fftw? ( sci-libs/fftw:3.0 )
23     glpk? ( sci-mathematics/glpk )
24     imagemagick? ( || (
25     media-gfx/graphicsmagick[cxx]
26     media-gfx/imagemagick[cxx] ) )
27     opengl? (
28     media-libs/freetype:2
29     media-libs/fontconfig
30     >=x11-libs/fltk-1.3:1[opengl] )
31     qhull? ( media-libs/qhull )
32     qrupdate? ( sci-libs/qrupdate )
33     sparse? (
34     sci-libs/camd
35     sci-libs/ccolamd
36     sci-libs/cholmod
37     sci-libs/colamd
38     sci-libs/cxsparse
39     sci-libs/umfpack )
40     X? ( x11-libs/libX11 )
41     zlib? ( sys-libs/zlib )"
42    
43     DEPEND="${RDEPEND}
44     doc? (
45     virtual/latex-base
46     dev-texlive/texlive-genericrecommended
47     sys-apps/texinfo )
48     dev-util/pkgconfig"
49    
50     src_prepare() {
51     epatch "${FILESDIR}"/${PN}-3.4.0-{pkgbuilddir,help}.patch
52     eautoreconf
53     }
54    
55     src_configure() {
56     # hdf5 disabled because not really useful (bug #299876)
57     econf \
58     --localstatedir="${EPREFIX}/var/state/octave" \
59     --enable-shared \
60     --without-hdf5 \
61     --with-blas="$(pkg-config --libs blas)" \
62     --with-lapack="$(pkg-config --libs lapack)" \
63     $(use_enable doc docs) \
64     $(use_enable readline) \
65     $(use_with curl) \
66     $(use_with fftw fftw3) \
67     $(use_with fftw fftw3f) \
68     $(use_with glpk) \
69     $(use_with imagemagick magick) \
70     $(use_with opengl) \
71     $(use_with qhull) \
72     $(use_with qrupdate) \
73     $(use_with sparse umfpack) \
74     $(use_with sparse colamd) \
75     $(use_with sparse ccolamd) \
76     $(use_with sparse cholmod) \
77     $(use_with sparse cxsparse) \
78     $(use_with X x) \
79     $(use_with zlib z)
80     }
81    
82     src_install() {
83     default
84     use doc && dodoc $(find doc -name \*.pdf)
85     [[ -e test/fntests.log ]] && dodoc test/fntests.log
86     echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/${P}" > 99octave
87     doenvd 99octave
88     }

  ViewVC Help
Powered by ViewVC 1.1.20