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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Jun 4 19:54:52 2005 UTC (9 years, 5 months ago) by ribosome
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Removed obsolete versions. Fixed header.
(Portage version: 2.0.51.19)

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-2.1.57.ebuild,v 1.3 2004/12/29 02:31:38 ribosome Exp $
4
5 inherit flag-o-matic
6
7 DESCRIPTION="GNU Octave is a high-level language (MatLab compatible) intended for numerical computations"
8 HOMEPAGE="http://www.octave.org/"
9 SRC_URI="ftp://ftp.octave.org/pub/octave/bleeding-edge/${P}.tar.bz2
10 ftp://ftp.math.uni-hamburg.de/pub/soft/math/octave/${P}.tar.bz2"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~x86 ~ppc alpha ~sparc ~amd64"
15 IUSE="static readline zlib tetex hdf5 mpi"
16
17 DEPEND="virtual/libc
18 >=sys-libs/ncurses-5.2-r3
19 >=media-gfx/gnuplot-3.7.1-r3
20 >=sci-libs/fftw-2.1.3
21 >=dev-util/gperf-2.7.2
22 zlib? ( sys-libs/zlib )
23 hdf5? ( sci-libs/hdf5 )
24 tetex? ( virtual/tetex )"
25
26 # NOTE: octave supports blas/lapack from intel but this is not open
27 # source nor is it free (as in beer OR speech) Check out...
28 # http://developer.intel.com/software/products/mkl/mkl52/index.htm for
29 # more information
30
31 src_compile() {
32 filter-flags -ffast-math
33
34 local myconf
35
36 use static || myconf="--disable-static --enable-shared --enable-dl"
37 use readline || myconf="${myconf} --disable-readline"
38 use hdf5 || myconf="${myconf} --without-hdf5"
39 use mpi || myconf="${myconf} --without-mpi"
40
41 # NOTE: This version actually works with gcc-3.x
42 ./configure ${myconf} --prefix=/usr \
43 --sysconfdir=/etc \
44 --localstatedir=/var/state/octave \
45 --infodir=/usr/share/info \
46 --mandir=/usr/share/man \
47 --host=${CHOST} \
48 --build=${CHOST} \
49 --target=${CHOST} \
50 --enable-rpath \
51 --enable-lite-kernel \
52 LDFLAGS=-lz || die "configure failed"
53
54 emake || die "emake failed"
55 }
56
57 src_install() {
58 make \
59 prefix=${D}/usr \
60 mandir=${D}/usr/share/man \
61 infodir=${D}/usr/share/info \
62 install || die "make install failed"
63 use tetex && octave-install-doc
64 }
65
66 octave-install-doc() {
67 echo "Installing documentation..."
68 insinto /usr/share/doc/${PF}
69 doins doc/faq/Octave-FAQ.dvi
70 doins doc/interpreter/octave.dvi
71 doins doc/liboctave/liboctave.dvi
72 doins doc/refcard/refcard-a4.dvi
73 doins doc/refcard/refcard-legal.dvi
74 doins doc/refcard/refcard-letter.dvi
75 }

  ViewVC Help
Powered by ViewVC 1.1.20