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

Contents of /sci-mathematics/octave/octave-3.6.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Nov 22 19:46:15 2012 UTC (23 months, 4 weeks ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +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.2-r1.ebuild,v 1.3 2012/10/25 06:20:56 naota Exp $
4
5 EAPI=4
6
7 AUTOTOOLS_AUTORECONF=1
8 AUTOTOOLS_IN_SOURCE_BUILD=1
9
10 inherit autotools-utils toolchain-funcs fortran-2
11
12 DESCRIPTION="High-level interactive language for numerical computations"
13 LICENSE="GPL-3"
14 HOMEPAGE="http://www.octave.org/"
15 SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2"
16
17 SLOT="0"
18 IUSE="curl doc fftw +glpk gnuplot hdf5 +imagemagick opengl +qhull +qrupdate
19 readline +sparse static-libs X zlib"
20 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
21
22 RDEPEND="dev-libs/libpcre
23 app-text/ghostscript-gpl
24 sys-libs/ncurses
25 virtual/lapack
26 curl? ( net-misc/curl )
27 fftw? ( sci-libs/fftw:3.0 )
28 glpk? ( sci-mathematics/glpk )
29 gnuplot? ( sci-visualization/gnuplot )
30 hdf5? ( sci-libs/hdf5 )
31 imagemagick? ( || (
32 media-gfx/graphicsmagick[cxx]
33 media-gfx/imagemagick[cxx] ) )
34 opengl? (
35 media-libs/freetype:2
36 media-libs/fontconfig
37 >=x11-libs/fltk-1.3:1[opengl] )
38 qhull? ( media-libs/qhull )
39 qrupdate? ( sci-libs/qrupdate )
40 readline? ( sys-libs/readline )
41 sparse? (
42 sci-libs/arpack
43 sci-libs/camd
44 sci-libs/ccolamd
45 sci-libs/cholmod
46 sci-libs/colamd
47 sci-libs/cxsparse
48 sci-libs/umfpack )
49 X? ( x11-libs/libX11 )
50 zlib? ( sys-libs/zlib )"
51
52 DEPEND="${RDEPEND}
53 doc? (
54 virtual/latex-base
55 dev-texlive/texlive-genericrecommended
56 sys-apps/texinfo )
57 dev-util/gperf
58 virtual/pkgconfig"
59
60 PATCHES=( "${FILESDIR}"/${PN}-3.4.3-{pkgbuilddir,help,texi,gets}.patch )
61
62 src_prepare() {
63 # nasty prefix hack for fltk:1 linking
64 if use prefix && use opengl; then
65 sed -i \
66 -e "s:ldflags\`:ldflags\` -Wl,-rpath,${EPREFIX}/usr/$(get_libdir)/fltk-1:" \
67 configure.ac
68 fi
69 autotools-utils_src_prepare
70 }
71
72 src_configure() {
73 # occasional fail on install, force regeneration see bug #401189
74 rm -f doc/interpreter/contributors.texi || die
75
76 # hdf5 disabled because not really useful (bug #299876)
77 local myconf="--without-magick"
78 if use imagemagick; then
79 if has_version media-gfx/graphicsmagick[cxx]; then
80 myconf="--with-magick=GraphicsMagick"
81 else
82 myconf="--with-magick=ImageMagick"
83 fi
84 fi
85
86 # gentoo bug #302621
87 use hdf5 && has_version sci-libs/hdf5[mpi] && \
88 export CXX=mpicxx CC=mpicc FC=mpif77 F77=mpif77
89
90 local myeconfargs+=(
91 --localstatedir="${EPREFIX}/var/state/octave"
92 --with-blas="$(pkg-config --libs blas)"
93 --with-lapack="$(pkg-config --libs lapack)"
94 $(use_enable doc docs)
95 $(use_enable readline)
96 $(use_with curl)
97 $(use_with fftw fftw3)
98 $(use_with fftw fftw3f)
99 $(use_with glpk)
100 $(use_with hdf5)
101 $(use_with opengl)
102 $(use_with qhull)
103 $(use_with qrupdate)
104 $(use_with sparse arpack)
105 $(use_with sparse umfpack)
106 $(use_with sparse colamd)
107 $(use_with sparse ccolamd)
108 $(use_with sparse cholmod)
109 $(use_with sparse cxsparse)
110 $(use_with X x)
111 $(use_with zlib z)
112 ${myconf}
113 )
114 autotools-utils_src_configure
115 }
116
117 src_install() {
118 autotools-utils_src_install
119 use doc && dodoc $(find doc -name \*.pdf)
120 [[ -e test/fntests.log ]] && dodoc test/fntests.log
121 echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/${P}" > 99octave
122 doenvd 99octave
123 }

  ViewVC Help
Powered by ViewVC 1.1.20