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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Jan 11 21:44:11 2013 UTC (20 months, 1 week ago) by bicatali
Branch: MAIN
Changes since 1.5: +5 -2 lines
Forgot transfig dependency

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

1 # Copyright 1999-2013 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.3.ebuild,v 1.5 2013/01/11 21:41:24 bicatali Exp $
4
5 EAPI=4
6
7 AUTOTOOLS_AUTORECONF=1
8 AUTOTOOLS_IN_SOURCE_BUILD=1
9
10 inherit autotools-utils multilib 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 postscript
19 +qhull +qrupdate readline +sparse static-libs X zlib"
20 KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
21
22 RDEPEND="
23 app-text/ghostscript-gpl
24 dev-libs/libpcre
25 sys-libs/ncurses
26 virtual/lapack
27 curl? ( net-misc/curl )
28 fftw? ( sci-libs/fftw:3.0 )
29 glpk? ( sci-mathematics/glpk )
30 gnuplot? ( sci-visualization/gnuplot )
31 hdf5? ( sci-libs/hdf5 )
32 imagemagick? ( || (
33 media-gfx/graphicsmagick[cxx]
34 media-gfx/imagemagick[cxx] ) )
35 opengl? (
36 media-libs/freetype:2
37 media-libs/fontconfig
38 >=x11-libs/fltk-1.3:1[opengl]
39 virtual/glu )
40 postscript? (
41 app-text/epstool
42 media-gfx/pstoedit
43 media-gfx/transfig )
44 qhull? ( media-libs/qhull )
45 qrupdate? ( sci-libs/qrupdate )
46 readline? ( sys-libs/readline )
47 sparse? (
48 sci-libs/arpack
49 sci-libs/camd
50 sci-libs/ccolamd
51 sci-libs/cholmod
52 sci-libs/colamd
53 sci-libs/cxsparse
54 sci-libs/umfpack )
55 X? ( x11-libs/libX11 )
56 zlib? ( sys-libs/zlib )"
57
58 DEPEND="${RDEPEND}
59 doc? (
60 virtual/latex-base
61 dev-texlive/texlive-genericrecommended
62 sys-apps/texinfo )
63 dev-util/gperf
64 virtual/pkgconfig"
65
66 PATCHES=(
67 "${FILESDIR}"/${PN}-3.4.3-{pkgbuilddir,help,texi}.patch
68 "${FILESDIR}"/${PN}-3.6.3-{rcond,legendtext}.patch
69 )
70
71 src_prepare() {
72 # nasty prefix hack for fltk:1 linking
73 if use prefix && use opengl; then
74 sed -i \
75 -e "s:ldflags\`:ldflags\` -Wl,-rpath,${EPREFIX}/usr/$(get_libdir)/fltk-1:" \
76 configure.ac
77 fi
78 autotools-utils_src_prepare
79 }
80
81 src_configure() {
82 # occasional fail on install, force regeneration (bug #401189)
83 rm doc/interpreter/contributors.texi || die
84
85 # unfortunate dependency on mpi from hdf5 (bug #302621)
86 use hdf5 && has_version sci-libs/hdf5[mpi] && \
87 export CXX=mpicxx CC=mpicc FC=mpif77 F77=mpif77
88
89 local myeconfargs=(
90 --localstatedir="${EPREFIX}/var/state/octave"
91 --with-blas="$($(tc-getPKG_CONFIG) --libs blas)"
92 --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)"
93 $(use_enable doc docs)
94 $(use_enable readline)
95 $(use_with curl)
96 $(use_with fftw fftw3)
97 $(use_with fftw fftw3f)
98 $(use_with glpk)
99 $(use_with hdf5)
100 $(use_with opengl)
101 $(use_with qhull)
102 $(use_with qrupdate)
103 $(use_with sparse arpack)
104 $(use_with sparse umfpack)
105 $(use_with sparse colamd)
106 $(use_with sparse ccolamd)
107 $(use_with sparse cholmod)
108 $(use_with sparse cxsparse)
109 $(use_with X x)
110 $(use_with zlib z)
111 )
112 if use imagemagick; then
113 if has_version media-gfx/graphicsmagick[cxx]; then
114 myeconfargs+=( "--with-magick=GraphicsMagick" )
115 else
116 myeconfargs+=( "--with-magick=ImageMagick" )
117 fi
118 else
119 myeconfargs+=( "--without-magick" )
120 fi
121 autotools-utils_src_configure
122 }
123
124 src_install() {
125 autotools-utils_src_install
126 use doc && dodoc $(find doc -name \*.pdf)
127 [[ -e test/fntests.log ]] && dodoc test/fntests.log
128 echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/${P}" > 99octave
129 doenvd 99octave
130 }

  ViewVC Help
Powered by ViewVC 1.1.20