Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/root/
Date: Thu, 17 Nov 2011 11:25:34
Message-Id: b9fb81e0ef2fe0acd3f02c2fa8898bd3431fbc51.jlec@gentoo
1 commit: b9fb81e0ef2fe0acd3f02c2fa8898bd3431fbc51
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 16 10:26:56 2011 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 16 10:26:56 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=b9fb81e0
7
8 Corrected Slotting of media-libs/libpng and media-libs/tiff
9
10 (Portage version: 2.2.0_alpha74/git/Linux x86_64, signed Manifest commit with key 70EB7916)
11
12 ---
13 sci-physics/root/ChangeLog | 4 +
14 sci-physics/root/metadata.xml | 24 +-
15 sci-physics/root/root-5.28.00g.ebuild | 332 -------------------------------
16 sci-physics/root/root-5.30.03-r1.ebuild | 20 +-
17 4 files changed, 28 insertions(+), 352 deletions(-)
18
19 diff --git a/sci-physics/root/ChangeLog b/sci-physics/root/ChangeLog
20 index e7c7c6d..fd95c42 100644
21 --- a/sci-physics/root/ChangeLog
22 +++ b/sci-physics/root/ChangeLog
23 @@ -2,6 +2,10 @@
24 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
25 # $Header: $
26
27 + 16 Nov 2011; Justin Lecher <jlec@g.o> -root-5.28.00g.ebuild,
28 + root-5.30.03-r1.ebuild, metadata.xml:
29 + Corrected Slotting of media-libs/libpng and media-libs/tiff
30 +
31 *root-5.30.03-r1 (21 Oct 2011)
32
33 21 Oct 2011; Andrew Savchenko <bircoph@×××××.com> +root-5.30.03-r1.ebuild:
34
35 diff --git a/sci-physics/root/metadata.xml b/sci-physics/root/metadata.xml
36 index ba73668..222eb19 100644
37 --- a/sci-physics/root/metadata.xml
38 +++ b/sci-physics/root/metadata.xml
39 @@ -1,8 +1,8 @@
40 <?xml version="1.0" encoding="UTF-8"?>
41 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
42 <pkgmetadata>
43 -<herd>sci-physics</herd>
44 -<longdescription lang="en">
45 + <herd>sci-physics</herd>
46 + <longdescription lang="en">
47 ROOT Object Oriented Technologies is an object oriented data
48 analysis framework written in C++ by the CERN. Widely used in
49 high energy physics, but also in other data analysis applications. It
50 @@ -10,22 +10,22 @@
51 statistics, serialization, optimization, linear algebra, graphics,
52 GUI toolkit, and a complete visualization framework.
53 </longdescription>
54 -<use>
55 - <flag name="clarens">
56 + <use>
57 + <flag name="clarens">
58 Buld the Clarens and PEAC plug-ins, to use in a GRID enabled
59 analysis.</flag>
60 - <flag name="fits">Support for images and data from FITS files with <pkg>sci-libs/cfitsio</pkg></flag>
61 - <flag name="llvm">Build the new cling interactive interpreter based on <pkg>sys-devel/llvm</pkg></flag>
62 - <flag name="math">Build all math related libraries plugins, needs <pkg>sci-libs/gsl</pkg> </flag>
63 - <flag name="pythia6">
64 + <flag name="fits">Support for images and data from FITS files with <pkg>sci-libs/cfitsio</pkg></flag>
65 + <flag name="llvm">Build the new cling interactive interpreter based on <pkg>sys-devel/llvm</pkg></flag>
66 + <flag name="math">Build all math related libraries plugins, needs <pkg>sci-libs/gsl</pkg> </flag>
67 + <flag name="pythia6">
68 Builds the interface to Pythia-6 (<pkg>sci-physics/pythia</pkg>)
69 high energy physics generation events library
70 </flag>
71 - <flag name="pythia8">
72 + <flag name="pythia8">
73 Builds the interface to Pythia-8 (<pkg>sci-physics/pythia</pkg>)
74 high energy physics generation events library
75 </flag>
76 - <flag name="reflex">Builds the reflection database for the C++ interpretor </flag>
77 - <flag name="xrootd">Build the xrootd low latency file server</flag>
78 -</use>
79 + <flag name="reflex">Builds the reflection database for the C++ interpretor </flag>
80 + <flag name="xrootd">Build the xrootd low latency file server</flag>
81 + </use>
82 </pkgmetadata>
83
84 diff --git a/sci-physics/root/root-5.28.00g.ebuild b/sci-physics/root/root-5.28.00g.ebuild
85 deleted file mode 100644
86 index 8990411..0000000
87 --- a/sci-physics/root/root-5.28.00g.ebuild
88 +++ /dev/null
89 @@ -1,332 +0,0 @@
90 -# Copyright 1999-2011 Gentoo Foundation
91 -# Distributed under the terms of the GNU General Public License v2
92 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.28.00d.ebuild,v 1.3 2011/06/21 14:31:50 jlec Exp $
93 -
94 -EAPI=3
95 -PYTHON_DEPEND="python? 2"
96 -inherit versionator eutils fortran-2 elisp-common fdo-mime python toolchain-funcs flag-o-matic
97 -
98 -#DOC_PV=$(get_major_version)_$(get_version_component_range 2)
99 -DOC_PV=5_26
100 -ROOFIT_DOC_PV=2.91-33
101 -TMVA_DOC_PV=4.03
102 -PATCH_PV=5.28.00b
103 -
104 -DESCRIPTION="C++ data analysis framework and interpreter from CERN"
105 -HOMEPAGE="http://root.cern.ch/"
106 -SRC_URI="ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz
107 - http://dev.gentoo.org/~bicatali/${PN}-${PATCH_PV}-xrootd-prop-flags.patch.bz2
108 - doc? ( ftp://root.cern.ch/${PN}/doc/Users_Guide_${DOC_PV}.pdf
109 - math? (
110 - ftp://root.cern.ch/${PN}/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf
111 - http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf ) )"
112 -
113 -SLOT="0"
114 -LICENSE="LGPL-2.1"
115 -KEYWORDS="~amd64 ~x86"
116 -IUSE="afs avahi clarens doc emacs examples fits fftw graphviz kerberos ldap
117 - llvm +math mpi mysql ncurses odbc +opengl openmp oracle postgres pythia6
118 - pythia8 python +reflex ruby qt4 ssl xft xml xinetd xrootd"
119 -
120 -CDEPEND=">=dev-lang/cfortran-4.4-r2
121 - dev-libs/libpcre
122 - media-libs/ftgl
123 - media-libs/giflib
124 - media-libs/glew
125 - media-libs/libpng
126 - media-libs/tiff
127 - sys-apps/shadow
128 - virtual/jpeg
129 - x11-libs/libX11
130 - x11-libs/libXext
131 - x11-libs/libXft
132 - x11-libs/libXpm
133 - || ( >=media-libs/libafterimage-1.20 >=x11-wm/afterstep-2.2.11 )
134 - afs? ( net-fs/openafs )
135 - avahi? ( net-dns/avahi )
136 - clarens? ( dev-libs/xmlrpc-c )
137 - emacs? ( virtual/emacs )
138 - fits? ( sci-libs/cfitsio )
139 - fftw? ( sci-libs/fftw:3.0 )
140 - graphviz? ( media-gfx/graphviz )
141 - kerberos? ( virtual/krb5 )
142 - ldap? ( net-nds/openldap )
143 - llvm? ( sys-devel/llvm )
144 - math? ( sci-libs/gsl sci-mathematics/unuran mpi? ( virtual/mpi ) )
145 - mysql? ( virtual/mysql )
146 - ncurses? ( sys-libs/ncurses )
147 - odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )
148 - opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps )
149 - oracle? ( dev-db/oracle-instantclient-basic )
150 - postgres? ( dev-db/postgresql-base )
151 - pythia6? ( sci-physics/pythia:6 )
152 - pythia8? ( sci-physics/pythia:8 )
153 - qt4? ( x11-libs/qt-gui:4
154 - x11-libs/qt-opengl:4
155 - x11-libs/qt-qt3support:4
156 - x11-libs/qt-svg:4
157 - x11-libs/qt-webkit:4
158 - x11-libs/qt-xmlpatterns:4 )
159 - ruby? ( dev-lang/ruby
160 - dev-ruby/rubygems )
161 - ssl? ( dev-libs/openssl )
162 - xml? ( dev-libs/libxml2 )"
163 -
164 -DEPEND="${CDEPEND}
165 - dev-util/pkgconfig"
166 -
167 -RDEPEND="
168 - virtual/fortran
169 -${CDEPEND}
170 - reflex? ( dev-cpp/gccxml )
171 - xinetd? ( sys-apps/xinetd )"
172 -
173 -S="${WORKDIR}/${PN}"
174 -
175 -pkg_setup() {
176 - fortran-2_pkg_setup
177 - elog
178 - elog "There are extra options on packages not yet in Gentoo:"
179 - elog "AliEn, castor, Chirp, dCache, gfal, gLite, Globus,"
180 - elog "HDFS, Monalisa, MaxDB/SapDB, SRP."
181 - elog "You can use the env variable EXTRA_ECONF variable for this."
182 - elog "For example, for SRP, you would set: "
183 - elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=/usr/$(get_libdir)\""
184 - elog
185 - enewgroup rootd
186 - enewuser rootd -1 -1 /var/spool/rootd rootd
187 -
188 - if use math; then
189 - if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp; then
190 - ewarn "You are using gcc and OpenMP is available with gcc >= 4.2"
191 - ewarn "If you want to build this package with OpenMP, abort now,"
192 - ewarn "and set CC to an OpenMP capable compiler"
193 - elif use openmp; then
194 - export USE_OPENMP=1 USE_PARALLEL_MINUIT2=1
195 - elif use mpi; then
196 - export USE_MPI=1 USE_PARALLEL_MINUIT2=1
197 - fi
198 - fi
199 -}
200 -
201 -src_prepare() {
202 - epatch \
203 - "${WORKDIR}"/${PN}-${PATCH_PV}-xrootd-prop-flags.patch \
204 - "${FILESDIR}"/${PN}-${PATCH_PV}-prop-ldflags.patch \
205 - "${FILESDIR}"/${PN}-${PATCH_PV}-asneeded.patch \
206 - "${FILESDIR}"/${PN}-${PATCH_PV}-nobyte-compile.patch \
207 - "${FILESDIR}"/${PN}-${PATCH_PV}-glibc212.patch \
208 - "${FILESDIR}"/${PN}-${PATCH_PV}-unuran.patch
209 -
210 - # make sure we use system libs and headers
211 - rm montecarlo/eg/inc/cfortran.h README/cfortran.doc
212 - rm -rf graf2d/asimage/src/libAfterImage
213 - rm -rf graf3d/ftgl/{inc,src}
214 - rm -rf graf2d/freetype/src
215 - rm -rf graf3d/glew/{inc,src}
216 - rm -rf core/pcre/src
217 - rm -rf math/unuran/src/unuran-*.tar.gz
218 - find core/zip -type f -name "[a-z]*" | xargs rm
219 - rm graf3d/gl/{inc,src}/gl2ps.*
220 - sed -i -e 's/^GLLIBS *:= .* $(OPENGLLIB)/& -lgl2ps/' graf3d/gl/Module.mk
221 -
222 - # TODO: unbundle xrootd as a new package
223 - #rm -rf net/xrootd/src
224 - #sed -i \
225 - # -e 's:-lXrdOuc:-lXrd &:' \
226 - # -e 's:$(XROOTDDIRL)/lib\(Xrd\w*\).a:-l\1:g' \
227 - # proof/proofd/Module.mk || die
228 -
229 - # In Gentoo, libPythia6 is called libpythia6
230 - # libungif is called libgif,
231 - # iodbc is in /usr/include/iodbc
232 - # pg_config.h is checked instead of libpq-fe.h
233 - sed -i \
234 - -e 's:libPythia6:libpythia6:g' \
235 - -e 's:ungif:gif:g' \
236 - -e 's:$ODBCINC:$ODBCINC /usr/include/iodbc:' \
237 - -e 's:libpq-fe.h:pg_config.h:' \
238 - configure || die "adjusting configure for Gentoo failed"
239 -
240 - # prefixify the configure script
241 - sed -i \
242 - -e 's:/usr:${EPREFIX}/usr:g' \
243 - configure || die "prefixify configure failed"
244 -
245 - # QTDIR only used for qt3 in gentoo, and configure looks for it.
246 - unset QTDIR
247 -}
248 -
249 -src_configure() {
250 - # the configure script is not the standard autotools
251 - ./configure \
252 - --prefix="${EPREFIX}"/usr \
253 - --etcdir="${EPREFIX}"/etc/root \
254 - --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \
255 - --docdir="${EPREFIX}"/usr/share/doc/${PF} \
256 - --tutdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \
257 - --testdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tests \
258 - --with-cc=$(tc-getCC) \
259 - --with-cxx=$(tc-getCXX) \
260 - --with-f77=$(tc-getFC) \
261 - --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \
262 - --disable-builtin-afterimage \
263 - --disable-builtin-freetype \
264 - --disable-builtin-ftgl \
265 - --disable-builtin-glew \
266 - --disable-builtin-pcre \
267 - --disable-builtin-zlib \
268 - --disable-rpath \
269 - --enable-asimage \
270 - --enable-astiff \
271 - --enable-exceptions \
272 - --enable-explicitlink \
273 - --enable-gdml \
274 - --enable-memstat \
275 - --enable-shadowpw \
276 - --enable-shared \
277 - --enable-soversion \
278 - --enable-table \
279 - --fail-on-missing \
280 - --with-afs-shared=yes \
281 - $(use_enable afs) \
282 - $(use_enable avahi bonjour) \
283 - $(use_enable clarens) \
284 - $(use_enable clarens peac) \
285 - $(use_enable ncurses editline) \
286 - $(use_enable fits fitsio) \
287 - $(use_enable fftw fftw3) \
288 - $(use_enable graphviz gviz) \
289 - $(use_enable kerberos krb5) \
290 - $(use_enable ldap) \
291 - $(use_enable llvm cling) \
292 - $(use_enable math gsl-shared) \
293 - $(use_enable math genvector) \
294 - $(use_enable math mathmore) \
295 - $(use_enable math minuit2) \
296 - $(use_enable math roofit) \
297 - $(use_enable math tmva) \
298 - $(use_enable math unuran) \
299 - $(use_enable mysql) \
300 - $(use_enable odbc) \
301 - $(use_enable opengl) \
302 - $(use_enable postgres pgsql) \
303 - $(use_enable pythia6) \
304 - $(use_enable pythia8) \
305 - $(use_enable python) \
306 - $(use_enable qt4 qt) \
307 - $(use_enable qt4 qtgsi) \
308 - $(use_enable reflex cintex) \
309 - $(use_enable reflex) \
310 - $(use_enable ruby) \
311 - $(use_enable ssl) \
312 - $(use_enable xft) \
313 - $(use_enable xml) \
314 - $(use_enable xrootd) \
315 - ${EXTRA_ECONF} \
316 - || die "configure failed"
317 -}
318 -
319 -src_compile() {
320 - emake OPT="${CFLAGS}" F77OPT="${FFLAGS}" || die "emake failed"
321 - if use emacs; then
322 - elisp-compile build/misc/*.el || die "elisp-compile failed"
323 - fi
324 -}
325 -
326 -doc_install() {
327 - cd "${S}"
328 - if use doc; then
329 - einfo "Installing user's guides"
330 - dodoc "${DISTDIR}"/Users_Guide_${DOC_PV}.pdf \
331 - use math && dodoc \
332 - "${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \
333 - "${DISTDIR}"/TMVAUsersGuide-v${TMVA_DOC_PV}.pdf
334 - fi
335 -
336 - if use examples; then
337 - # these should really be taken care of by the root make install
338 - insinto /usr/share/doc/${PF}/examples/tutorials/tmva
339 - doins -r tmva/test
340 - else
341 - rm -rf "${ED}"/usr/share/doc/${PF}/examples
342 - fi
343 -}
344 -
345 -daemon_install() {
346 - cd "${S}"
347 - local daemons="rootd proofd"
348 - dodir /var/spool/rootd
349 - fowners rootd:rootd /var/spool/rootd
350 - dodir /var/spool/rootd/{pub,tmp}
351 - fperms 1777 /var/spool/rootd/{pub,tmp}
352 -
353 - use xrootd && daemons="${daemons} xrootd olbd"
354 - for i in ${daemons}; do
355 - newinitd "${FILESDIR}"/${i}.initd ${i}
356 - newconfd "${FILESDIR}"/${i}.confd ${i}
357 - done
358 - if use xinetd; then
359 - insinto /etc/xinetd
360 - doins etc/daemons/{rootd,proofd}.xinetd
361 - fi
362 -}
363 -
364 -desktop_install() {
365 - cd "${S}"
366 - sed -e 's,@prefix@,/usr,' \
367 - build/package/debian/root-system-bin.desktop.in > root.desktop
368 - domenu root.desktop
369 - doicon "${S}"/build/package/debian/root-system-bin.png
370 -
371 - insinto /usr/share/icons/hicolor/48x48/mimetypes
372 - doins build/package/debian/application-x-root.png
373 -
374 - insinto /usr/share/icons/hicolor/48x48/apps
375 - doicon build/package/debian/root-system-bin.xpm
376 -}
377 -
378 -src_install() {
379 - emake DESTDIR="${D}" install || die "emake install failed"
380 -
381 - echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/root" > 99root
382 - use pythia8 && echo "PYTHIA8=${EPREFIX}/usr" >> 99root
383 - use python && echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
384 - use ruby && echo "RUBYLIB=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
385 - doenvd 99root || die "doenvd failed"
386 -
387 - # The build system installs Emacs support unconditionally and in the wrong
388 - # directory. Remove it and call elisp-install in case of USE=emacs.
389 - rm -rf "${ED}"/usr/share/emacs
390 - if use emacs; then
391 - elisp-install ${PN} build/misc/*.{el,elc} || die "elisp-install failed"
392 - fi
393 -
394 - doc_install
395 - daemon_install
396 - desktop_install
397 -
398 - # Cleanup of files either already distributed or unused on Gentoo
399 - rm "${ED}"usr/share/doc/${PF}/{INSTALL,LICENSE,COPYING.CINT}
400 - rm "${ED}"usr/share/root/fonts/LICENSE
401 - pushd "${ED}"usr/$(get_libdir)/root/cint/cint/lib > /dev/null
402 - rm -f posix/mktypes dll_stl/setup \
403 - G__* dll_stl/G__* dll_stl/rootcint_* posix/exten.o
404 - rm -f "${ED}"usr/$(get_libdir)/root/cint/cint/include/makehpib
405 - rm -f "${ED}"/etc/root/proof/*.sample
406 - rm -rf "${ED}"/etc/root/daemons
407 - popd > /dev/null
408 - # these should be in PATH
409 - mv "${ED}"usr/share/root/proof/utils/pq2/pq2* \
410 - "${ED}"usr/bin
411 -}
412 -
413 -pkg_postinst() {
414 - fdo-mime_desktop_database_update
415 - use python && python_mod_optimize /usr/$(get_libdir)/root
416 -}
417 -
418 -pkg_postrm() {
419 - fdo-mime_desktop_database_update
420 - use python && python_mod_cleanup /usr/$(get_libdir)/root
421 -}
422
423 diff --git a/sci-physics/root/root-5.30.03-r1.ebuild b/sci-physics/root/root-5.30.03-r1.ebuild
424 index f2753e3..d237779 100644
425 --- a/sci-physics/root/root-5.30.03-r1.ebuild
426 +++ b/sci-physics/root/root-5.30.03-r1.ebuild
427 @@ -28,13 +28,14 @@ IUSE="+X afs avahi clarens doc emacs examples fits fftw graphviz kerberos ldap
428 llvm +math mpi mysql ncurses odbc +opengl openmp oracle postgres prefix
429 pythia6 pythia8 python +reflex ruby qt4 ssl xft xml xinetd xrootd"
430
431 -CDEPEND="app-arch/xz-utils
432 +CDEPEND="
433 + app-arch/xz-utils
434 >=dev-lang/cfortran-4.4-r2
435 dev-libs/libpcre
436 media-libs/freetype
437 media-libs/giflib
438 - media-libs/libpng
439 - media-libs/tiff
440 + media-libs/libpng:0
441 + media-libs/tiff:0
442 sys-apps/shadow
443 sys-libs/zlib
444 virtual/jpeg
445 @@ -46,13 +47,15 @@ CDEPEND="app-arch/xz-utils
446 x11-libs/libXpm
447 || ( >=media-libs/libafterimage-1.20 >=x11-wm/afterstep-2.2.11 )
448 opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps )
449 - qt4? ( x11-libs/qt-gui:4
450 + qt4? (
451 + x11-libs/qt-gui:4
452 x11-libs/qt-opengl:4
453 x11-libs/qt-qt3support:4
454 x11-libs/qt-svg:4
455 x11-libs/qt-webkit:4
456 x11-libs/qt-xmlpatterns:4 )
457 - xft? ( x11-libs/libXft ) )
458 + xft? ( x11-libs/libXft )
459 + )
460 afs? ( net-fs/openafs )
461 avahi? ( net-dns/avahi )
462 clarens? ( dev-libs/xmlrpc-c )
463 @@ -71,7 +74,8 @@ CDEPEND="app-arch/xz-utils
464 postgres? ( dev-db/postgresql-base )
465 pythia6? ( sci-physics/pythia:6 )
466 pythia8? ( sci-physics/pythia:8 )
467 - ruby? ( dev-lang/ruby
468 + ruby? (
469 + dev-lang/ruby
470 dev-ruby/rubygems )
471 ssl? ( dev-libs/openssl )
472 xml? ( dev-libs/libxml2 )"
473 @@ -92,14 +96,14 @@ S="${WORKDIR}/${PN}"
474 pkg_setup() {
475 fortran-2_pkg_setup
476 python_pkg_setup
477 - elog
478 + echo
479 elog "There are extra options on packages not yet in Gentoo:"
480 elog "AliEn, castor, Chirp, dCache, gfal, gLite, Globus,"
481 elog "HDFS, Monalisa, MaxDB/SapDB, SRP."
482 elog "You can use the env variable EXTRA_ECONF variable for this."
483 elog "For example, for SRP, you would set: "
484 elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=/usr/$(get_libdir)\""
485 - elog
486 + echo
487 enewgroup rootd
488 enewuser rootd -1 -1 /var/spool/rootd rootd