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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Nov 18 02:27:01 2008 UTC (5 years, 8 months ago) by markusle
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump (fixes bug #246782).
(Portage version: 2.2_rc14/cvs/Linux 2.6.27-SENTINEL-2 i686)

1 # Copyright 1999-2008 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.0.1.ebuild,v 1.1 2008/07/24 21:59:51 markusle Exp $
4
5 inherit flag-o-matic fortran xemacs-elisp-common
6
7 DESCRIPTION="High-level interactive language for numerical computations"
8 LICENSE="GPL-3"
9 HOMEPAGE="http://www.octave.org/"
10 SRC_URI="ftp://ftp.gnu.org/pub/gnu/${PN}/${P}.tar.bz2"
11
12 SLOT="0"
13 IUSE="emacs readline zlib doc hdf5 curl fftw xemacs sparse"
14 KEYWORDS="~amd64 ~x86 ~alpha ~hppa ~ppc ~ppc64 ~sparc"
15
16 RDEPEND="virtual/lapack
17 dev-libs/libpcre
18 sys-libs/ncurses
19 sci-visualization/gnuplot
20 >=sci-mathematics/glpk-4.15
21 media-libs/qhull
22 fftw? ( >=sci-libs/fftw-3.1.2 )
23 zlib? ( sys-libs/zlib )
24 hdf5? ( sci-libs/hdf5 )
25 curl? ( net-misc/curl )
26 xemacs? ( virtual/xemacs )
27 sparse? ( sci-libs/umfpack
28 sci-libs/colamd
29 sci-libs/camd
30 sci-libs/ccolamd
31 sci-libs/cholmod
32 sci-libs/cxsparse )
33 !sci-mathematics/octave-forge"
34
35 DEPEND="${RDEPEND}
36 virtual/latex-base
37 sys-apps/texinfo
38 || ( dev-texlive/texlive-genericrecommended
39 app-text/tetex
40 app-text/ptex )
41 dev-util/dejagnu
42 dev-util/gperf
43 dev-util/pkgconfig"
44
45 FORTRAN="gfortran ifc g77 f2c"
46
47 src_unpack() {
48 unpack ${A}
49 cd "${S}"
50 epatch "${FILESDIR}"/${PN}-3.0.0-pkg.patch
51 epatch "${FILESDIR}"/${P}-test-fix.patch
52 epatch "${FILESDIR}"/${P}-add_syspath.patch
53 epatch "${FILESDIR}"/${P}-fix_handle_for_plotyy.patch
54 epatch "${FILESDIR}"/${P}-no_helvetica.patch
55 epatch "${FILESDIR}"/${P}-chi2rnd.patch
56 }
57
58 src_compile() {
59
60 econf \
61 --localstatedir=/var/state/octave \
62 --enable-shared \
63 --with-blas="$(pkg-config --libs blas)" \
64 --with-lapack="$(pkg-config --libs lapack)" \
65 $(use_with hdf5) \
66 $(use_with curl) \
67 $(use_with zlib) \
68 $(use_with fftw) \
69 $(use_with sparse umfpack) \
70 $(use_with sparse colamd) \
71 $(use_with sparse ccolamd) \
72 $(use_with sparse cholmod) \
73 $(use_with sparse cxsparse) \
74 $(use_enable readline) \
75 || die "econf failed"
76
77 emake || die "emake failed"
78
79 if use xemacs; then
80 cd "${S}/emacs"
81 xemacs-elisp-comp *.el
82 fi
83 }
84
85 src_install() {
86 emake install DESTDIR="${D}" || die "emake install failed"
87
88 if use doc; then
89 einfo "Installing documentation..."
90 insinto /usr/share/doc/${PF}
91 doins $(find doc -name \*.pdf)
92 fi
93
94 if use emacs || use xemacs; then
95 cd emacs
96 exeinto /usr/bin
97 doexe octave-tags || die "Failed to install octave-tags"
98 doman octave-tags.1 || die "Failed to install octave-tags.1"
99 if use xemacs; then
100 xemacs-elisp-install ${PN} *.el *.elc
101 fi
102 cd ..
103 fi
104
105 echo "LDPATH=/usr/$(get_libdir)/octave-${PV}" > 99octave
106 doenvd 99octave || die
107
108 # Fixes ls-R files to remove /var/tmp/portage references.
109 sed -i \
110 -e "s:${D}::g" \
111 "${D}"/usr/*/${PN}/ls-R \
112 || die "Failed to fix ls-R files."
113 }

  ViewVC Help
Powered by ViewVC 1.1.20