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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Nov 22 19:46:15 2012 UTC (2 years, 3 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Adding a patch to fix legend text with FLTK backend, thanks Thomas Ilnseher (bug #437868). Removed old

(Portage version: 2.2.01.21313-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)

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.1.ebuild,v 1.4 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 gnuplot +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 gnuplot? ( sci-visualization/gnuplot )
28 imagemagick? ( || (
29 media-gfx/graphicsmagick[cxx]
30 media-gfx/imagemagick[cxx] ) )
31 opengl? (
32 media-libs/freetype:2
33 media-libs/fontconfig
34 >=x11-libs/fltk-1.3:1[opengl] )
35 qhull? ( media-libs/qhull )
36 qrupdate? ( sci-libs/qrupdate )
37 readline? ( sys-libs/readline )
38 sparse? (
39 sci-libs/arpack
40 sci-libs/camd
41 sci-libs/ccolamd
42 sci-libs/cholmod
43 sci-libs/colamd
44 sci-libs/cxsparse
45 sci-libs/umfpack )
46 X? ( x11-libs/libX11 )
47 zlib? ( sys-libs/zlib )"
48
49 DEPEND="${RDEPEND}
50 doc? (
51 virtual/latex-base
52 dev-texlive/texlive-genericrecommended
53 sys-apps/texinfo )
54 dev-util/gperf
55 virtual/pkgconfig"
56
57 PATCHES=( "${FILESDIR}"/${PN}-3.4.3-{pkgbuilddir,help,texi}.patch )
58
59 src_configure() {
60 # occasional fail on install, force regeneration see bug #401189
61 rm -f doc/interpreter/contributors.texi || die
62
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 myeconfargs+=(
74 --localstatedir="${EPREFIX}/var/state/octave"
75 --without-hdf5
76 --with-blas="$(pkg-config --libs blas)"
77 --with-lapack="$(pkg-config --libs lapack)"
78 $(use_enable doc docs)
79 $(use_enable readline)
80 $(use_with curl)
81 $(use_with fftw fftw3)
82 $(use_with fftw fftw3f)
83 $(use_with glpk)
84 $(use_with opengl)
85 $(use_with qhull)
86 $(use_with qrupdate)
87 $(use_with sparse arpack)
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 autotools-utils_src_configure
98 }
99
100 src_install() {
101 autotools-utils_src_install
102 use doc && dodoc $(find doc -name \*.pdf)
103 [[ -e test/fntests.log ]] && dodoc test/fntests.log
104 echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/${P}" > 99octave
105 doenvd 99octave
106 }

  ViewVC Help
Powered by ViewVC 1.1.20