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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Dec 28 14:46:59 2004 UTC (15 years ago) by ribosome
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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.64.ebuild,v 1.2 2004/12/15 13:10:35 phosphan 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 !=app-text/texi2html-1.70"
28
29 # NOTE: octave supports blas/lapack from intel but this is not open
30 # source nor is it free (as in beer OR speech) Check out...
31 # http://developer.intel.com/software/products/mkl/mkl52/index.htm for
32 # more information
33
34 pkg_setup() {
35 use ifc || if [ -z `which g77` ]; then
36 #if ifc is defined then the dep was already checked
37 eerror "No fortran compiler found on the system!"
38 eerror "Please add f77 to your USE flags and reemerge gcc!"
39 die
40 fi
41 }
42
43 src_compile() {
44 filter-flags -ffast-math
45
46 local myconf
47
48 use static || myconf="--disable-static --enable-shared --enable-dl"
49 use readline || myconf="${myconf} --disable-readline"
50 use hdf5 || myconf="${myconf} --without-hdf5"
51 use mpi || myconf="${myconf} --without-mpi"
52
53 # Only add -lz to LDFLAGS if we have zlib in USE !
54 # BUG #52604
55 # Danny van Dyk 2004/08/26
56 use zlib && LDFLAGS="${LDFLAGS} -lz"
57
58 # NOTE: This version actually works with gcc-3.x
59 ./configure ${myconf} --prefix=/usr \
60 --sysconfdir=/etc \
61 --localstatedir=/var/state/octave \
62 --infodir=/usr/share/info \
63 --mandir=/usr/share/man \
64 --host=${CHOST} \
65 --build=${CHOST} \
66 --target=${CHOST} \
67 --enable-rpath \
68 --enable-lite-kernel \
69 LDFLAGS="${LDFLAGS}" || die "configure failed"
70
71 emake || die "emake failed"
72 }
73
74 src_install() {
75 make \
76 prefix=${D}/usr \
77 mandir=${D}/usr/share/man \
78 infodir=${D}/usr/share/info \
79 install || die "make install failed"
80 use tetex && octave-install-doc
81 if use emacs; then
82 cd emacs
83 exeinto /usr/bin
84 doexe otags
85 doman otags.1
86 for emacsdir in /usr/share/emacs/site-lisp /usr/lib/xemacs/site-lisp; do
87 insinto ${emacsdir}
88 doins *.el
89 done
90 cd ..
91 fi
92 }
93
94 octave-install-doc() {
95 echo "Installing documentation..."
96 insinto /usr/share/doc/${PF}
97 doins doc/faq/Octave-FAQ.dvi
98 doins doc/interpreter/octave.dvi
99 doins doc/liboctave/liboctave.dvi
100 doins doc/refcard/refcard-a4.dvi
101 doins doc/refcard/refcard-legal.dvi
102 doins doc/refcard/refcard-letter.dvi
103 }

  ViewVC Help
Powered by ViewVC 1.1.20