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