Lines 1-17
Link Here
|
1 |
# Copyright 1999-2009 Gentoo Foundation |
1 |
# Copyright 1999-2009 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-3.0.3.ebuild,v 1.6 2009/04/20 20:01:36 maekke Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
inherit flag-o-matic fortran xemacs-elisp-common |
5 |
EAPI="2" |
|
|
6 |
|
7 |
inherit fortran xemacs-elisp-common |
6 |
|
8 |
|
7 |
DESCRIPTION="High-level interactive language for numerical computations" |
9 |
DESCRIPTION="High-level interactive language for numerical computations" |
8 |
LICENSE="GPL-3" |
|
|
9 |
HOMEPAGE="http://www.octave.org/" |
10 |
HOMEPAGE="http://www.octave.org/" |
10 |
SRC_URI="ftp://ftp.gnu.org/pub/gnu/${PN}/${P}.tar.bz2" |
11 |
SRC_URI="ftp://ftp.gnu.org/pub/gnu/${PN}/${P}.tar.bz2" |
11 |
|
12 |
|
|
|
13 |
LICENSE="GPL-3" |
12 |
SLOT="0" |
14 |
SLOT="0" |
|
|
15 |
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
13 |
IUSE="emacs readline zlib doc hdf5 curl fftw xemacs sparse" |
16 |
IUSE="emacs readline zlib doc hdf5 curl fftw xemacs sparse" |
14 |
KEYWORDS="alpha amd64 ~hppa ~ppc ~ppc64 sparc x86" |
|
|
15 |
|
17 |
|
16 |
RDEPEND="virtual/lapack |
18 |
RDEPEND="virtual/lapack |
17 |
dev-libs/libpcre |
19 |
dev-libs/libpcre |
Lines 43-58
Link Here
|
43 |
|
45 |
|
44 |
FORTRAN="gfortran ifc g77 f2c" |
46 |
FORTRAN="gfortran ifc g77 f2c" |
45 |
|
47 |
|
46 |
src_unpack() { |
48 |
src_prepare() { |
47 |
unpack ${A} |
|
|
48 |
cd "${S}" |
49 |
epatch "${FILESDIR}"/${PN}-3.0.0-pkg.patch |
49 |
epatch "${FILESDIR}"/${PN}-3.0.0-pkg.patch |
50 |
epatch "${FILESDIR}"/${P}-test-fix.patch |
50 |
epatch "${FILESDIR}"/${PN}-3.0.3-test-fix.patch |
51 |
epatch "${FILESDIR}"/${PN}-3.0.1-fix_handle_for_plotyy.patch |
51 |
epatch "${FILESDIR}"/${PN}-3.0.1-fix_handle_for_plotyy.patch |
52 |
epatch "${FILESDIR}"/${PN}-3.0.1-no_helvetica.patch |
52 |
epatch "${FILESDIR}"/${PN}-3.0.1-no_helvetica.patch |
53 |
} |
53 |
} |
54 |
|
54 |
|
55 |
src_compile() { |
55 |
src_configure() { |
56 |
econf \ |
56 |
econf \ |
57 |
--localstatedir=/var/state/octave \ |
57 |
--localstatedir=/var/state/octave \ |
58 |
--enable-shared \ |
58 |
--enable-shared \ |
Lines 68-74
Link Here
|
68 |
$(use_with sparse cholmod) \ |
68 |
$(use_with sparse cholmod) \ |
69 |
$(use_with sparse cxsparse) \ |
69 |
$(use_with sparse cxsparse) \ |
70 |
$(use_enable readline) |
70 |
$(use_enable readline) |
|
|
71 |
} |
71 |
|
72 |
|
|
|
73 |
src_compile() { |
72 |
emake || die "emake failed" |
74 |
emake || die "emake failed" |
73 |
|
75 |
|
74 |
if use xemacs; then |
76 |
if use xemacs; then |