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

Contents of /sci-mathematics/octave/octave-3.6.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Jun 6 21:31:28 2012 UTC (2 years, 2 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Version bump

(Portage version: 2.1.10.63/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.6.0.ebuild,v 1.7 2012/05/04 07:46:51 jdhore Exp $
4
5 EAPI=4
6
7 AUTOTOOLS_AUTORECONF=yes
8 inherit autotools-utils toolchain-funcs
9
10 DESCRIPTION="High-level interactive language for numerical computations"
11 LICENSE="GPL-3"
12 HOMEPAGE="http://www.octave.org/"
13 SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2"
14
15 SLOT="0"
16 IUSE="curl doc fftw +glpk +imagemagick opengl +qhull +qrupdate
17 readline +sparse static-libs X zlib"
18 KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
19
20 RDEPEND="dev-libs/libpcre
21 app-text/ghostscript-gpl
22 sys-libs/ncurses
23 virtual/lapack
24 curl? ( net-misc/curl )
25 fftw? ( sci-libs/fftw:3.0 )
26 glpk? ( sci-mathematics/glpk )
27 imagemagick? ( || (
28 media-gfx/graphicsmagick[cxx]
29 media-gfx/imagemagick[cxx] ) )
30 opengl? (
31 media-libs/freetype:2
32 media-libs/fontconfig
33 >=x11-libs/fltk-1.3:1[opengl] )
34 qhull? ( media-libs/qhull )
35 qrupdate? ( sci-libs/qrupdate )
36 readline? ( sys-libs/readline )
37 sparse? (
38 sci-libs/arpack
39 sci-libs/camd
40 sci-libs/ccolamd
41 sci-libs/cholmod
42 sci-libs/colamd
43 sci-libs/cxsparse
44 sci-libs/umfpack )
45 X? ( x11-libs/libX11 )
46 zlib? ( sys-libs/zlib )"
47
48 DEPEND="${RDEPEND}
49 doc? (
50 virtual/latex-base
51 dev-texlive/texlive-genericrecommended
52 sys-apps/texinfo )
53 dev-util/gperf
54 virtual/pkgconfig"
55
56 PATCHES=( "${FILESDIR}"/${PN}-3.4.3-{pkgbuilddir,help,texi}.patch )
57
58 src_configure() {
59 # hdf5 disabled because not really useful (bug #299876)
60 local myconf="--without-magick"
61 if use imagemagick; then
62 if has_version media-gfx/graphicsmagick[cxx]; then
63 myconf="--with-magick=GraphicsMagick"
64 else
65 myconf="--with-magick=ImageMagick"
66 fi
67 fi
68
69 myeconfargs+=(
70 --localstatedir="${EPREFIX}/var/state/octave"
71 --without-hdf5
72 --with-blas="$(pkg-config --libs blas)"
73 --with-lapack="$(pkg-config --libs lapack)"
74 $(use_enable doc docs)
75 $(use_enable readline)
76 $(use_with curl)
77 $(use_with fftw fftw3)
78 $(use_with fftw fftw3f)
79 $(use_with glpk)
80 $(use_with opengl)
81 $(use_with qhull)
82 $(use_with qrupdate)
83 $(use_with sparse arpack)
84 $(use_with sparse umfpack)
85 $(use_with sparse colamd)
86 $(use_with sparse ccolamd)
87 $(use_with sparse cholmod)
88 $(use_with sparse cxsparse)
89 $(use_with X x)
90 $(use_with zlib z)
91 ${myconf}
92 )
93 autotools-utils_src_configure
94 }
95
96 src_install() {
97 autotools-utils_src_install
98 use doc && dodoc $(find doc -name \*.pdf)
99 [[ -e test/fntests.log ]] && dodoc test/fntests.log
100 echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/${P}" > 99octave
101 doenvd 99octave
102 }

  ViewVC Help
Powered by ViewVC 1.1.20