Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-mathematics/octave: octave-3.2.4-r3.ebuild ChangeLog
Date: Sun, 03 Oct 2010 23:45:08
Message-Id: 20101003234504.2EC9B20054@flycatcher.gentoo.org
1 bicatali 10/10/03 23:45:04
2
3 Modified: ChangeLog
4 Added: octave-3.2.4-r3.ebuild
5 Log:
6 Added a few patches from upstream and debian. Should pass tests now.
7
8 (Portage version: 2.2_rc88/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.97 sci-mathematics/octave/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/octave/ChangeLog?rev=1.97&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/octave/ChangeLog?rev=1.97&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/octave/ChangeLog?r1=1.96&r2=1.97
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/octave/ChangeLog,v
20 retrieving revision 1.96
21 retrieving revision 1.97
22 diff -u -r1.96 -r1.97
23 --- ChangeLog 14 Sep 2010 16:45:35 -0000 1.96
24 +++ ChangeLog 3 Oct 2010 23:45:04 -0000 1.97
25 @@ -1,6 +1,16 @@
26 # ChangeLog for sci-mathematics/octave
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/ChangeLog,v 1.96 2010/09/14 16:45:35 bicatali Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/ChangeLog,v 1.97 2010/10/03 23:45:04 bicatali Exp $
30 +
31 +*octave-3.2.4-r3 (03 Oct 2010)
32 +
33 + 03 Oct 2010; S├ębastien Fabbro <bicatali@g.o>
34 + +octave-3.2.4-r3.ebuild, +files/octave-3.2.4-addpath.patch,
35 + +files/octave-3.2.4-filter-empty-vector.patch,
36 + +files/octave-3.2.4-imshow.patch, +files/octave-3.2.4-interp2.patch,
37 + +files/octave-3.2.4-no-helvetica.patch,
38 + +files/octave-3.2.4-normal-marker-size.patch:
39 + Added a few patches from upstream and debian. Should pass tests now.
40
41 *octave-3.2.4-r2 (14 Sep 2010)
42
43
44
45
46 1.1 sci-mathematics/octave/octave-3.2.4-r3.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/octave/octave-3.2.4-r3.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/octave/octave-3.2.4-r3.ebuild?rev=1.1&content-type=text/plain
50
51 Index: octave-3.2.4-r3.ebuild
52 ===================================================================
53 # Copyright 1999-2010 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-3.2.4-r3.ebuild,v 1.1 2010/10/03 23:45:04 bicatali Exp $
56
57 EAPI="2"
58 inherit flag-o-matic xemacs-elisp-common autotools
59
60 DESCRIPTION="High-level interactive language for numerical computations"
61 LICENSE="GPL-3"
62 HOMEPAGE="http://www.octave.org/"
63 SRC_URI="ftp://ftp.gnu.org/pub/gnu/${PN}/${P}.tar.bz2"
64
65 SLOT="0"
66 IUSE="curl doc emacs fltk fftw opengl readline sparse test xemacs zlib"
67 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
68
69 RDEPEND="dev-libs/libpcre
70 media-gfx/graphicsmagick[cxx]
71 media-libs/qhull
72 sci-libs/qrupdate
73 sci-mathematics/glpk
74 sci-visualization/gnuplot
75 sys-libs/ncurses
76 virtual/lapack
77 x11-libs/libX11
78 curl? ( net-misc/curl )
79 fltk? ( x11-libs/fltk:1.1[opengl?] )
80 fftw? ( sci-libs/fftw:3.0 )
81 opengl? ( virtual/opengl media-libs/ftgl )
82 sparse? ( sci-libs/arpack
83 sci-libs/camd
84 sci-libs/ccolamd
85 sci-libs/cholmod
86 sci-libs/colamd
87 sci-libs/cxsparse
88 sci-libs/umfpack )
89 xemacs? ( app-editors/xemacs )
90 zlib? ( sys-libs/zlib )
91 !sci-mathematics/octave-forge"
92
93 DEPEND="${RDEPEND}
94 virtual/latex-base
95 sys-apps/texinfo
96 || ( dev-texlive/texlive-genericrecommended
97 app-text/ptex )
98 dev-util/gperf
99 dev-util/pkgconfig"
100
101 src_prepare() {
102 epatch "${FILESDIR}"/${PN}-3.2.0_parallel_make.patch
103 epatch "${FILESDIR}"/${PN}-3.2.0_as_needed.patch
104 epatch "${FILESDIR}"/${PN}-3.2.4-imread.patch
105 epatch "${FILESDIR}"/${PN}-3.2.4-ldflags.patch
106 epatch "${FILESDIR}"/${PN}-3.2.4-fltk-magic.patch
107 epatch "${FILESDIR}"/${PN}-3.2.4-dlmread-speedup.patch
108 epatch "${FILESDIR}"/${PN}-3.2.4-addpath.patch
109 epatch "${FILESDIR}"/${PN}-3.2.4-filter-empty-vector.patch
110 epatch "${FILESDIR}"/${PN}-3.2.4-imshow.patch
111 epatch "${FILESDIR}"/${PN}-3.2.4-interp2.patch
112 epatch "${FILESDIR}"/${PN}-3.2.4-no-helvetica.patch
113 epatch "${FILESDIR}"/${PN}-3.2.4-normal-marker-size.patch
114 eautoreconf
115 }
116
117 src_configure() {
118 # hdf5 disabled because not really useful (bug #299876)
119 econf \
120 --localstatedir=/var/state/octave \
121 --enable-shared \
122 --without-hdf5 \
123 --with-qrupdate \
124 --with-blas="$(pkg-config --libs blas)" \
125 --with-lapack="$(pkg-config --libs lapack)" \
126 $(use_enable readline) \
127 $(use_with curl) \
128 $(use_with fftw) \
129 $(use_with fltk) \
130 $(use_with opengl framework-opengl) \
131 $(use_with sparse arpack) \
132 $(use_with sparse umfpack) \
133 $(use_with sparse colamd) \
134 $(use_with sparse ccolamd) \
135 $(use_with sparse cholmod) \
136 $(use_with sparse cxsparse) \
137 $(use_with zlib)
138 }
139
140 src_compile() {
141 emake || die "emake failed"
142 if use xemacs; then
143 cd "${S}/emacs"
144 xemacs-elisp-comp *.el
145 fi
146 }
147
148 src_install() {
149 emake install DESTDIR="${D}" || die "emake install failed"
150
151 if use doc; then
152 einfo "Installing documentation..."
153 insinto /usr/share/doc/${PF}
154 doins $(find doc -name \*.pdf)
155 fi
156
157 if use emacs || use xemacs; then
158 cd emacs
159 exeinto /usr/bin
160 doexe octave-tags || die "Failed to install octave-tags"
161 doman octave-tags.1 || die "Failed to install octave-tags.1"
162 if use xemacs; then
163 xemacs-elisp-install ${PN} *.el *.elc
164 fi
165 cd ..
166 fi
167 use test && dodoc test/fntests.log
168 echo "LDPATH=/usr/$(get_libdir)/octave-${PV}" > 99octave
169 doenvd 99octave || die
170 }