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-physics/root: ChangeLog root-5.32.01.ebuild
Date: Fri, 02 Mar 2012 05:34:11
Message-Id: 20120302053401.84C982004B@flycatcher.gentoo.org
1 bicatali 12/03/02 05:34:01
2
3 Modified: ChangeLog
4 Added: root-5.32.01.ebuild
5 Log:
6 Imported bump from the sci overlay
7
8 (Portage version: 2.1.10.44/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.93 sci-physics/root/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/ChangeLog?rev=1.93&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/ChangeLog?rev=1.93&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/ChangeLog?r1=1.92&r2=1.93
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v
20 retrieving revision 1.92
21 retrieving revision 1.93
22 diff -u -r1.92 -r1.93
23 --- ChangeLog 21 Jan 2012 19:23:26 -0000 1.92
24 +++ ChangeLog 2 Mar 2012 05:34:01 -0000 1.93
25 @@ -1,7 +1,24 @@
26 # ChangeLog for sci-physics/root
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.92 2012/01/21 19:23:26 bicatali Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.93 2012/03/02 05:34:01 bicatali Exp $
30
31 +*root-5.32.01 (02 Mar 2012)
32 +
33 + 02 Mar 2012; Sébastien Fabbro <bicatali@g.o> +root-5.32.01.ebuild,
34 + metadata.xml:
35 + Imported bump from the sci overlay
36 +
37 + 01 Mar 2012; Andrew Savchenko <bircoph@×××××.com> metadata.xml:
38 + Fix repoman warning.
39 +
40 + 01 Mar 2012; Andrew Savchenko <bircoph@×××××.com>
41 + +root-5.32.01.ebuild
42 + Version bump for patch release 5.32/01.
43 +
44 + 27 Feb 2012; Andrew Savchenko <bircoph@×××××.com>
45 + root-5.32.00-r1.ebuild:
46 + Fix build on non-english locales. find tool may become crazy on
47 + them, so force LANG=C LC_ALL=C for find only.
48
49 *root-5.32.00-r2 (21 Jan 2012)
50
51
52
53
54 1.1 sci-physics/root/root-5.32.01.ebuild
55
56 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/root-5.32.01.ebuild?rev=1.1&view=markup
57 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/root-5.32.01.ebuild?rev=1.1&content-type=text/plain
58
59 Index: root-5.32.01.ebuild
60 ===================================================================
61 # Copyright 1999-2012 Gentoo Foundation
62 # Distributed under the terms of the GNU General Public License v2
63 # $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.32.01.ebuild,v 1.1 2012/03/02 05:34:01 bicatali Exp $
64
65 EAPI=4
66 PYTHON_DEPEND="python? 2"
67 inherit versionator eutils fortran-2 elisp-common fdo-mime python toolchain-funcs flag-o-matic
68
69 #DOC_PV=$(get_major_version)_$(get_version_component_range 2)
70 DOC_PV=5_26
71 ROOFIT_DOC_PV=2.91-33
72 TMVA_DOC_PV=4.03
73 PATCH_PV=5.28.00b
74 PATCH_PV2=5.32.00
75
76 DESCRIPTION="C++ data analysis framework and interpreter from CERN"
77 HOMEPAGE="http://root.cern.ch/"
78 SRC_URI="ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz
79 doc? ( ftp://root.cern.ch/${PN}/doc/Users_Guide_${DOC_PV}.pdf
80 math? (
81 ftp://root.cern.ch/${PN}/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf
82 http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf ) )"
83
84 SLOT="0"
85 LICENSE="LGPL-2.1"
86 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
87 IUSE="+X afs avahi clarens doc emacs examples fits fftw graphviz kerberos ldap
88 llvm +math mpi mysql ncurses odbc +opengl openmp oracle postgres prefix
89 pythia6 pythia8 python +reflex ruby qt4 ssl xft xml xinetd xrootd"
90
91 CDEPEND="
92 app-arch/xz-utils
93 >=dev-lang/cfortran-4.4-r2
94 dev-libs/libpcre
95 media-libs/freetype
96 media-libs/giflib
97 media-libs/libpng:0
98 media-libs/tiff:0
99 sys-apps/shadow
100 sys-libs/zlib
101 virtual/jpeg
102 X? (
103 media-libs/ftgl
104 media-libs/glew
105 x11-libs/libX11
106 x11-libs/libXext
107 x11-libs/libXpm
108 || ( >=media-libs/libafterimage-1.20 >=x11-wm/afterstep-2.2.11 )
109 opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps )
110 qt4? (
111 x11-libs/qt-gui:4
112 x11-libs/qt-opengl:4
113 x11-libs/qt-qt3support:4
114 x11-libs/qt-svg:4
115 x11-libs/qt-webkit:4
116 x11-libs/qt-xmlpatterns:4 )
117 xft? ( x11-libs/libXft )
118 )
119 afs? ( net-fs/openafs )
120 avahi? ( net-dns/avahi )
121 clarens? ( dev-libs/xmlrpc-c[curl] )
122 emacs? ( virtual/emacs )
123 fits? ( sci-libs/cfitsio )
124 fftw? ( sci-libs/fftw:3.0 )
125 graphviz? ( media-gfx/graphviz )
126 kerberos? ( virtual/krb5 )
127 ldap? ( net-nds/openldap )
128 llvm? ( sys-devel/llvm )
129 math? ( sci-libs/gsl sci-mathematics/unuran mpi? ( virtual/mpi ) )
130 mysql? ( virtual/mysql )
131 ncurses? ( sys-libs/ncurses )
132 odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )
133 oracle? ( dev-db/oracle-instantclient-basic )
134 postgres? ( dev-db/postgresql-base )
135 pythia6? ( sci-physics/pythia:6 )
136 pythia8? ( sci-physics/pythia:8 )
137 ruby? (
138 dev-lang/ruby
139 dev-ruby/rubygems )
140 ssl? ( dev-libs/openssl )
141 xml? ( dev-libs/libxml2 )
142 xrootd? ( net-libs/xrootd )"
143
144 DEPEND="${CDEPEND}
145 dev-util/pkgconfig"
146
147 RDEPEND="
148 virtual/fortran
149 ${CDEPEND}
150 reflex? ( dev-cpp/gccxml )
151 xinetd? ( sys-apps/xinetd )"
152
153 REQUIRED_USE="!X? ( !opengl !qt4 !xft )"
154
155 S="${WORKDIR}/${PN}"
156
157 pkg_setup() {
158 fortran-2_pkg_setup
159 python_pkg_setup
160 echo
161 elog "There are extra options on packages not yet in Gentoo:"
162 elog "AliEn, castor, Chirp, dCache, gfal, gLite, Globus,"
163 elog "HDFS, Monalisa, MaxDB/SapDB, SRP."
164 elog "You can use the env variable EXTRA_ECONF variable for this."
165 elog "For example, for SRP, you would set: "
166 elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=/usr/$(get_libdir)\""
167 echo
168 enewgroup rootd
169 enewuser rootd -1 -1 /var/spool/rootd rootd
170
171 if use math; then
172 if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp; then
173 ewarn "You are using gcc and OpenMP is available with gcc >= 4.2"
174 ewarn "If you want to build this package with OpenMP, abort now,"
175 ewarn "and set CC to an OpenMP capable compiler"
176 elif use openmp; then
177 export USE_OPENMP=1 USE_PARALLEL_MINUIT2=1
178 elif use mpi; then
179 export USE_MPI=1 USE_PARALLEL_MINUIT2=1
180 fi
181 fi
182 }
183
184 src_prepare() {
185 epatch \
186 "${FILESDIR}"/${PN}-${PATCH_PV}-prop-ldflags.patch \
187 "${FILESDIR}"/${PN}-${PATCH_PV}-asneeded.patch \
188 "${FILESDIR}"/${PN}-${PATCH_PV2}-nobyte-compile.patch \
189 "${FILESDIR}"/${PN}-${PATCH_PV}-glibc212.patch \
190 "${FILESDIR}"/${PN}-${PATCH_PV}-unuran.patch \
191 "${FILESDIR}"/${PN}-${PATCH_PV2}-afs.patch \
192 "${FILESDIR}"/${PN}-${PATCH_PV2}-cfitsio.patch
193
194 # make sure we use system libs and headers
195 rm montecarlo/eg/inc/cfortran.h README/cfortran.doc
196 rm -rf graf2d/asimage/src/libAfterImage
197 rm -rf graf3d/ftgl/{inc,src}
198 rm -rf graf2d/freetype/src
199 rm -rf graf3d/glew/{inc,src}
200 rm -rf core/pcre/src
201 rm -rf math/unuran/src/unuran-*.tar.gz
202 LANG=C LC_ALL=C find core/zip -type f -name "[a-z]*" | xargs rm
203 rm -rf core/lzma/src/*.tar.gz
204 rm graf3d/gl/{inc,src}/gl2ps.*
205 sed -i -e 's/^GLLIBS *:= .* $(OPENGLLIB)/& -lgl2ps/' graf3d/gl/Module.mk
206
207 # In Gentoo, libPythia6 is called libpythia6
208 # libungif is called libgif,
209 # iodbc is in /usr/include/iodbc
210 # pg_config.h is checked instead of libpq-fe.h
211 sed -i \
212 -e 's:libPythia6:libpythia6:g' \
213 -e 's:ungif:gif:g' \
214 -e 's:$ODBCINCDIR:$ODBCINCDIR /usr/include/iodbc:' \
215 -e 's:libpq-fe.h:pg_config.h:' \
216 configure || die "adjusting configure for Gentoo failed"
217
218 # prefixify the configure script
219 sed -i \
220 -e 's:/usr:${EPREFIX}/usr:g' \
221 configure || die "prefixify configure failed"
222
223 # QTDIR only used for qt3 in gentoo, and configure looks for it.
224 unset QTDIR
225 }
226
227 src_configure() {
228 # the configure script is not the standard autotools
229 ./configure \
230 --prefix="${EPREFIX}"/usr \
231 --etcdir="${EPREFIX}"/etc/root \
232 --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \
233 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
234 --tutdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \
235 --testdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tests \
236 --with-cc=$(tc-getCC) \
237 --with-cxx=$(tc-getCXX) \
238 --with-f77=$(tc-getFC) \
239 --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \
240 --disable-builtin-afterimage \
241 --disable-builtin-freetype \
242 --disable-builtin-ftgl \
243 --disable-builtin-glew \
244 --disable-builtin-pcre \
245 --disable-builtin-zlib \
246 --disable-builtin-lzma \
247 --enable-astiff \
248 --enable-exceptions \
249 --enable-explicitlink \
250 --enable-gdml \
251 --enable-memstat \
252 --enable-shadowpw \
253 --enable-shared \
254 --enable-soversion \
255 --enable-table \
256 --fail-on-missing \
257 --with-afs-shared=yes \
258 $(use_enable X x11) \
259 $(use_enable X asimage) \
260 $(use_enable afs) \
261 $(use_enable avahi bonjour) \
262 $(use_enable clarens) \
263 $(use_enable clarens peac) \
264 $(use_enable ncurses editline) \
265 $(use_enable fits fitsio) \
266 $(use_enable fftw fftw3) \
267 $(use_enable graphviz gviz) \
268 $(use_enable kerberos krb5) \
269 $(use_enable ldap) \
270 $(use_enable llvm cling) \
271 $(use_enable math gsl-shared) \
272 $(use_enable math genvector) \
273 $(use_enable math mathmore) \
274 $(use_enable math minuit2) \
275 $(use_enable math roofit) \
276 $(use_enable math tmva) \
277 $(use_enable math unuran) \
278 $(use_enable mysql) \
279 $(use_enable odbc) \
280 $(use_enable opengl) \
281 $(use_enable postgres pgsql) \
282 $(use_enable prefix rpath) \
283 $(use_enable pythia6) \
284 $(use_enable pythia8) \
285 $(use_enable python) \
286 $(use_enable qt4 qt) \
287 $(use_enable qt4 qtgsi) \
288 $(use_enable reflex cintex) \
289 $(use_enable reflex) \
290 $(use_enable ruby) \
291 $(use_enable ssl) \
292 $(use_enable xft) \
293 $(use_enable xml) \
294 $(use_enable xrootd) \
295 ${EXTRA_ECONF} \
296 || die "configure failed"
297 }
298
299 src_compile() {
300 emake OPT="${CFLAGS}" F77OPT="${FFLAGS}" || die "emake failed"
301 if use emacs; then
302 elisp-compile build/misc/*.el || die "elisp-compile failed"
303 fi
304 }
305
306 doc_install() {
307 cd "${S}"
308 if use doc; then
309 einfo "Installing user's guides"
310 dodoc "${DISTDIR}"/Users_Guide_${DOC_PV}.pdf
311 use math && dodoc \
312 "${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \
313 "${DISTDIR}"/TMVAUsersGuide-v${TMVA_DOC_PV}.pdf
314 fi
315
316 if use examples; then
317 # these should really be taken care of by the root make install
318 insinto /usr/share/doc/${PF}/examples/tutorials/tmva
319 doins -r tmva/test
320 else
321 rm -rf "${ED}"/usr/share/doc/${PF}/examples
322 fi
323 }
324
325 daemon_install() {
326 cd "${S}"
327 local daemons="rootd proofd"
328 dodir /var/spool/rootd
329 fowners rootd:rootd /var/spool/rootd
330 dodir /var/spool/rootd/{pub,tmp}
331 fperms 1777 /var/spool/rootd/{pub,tmp}
332
333 for i in ${daemons}; do
334 newinitd "${FILESDIR}"/${i}.initd ${i}
335 newconfd "${FILESDIR}"/${i}.confd ${i}
336 done
337 if use xinetd; then
338 insinto /etc/xinetd
339 doins etc/daemons/{rootd,proofd}.xinetd
340 fi
341 }
342
343 desktop_install() {
344 cd "${S}"
345 sed -e 's,@prefix@,/usr,' \
346 build/package/debian/root-system-bin.desktop.in > root.desktop
347 domenu root.desktop
348 doicon "${S}"/build/package/debian/root-system-bin.png
349
350 insinto /usr/share/icons/hicolor/48x48/mimetypes
351 doins build/package/debian/application-x-root.png
352
353 insinto /usr/share/icons/hicolor/48x48/apps
354 doicon build/package/debian/root-system-bin.xpm
355 }
356
357 src_install() {
358 emake DESTDIR="${D}" install || die "emake install failed"
359
360 echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/root" > 99root
361 use pythia8 && echo "PYTHIA8=${EPREFIX}/usr" >> 99root
362 use python && echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
363 use ruby && echo "RUBYLIB=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
364 doenvd 99root || die "doenvd failed"
365
366 # The build system installs Emacs support unconditionally and in the wrong
367 # directory. Remove it and call elisp-install in case of USE=emacs.
368 rm -rf "${ED}"/usr/share/emacs
369 if use emacs; then
370 elisp-install ${PN} build/misc/*.{el,elc} || die "elisp-install failed"
371 fi
372
373 doc_install
374 daemon_install
375 desktop_install
376
377 # Cleanup of files either already distributed or unused on Gentoo
378 rm "${ED}"usr/share/doc/${PF}/{INSTALL,LICENSE,COPYING.CINT}
379 rm "${ED}"usr/share/root/fonts/LICENSE
380 pushd "${ED}"usr/$(get_libdir)/root/cint/cint/lib > /dev/null
381 rm -f posix/mktypes dll_stl/setup \
382 G__* dll_stl/G__* dll_stl/rootcint_* posix/exten.o
383 rm -f "${ED}"usr/$(get_libdir)/root/cint/cint/include/makehpib
384 rm -f "${ED}"/etc/root/proof/*.sample
385 rm -rf "${ED}"/etc/root/daemons
386 popd > /dev/null
387 # these should be in PATH
388 mv "${ED}"usr/share/root/proof/utils/pq2/pq2* \
389 "${ED}"usr/bin
390 }
391
392 pkg_postinst() {
393 fdo-mime_desktop_database_update
394 use python && python_mod_optimize /usr/$(get_libdir)/root
395 }
396
397 pkg_postrm() {
398 fdo-mime_desktop_database_update
399 use python && python_mod_cleanup /usr/$(get_libdir)/root
400 }