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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Jun 4 19:54:52 2005 UTC (9 years, 1 month ago) by ribosome
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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.36-r1.ebuild,v 1.2 2004/12/29 02:31:38 ribosome Exp $
4
5 inherit flag-o-matic eutils
6
7 IUSE="tetex"
8
9 DESCRIPTION="GNU Octave is a high-level language (MatLab compatible) intended for numerical computations"
10 HOMEPAGE="http://www.octave.org/"
11 SRC_URI="ftp://ftp.octave.org/pub/octave/bleeding-edge/${P}.tar.bz2"
12
13 SLOT="0"
14 LICENSE="GPL-2"
15 KEYWORDS="x86 ppc"
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 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_unpack() {
30 unpack ${A}
31 cd ${WORKDIR}
32 epatch ${FILESDIR}/filebuf.diff
33
34 }
35
36 src_compile() {
37
38 filter-flags -ffast-math
39
40 # NOTE: This version actually works with gcc-3.x
41 ./configure --prefix=/usr \
42 --sysconfdir=/etc \
43 --localstatedir=/var/state/octave \
44 --infodir=/usr/share/info \
45 --mandir=/usr/share/man \
46 --host=${CHOST} \
47 --build=${CHOST} \
48 --target=${CHOST} \
49 --enable-dl \
50 --enable-shared \
51 --enable-rpath \
52 --enable-lite-kernel || die "configure failed"
53
54 epatch ${FILESDIR}/kill-dvips.diff
55 emake || die "emake failed"
56 }
57
58 src_install() {
59 make \
60 prefix=${D}/usr \
61 mandir=${D}/usr/share/man \
62 infodir=${D}/usr/share/info \
63 install || die "make install failed"
64 use tetex && octave-install-doc
65 }
66
67 octave-install-doc() {
68 echo "Installing documentation..."
69 insinto /usr/share/doc/${PF}
70 doins doc/faq/Octave-FAQ.dvi
71 doins doc/interpreter/octave.dvi
72 doins doc/liboctave/liboctave.dvi
73 doins doc/refcard/refcard-a4.dvi
74 doins doc/refcard/refcard-legal.dvi
75 doins doc/refcard/refcard-letter.dvi
76 }

  ViewVC Help
Powered by ViewVC 1.1.20