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

Contents of /app-sci/octave/octave-2.1.57-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Tue Dec 28 14:46:59 2004 UTC (15 years ago) by ribosome
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Moving to sci-mathematics/octave

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-sci/octave/octave-2.1.57-r1.ebuild,v 1.11 2004/12/19 10:46:13 kloeri 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="emacs static readline zlib tetex hdf5 mpi ifc blas"
16
17 DEPEND="virtual/libc
18 >=sys-libs/ncurses-5.2-r3
19 >=media-gfx/gnuplot-3.7.1-r3
20 >=dev-libs/fftw-2.1.3
21 >=dev-util/gperf-2.7.2
22 zlib? ( sys-libs/zlib )
23 hdf5? ( dev-libs/hdf5 )
24 tetex? ( virtual/tetex )
25 x86? ( ifc? ( dev-lang/ifc ) )
26 blas? ( virtual/blas )"
27
28 # NOTE: octave supports blas/lapack from intel but this is not open
29 # source nor is it free (as in beer OR speech) Check out...
30 # http://developer.intel.com/software/products/mkl/mkl52/index.htm for
31 # more information
32
33 pkg_setup() {
34 use ifc || if [ -z `which g77` ]; then
35 #if ifc is defined then the dep was already checked
36 eerror "No fortran compiler found on the system!"
37 eerror "Please add f77 to your USE flags and reemerge gcc!"
38 die
39 fi
40 }
41
42 src_compile() {
43 filter-flags -ffast-math
44
45 local myconf
46
47 use static || myconf="--disable-static --enable-shared --enable-dl"
48 use readline || myconf="${myconf} --disable-readline"
49 use hdf5 || myconf="${myconf} --without-hdf5"
50 use mpi || myconf="${myconf} --without-mpi"
51
52 # Only add -lz to LDFLAGS if we have zlib in USE !
53 # BUG #52604
54 # Danny van Dyk 2004/08/26
55 use zlib && LDFLAGS="${LDFLAGS} -lz"
56
57 # NOTE: This version actually works with gcc-3.x
58 ./configure ${myconf} --prefix=/usr \
59 --sysconfdir=/etc \
60 --localstatedir=/var/state/octave \
61 --infodir=/usr/share/info \
62 --mandir=/usr/share/man \
63 --host=${CHOST} \
64 --build=${CHOST} \
65 --target=${CHOST} \
66 --enable-rpath \
67 --enable-lite-kernel \
68 LDFLAGS="${LDFLAGS}" || die "configure failed"
69
70 emake || die "emake failed"
71 }
72
73 src_install() {
74 make \
75 prefix=${D}/usr \
76 mandir=${D}/usr/share/man \
77 infodir=${D}/usr/share/info \
78 install || die "make install failed"
79 use tetex && octave-install-doc
80 if use emacs; then
81 cd emacs
82 exeinto /usr/bin
83 doexe otags
84 doman otags.1
85 for emacsdir in /usr/share/emacs/site-lisp /usr/lib/xemacs/site-lisp; do
86 insinto ${emacsdir}
87 doins *.el
88 done
89 cd ..
90 fi
91 }
92
93 octave-install-doc() {
94 echo "Installing documentation..."
95 insinto /usr/share/doc/${PF}
96 doins doc/faq/Octave-FAQ.dvi
97 doins doc/interpreter/octave.dvi
98 doins doc/liboctave/liboctave.dvi
99 doins doc/refcard/refcard-a4.dvi
100 doins doc/refcard/refcard-legal.dvi
101 doins doc/refcard/refcard-letter.dvi
102 }

  ViewVC Help
Powered by ViewVC 1.1.20