Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 264757 | Differences between
and this patch

Collapse All | Expand All

(-)octave-3.0.3.ebuild (-21 / +20 lines)
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.8 2009/06/21 18:47:58 graaff 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"
13
IUSE="emacs readline zlib doc hdf5 curl fftw xemacs sparse"
15
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
14
KEYWORDS="alpha amd64 ~hppa ~ppc ~ppc64 sparc x86"
16
IUSE="emacs readline zlib doc hdf5 curl fftw fltk xemacs sparse"
15
17
16
RDEPEND="virtual/lapack
18
RDEPEND="virtual/lapack
17
	dev-libs/libpcre
19
	dev-libs/libpcre
Lines 19-35 Link Here
19
	sci-visualization/gnuplot
21
	sci-visualization/gnuplot
20
	>=sci-mathematics/glpk-4.15
22
	>=sci-mathematics/glpk-4.15
21
	media-libs/qhull
23
	media-libs/qhull
24
	curl? ( net-misc/curl )
22
	fftw? ( >=sci-libs/fftw-3.1.2 )
25
	fftw? ( >=sci-libs/fftw-3.1.2 )
23
	zlib? ( sys-libs/zlib )
26
	fltk? ( x11-libs/fltk[opengl] )
24
	hdf5? ( sci-libs/hdf5 )
27
	hdf5? ( sci-libs/hdf5 )
25
	curl? ( net-misc/curl )
26
	xemacs? ( app-editors/xemacs )
27
	sparse? ( sci-libs/umfpack
28
	sparse? ( sci-libs/umfpack
28
		sci-libs/colamd
29
		sci-libs/arpack
29
		sci-libs/camd
30
		sci-libs/camd
30
		sci-libs/ccolamd
31
		sci-libs/ccolamd
31
		sci-libs/cholmod
32
		sci-libs/cholmod
33
		sci-libs/colamd
32
		sci-libs/cxsparse )
34
		sci-libs/cxsparse )
35
	xemacs? ( app-editors/xemacs )
36
	zlib? ( sys-libs/zlib )
33
	!sci-mathematics/octave-forge"
37
	!sci-mathematics/octave-forge"
34
38
35
DEPEND="${RDEPEND}
39
DEPEND="${RDEPEND}
Lines 42-57 Link Here
42
46
43
FORTRAN="gfortran ifc g77 f2c"
47
FORTRAN="gfortran ifc g77 f2c"
44
48
45
src_unpack() {
49
src_prepare() {
46
	unpack ${A}
47
	cd "${S}"
48
	epatch "${FILESDIR}"/${PN}-3.0.0-pkg.patch
50
	epatch "${FILESDIR}"/${PN}-3.0.0-pkg.patch
49
	epatch "${FILESDIR}"/${P}-test-fix.patch
51
	epatch "${FILESDIR}"/${P}-test-fix.patch
50
	epatch "${FILESDIR}"/${PN}-3.0.1-fix_handle_for_plotyy.patch
52
	epatch "${FILESDIR}"/${P}-no_helvetica.patch
51
	epatch "${FILESDIR}"/${PN}-3.0.1-no_helvetica.patch
52
}
53
}
53
54
54
src_compile() {
55
src_configure() {
55
	econf \
56
	econf \
56
		--localstatedir=/var/state/octave \
57
		--localstatedir=/var/state/octave \
57
		--enable-shared \
58
		--enable-shared \
Lines 60-73 Link Here
60
		$(use_with hdf5) \
61
		$(use_with hdf5) \
61
		$(use_with curl) \
62
		$(use_with curl) \
62
		$(use_with zlib) \
63
		$(use_with zlib) \
64
		$(use_with fltk) \
63
		$(use_with fftw) \
65
		$(use_with fftw) \
66
		$(use_with sparse arpack) \
64
		$(use_with sparse umfpack) \
67
		$(use_with sparse umfpack) \
65
		$(use_with sparse colamd) \
68
		$(use_with sparse colamd) \
66
		$(use_with sparse ccolamd) \
69
		$(use_with sparse ccolamd) \
67
		$(use_with sparse cholmod) \
70
		$(use_with sparse cholmod) \
68
		$(use_with sparse cxsparse) \
71
		$(use_with sparse cxsparse) \
69
		$(use_enable readline)
72
		$(use_enable readline)
73
}
70
74
75
src_compile() {
71
	emake || die "emake failed"
76
	emake || die "emake failed"
72
77
73
	if use xemacs; then
78
	if use xemacs; then
Lines 98-107 Link Here
98
103
99
	echo "LDPATH=/usr/$(get_libdir)/octave-${PV}" > 99octave
104
	echo "LDPATH=/usr/$(get_libdir)/octave-${PV}" > 99octave
100
	doenvd 99octave || die
105
	doenvd 99octave || die
101
102
	# Fixes ls-R files to remove /var/tmp/portage references.
103
	sed -i \
104
		-e "s:${D}::g" \
105
		"${D}"/usr/*/${PN}/ls-R \
106
		|| die "Failed to fix ls-R files."
107
}
106
}

Return to bug 264757