/[gentoo-x86]/app-sci/octave/octave-2.1.49.ebuild
Gentoo

Contents of /app-sci/octave/octave-2.1.49.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Apr 19 11:59:55 2004 UTC (15 years, 9 months ago) by phosphan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Cleanup, added IUSE.

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

  ViewVC Help
Powered by ViewVC 1.1.20