Gentoo Archives: gentoo-commits

From: "Mark Wright (gienah)" <gienah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-mathematics/octave: metadata.xml octave-3.8.1_rc4-r1.ebuild ChangeLog octave-3.8.1_rc3.ebuild
Date: Sat, 01 Mar 2014 15:17:42
Message-Id: 20140301151735.EED512004C@flycatcher.gentoo.org
1 gienah 14/03/01 15:17:35
2
3 Modified: metadata.xml ChangeLog
4 Added: octave-3.8.1_rc4-r1.ebuild
5 Removed: octave-3.8.1_rc3.ebuild
6 Log:
7 Thanks to David Kredba for reporting, add gui USE flag to add x11-libs/qscintilla dependency. Remove 3.8.1-rc3 at it is obsoleted by 3.8.1-rc4.
8
9 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 618E971F)
10
11 Revision Changes Path
12 1.10 sci-mathematics/octave/metadata.xml
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/octave/metadata.xml?rev=1.10&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/octave/metadata.xml?rev=1.10&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/octave/metadata.xml?r1=1.9&r2=1.10
17
18 Index: metadata.xml
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/octave/metadata.xml,v
21 retrieving revision 1.9
22 retrieving revision 1.10
23 diff -u -r1.9 -r1.10
24 --- metadata.xml 19 Feb 2014 00:52:33 -0000 1.9
25 +++ metadata.xml 1 Mar 2014 15:17:35 -0000 1.10
26 @@ -11,6 +11,7 @@
27 </longdescription>
28 <use>
29 <flag name="glpk">Add support for <pkg>sci-libs/glpk</pkg> for linear programming</flag>
30 + <flag name="gui">Enable the graphical user interface</flag>
31 <flag name="jit">(EXPERIMENTAL) enable JIT compiler</flag>
32 <flag name="qhull">Add support for <pkg>sci-libs/qhull</pkg>, to allow `delaunay', `convhull', and related functions</flag>
33 <flag name="qrupdate">Add support for <pkg>sci-libs/qrupdate</pkg>for QR and Cholesky update functions</flag>
34
35
36
37 1.159 sci-mathematics/octave/ChangeLog
38
39 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/octave/ChangeLog?rev=1.159&view=markup
40 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/octave/ChangeLog?rev=1.159&content-type=text/plain
41 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/octave/ChangeLog?r1=1.158&r2=1.159
42
43 Index: ChangeLog
44 ===================================================================
45 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/octave/ChangeLog,v
46 retrieving revision 1.158
47 retrieving revision 1.159
48 diff -u -r1.158 -r1.159
49 --- ChangeLog 1 Mar 2014 02:46:54 -0000 1.158
50 +++ ChangeLog 1 Mar 2014 15:17:35 -0000 1.159
51 @@ -1,6 +1,14 @@
52 # ChangeLog for sci-mathematics/octave
53 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
54 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/ChangeLog,v 1.158 2014/03/01 02:46:54 gienah Exp $
55 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/ChangeLog,v 1.159 2014/03/01 15:17:35 gienah Exp $
56 +
57 +*octave-3.8.1_rc4-r1 (01 Mar 2014)
58 +
59 + 01 Mar 2014; Mark Wright <gienah@g.o> +octave-3.8.1_rc4-r1.ebuild,
60 + -octave-3.8.1_rc3.ebuild, metadata.xml:
61 + Thanks to David Kredba for reporting, add gui USE flag to add
62 + x11-libs/qscintilla dependency. Remove 3.8.1-rc3 at it is obsoleted by
63 + 3.8.1-rc4.
64
65 *octave-3.8.1_rc4 (01 Mar 2014)
66
67
68
69
70 1.1 sci-mathematics/octave/octave-3.8.1_rc4-r1.ebuild
71
72 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/octave/octave-3.8.1_rc4-r1.ebuild?rev=1.1&view=markup
73 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/octave/octave-3.8.1_rc4-r1.ebuild?rev=1.1&content-type=text/plain
74
75 Index: octave-3.8.1_rc4-r1.ebuild
76 ===================================================================
77 # Copyright 1999-2014 Gentoo Foundation
78 # Distributed under the terms of the GNU General Public License v2
79 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-3.8.1_rc4-r1.ebuild,v 1.1 2014/03/01 15:17:35 gienah Exp $
80
81 EAPI=5
82
83 AUTOTOOLS_AUTORECONF=1
84 AUTOTOOLS_IN_SOURCE_BUILD=1
85
86 inherit autotools-utils multilib toolchain-funcs fortran-2 flag-o-matic java-pkg-opt-2 pax-utils
87
88 MY_PV="${PV/_/-}"
89 MY_P="${PN}-${MY_PV}"
90
91 DESCRIPTION="High-level interactive language for numerical computations"
92 LICENSE="GPL-3"
93 HOMEPAGE="http://www.octave.org/"
94 SRC_URI="mirror://gnu-alpha/octave/${MY_P}.tar.gz"
95
96 SLOT="0/${PV}"
97 IUSE="curl doc fftw +glpk gnuplot gui hdf5 +imagemagick java jit opengl postscript
98 +qhull +qrupdate readline +sparse static-libs X zlib"
99 KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
100
101 RDEPEND="
102 app-text/ghostscript-gpl
103 dev-libs/libpcre
104 sys-libs/ncurses
105 jit? ( !hppa? ( sys-devel/llvm ) )
106 virtual/lapack
107 curl? ( net-misc/curl )
108 fftw? ( sci-libs/fftw:3.0 )
109 glpk? ( sci-mathematics/glpk )
110 gnuplot? ( sci-visualization/gnuplot )
111 gui? ( !hppa? ( !arm? ( x11-libs/qscintilla ) ) )
112 hdf5? ( sci-libs/hdf5 )
113 imagemagick? ( || (
114 media-gfx/graphicsmagick[cxx]
115 media-gfx/imagemagick[cxx] ) )
116 opengl? (
117 media-libs/freetype:2
118 media-libs/fontconfig
119 >=x11-libs/fltk-1.3:1[opengl]
120 !hppa? ( x11-libs/gl2ps )
121 virtual/glu )
122 postscript? (
123 app-text/epstool
124 media-gfx/pstoedit
125 media-gfx/transfig )
126 qhull? ( media-libs/qhull )
127 qrupdate? ( sci-libs/qrupdate )
128 readline? ( sys-libs/readline )
129 sparse? (
130 sci-libs/arpack
131 sci-libs/camd
132 sci-libs/ccolamd
133 sci-libs/cholmod
134 sci-libs/colamd
135 sci-libs/cxsparse
136 sci-libs/umfpack )
137 X? ( x11-libs/libX11 )
138 zlib? ( sys-libs/zlib )"
139
140 DEPEND="${RDEPEND}
141 qrupdate? ( app-misc/pax-utils )
142 sparse? ( app-misc/pax-utils )
143 doc? (
144 virtual/latex-base
145 dev-texlive/texlive-genericrecommended
146 dev-texlive/texlive-metapost
147 sys-apps/texinfo )
148 dev-util/gperf
149 virtual/pkgconfig"
150
151 PATCHES=(
152 "${FILESDIR}"/${PN}-3.8.0-pkgbuilddir.patch
153 "${FILESDIR}"/${PN}-3.4.3-texi.patch
154 "${FILESDIR}"/${PN}-3.8.0-imagemagick-configure.patch
155 "${FILESDIR}"/${PN}-3.8.0-imagemagick.patch
156 "${FILESDIR}"/${PN}-3.8.0-llvm-configure.patch
157 "${FILESDIR}"/${PN}-3.8.0-disable-getcwd-path-max-test-as-it-is-too-slow.patch
158 )
159
160 S="${WORKDIR}/${MY_P}"
161
162 pkg_pretend() {
163 if use qrupdate || use sparse; then
164 local blaslib=$($(tc-getPKG_CONFIG) --libs-only-l blas | sed -e 's@-l\([^ \t]*\)@lib\1@' | cut -d' ' -f 1)
165 einfo "Checking dependencies are built with the same blas lib = ${blaslib}"
166 local usr_lib="${ROOT}usr/$(get_libdir)"
167 local libs=( )
168 use qrupdate && libs+=( "${usr_lib}"/libqrupdate.so )
169 use sparse && libs+=(
170 "${usr_lib}"/libarpack.so
171 "${usr_lib}"/libcholmod.so
172 "${usr_lib}"/libspqr.so
173 "${usr_lib}"/libumfpack.so
174 )
175 for i in ${libs[*]}
176 do
177 # Is it not linked with the current blas? This check is not enough though, as
178 # earlier versions of sci-libs/cholmod were not linked with blas, while as later
179 # versions are if built with the lapack use flag.
180 scanelf -n ${i} | grep -q "${blaslib}"
181 if [[ $? -ne 0 ]]; then
182 # Does it appear to be linked with some blas or lapack library?
183 scanelf -n ${i} | egrep -q "blas|lapack"
184 if [[ $? -eq 0 ]]; then
185 eerror "*******************************************************************************"
186 eerror "${i} must be rebuilt with ${blaslib}"
187 eerror ""
188 eerror "To check the libaries ${i} is currently built with:"
189 eerror ""
190 eerror "scanelf -n ${i}"
191 eerror ""
192 eerror "To find the package that needs to be rebuilt:"
193 eerror ""
194 eerror "equery belongs ${i}"
195 eerror "*******************************************************************************"
196 die
197 fi
198 fi
199 done
200 fi
201 }
202
203 src_prepare() {
204 # nasty prefix hack for fltk:1 linking
205 if use prefix && use opengl; then
206 sed -i \
207 -e "s:ldflags\`:ldflags\` -Wl,-rpath,${EPREFIX}/usr/$(get_libdir)/fltk-1:" \
208 configure.ac
209 fi
210 if has_version ">=sys-devel/llvm-3.4"; then
211 epatch "${FILESDIR}"/${PN}-3.8.0-llvm-3.4.patch
212 fi
213 if use hppa && use opengl; then
214 ewarn "http://www.gnu.org/software/octave/NEWS-3.8.html says Printing or saving figures"
215 ewarn "with OpenGL graphics requires the gl2ps - but at the time of writing x11-libs/gl2ps"
216 ewarn "does not have the hppa keyword"
217 fi
218 # Fix bug 501756 - sci-mathematics/octave-3.8.0 LC_ALL=et_EE - octave.cc:485:56:
219 # error: 'Fallow_noninteger_range_as_index' was not declared in this scope
220 sed -e 's@A-Za-z0-9@[:alnum:]@g' \
221 -e 's@A-Za-z@[:alpha:]@g' \
222 -i "${S}/libinterp/mkbuiltins" \
223 || die "Could not patch ${S}/libinterp/mkbuiltins for some non-English locales"
224 autotools-utils_src_prepare
225 }
226
227 src_configure() {
228 # occasional fail on install, force regeneration (bug #401189)
229 rm doc/interpreter/contributors.texi || die
230
231 # unfortunate dependency on mpi from hdf5 (bug #302621)
232 use hdf5 && has_version sci-libs/hdf5[mpi] && \
233 export CXX=mpicxx CC=mpicc FC=mpif77 F77=mpif77
234
235 local myeconfargs=(
236 --localstatedir="${EPREFIX}/var/state/octave"
237 --with-blas="$($(tc-getPKG_CONFIG) --libs blas)"
238 --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)"
239 $(use_enable doc docs)
240 $(use_enable java)
241 $(use_enable gui gui)
242 $(use_enable jit)
243 $(use_enable readline)
244 $(use_with curl)
245 $(use_with fftw fftw3)
246 $(use_with fftw fftw3f)
247 $(use_enable fftw fftw-threads)
248 $(use_with glpk)
249 $(use_with hdf5)
250 $(use_with opengl)
251 $(use_with qhull)
252 $(use_with qrupdate)
253 $(use_with sparse arpack)
254 $(use_with sparse umfpack)
255 $(use_with sparse colamd)
256 $(use_with sparse ccolamd)
257 $(use_with sparse cholmod)
258 $(use_with sparse cxsparse)
259 $(use_with X x)
260 $(use_with zlib z)
261 )
262 if use imagemagick; then
263 if has_version media-gfx/graphicsmagick[cxx]; then
264 myeconfargs+=( "--with-magick=GraphicsMagick" )
265 else
266 myeconfargs+=( "--with-magick=ImageMagick" )
267 fi
268 else
269 myeconfargs+=( "--without-magick" )
270 fi
271 autotools-utils_src_configure
272 }
273
274 src_compile() {
275 emake
276 if use java || use jit ; then
277 pax-mark m "${S}/src/.libs/octave-cli"
278 fi
279 }
280
281 src_install() {
282 autotools-utils_src_install
283 use doc && dodoc $(find doc -name \*.pdf)
284 [[ -e test/fntests.log ]] && dodoc test/fntests.log
285 use java && java-pkg_regjar "${ED}/usr/share/${PN}/${MY_PV}/m/java/octave.jar"
286 echo "LDPATH=${EROOT}usr/$(get_libdir)/${PN}/${MY_PV}" > 99octave
287 doenvd 99octave
288 }