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: root-5.34.18-r1.ebuild metadata.xml ChangeLog root-5.34.10-r2.ebuild root-5.34.09.ebuild root-5.32.04.ebuild root-5.34.13.ebuild root-5.34.13-r1.ebuild root-5.34.15.ebuild
Date: Wed, 26 Mar 2014 21:06:58
Message-Id: 20140326210651.ADB932004E@flycatcher.gentoo.org
1 bicatali 14/03/26 21:06:51
2
3 Modified: metadata.xml ChangeLog
4 Added: root-5.34.18-r1.ebuild
5 Removed: root-5.34.10-r2.ebuild root-5.34.09.ebuild
6 root-5.32.04.ebuild root-5.34.13.ebuild
7 root-5.34.13-r1.ebuild root-5.34.15.ebuild
8 Log:
9 Sub-slotting (bug #505358), and fixed genreflex path (bug #497280). Split all docs into app-doc/root-docs. Cleaning up ebuild for readibility and easier maintainship.
10
11 (Portage version: 2.2.8-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
12
13 Revision Changes Path
14 1.23 sci-physics/root/metadata.xml
15
16 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/metadata.xml?rev=1.23&view=markup
17 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/metadata.xml?rev=1.23&content-type=text/plain
18 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/metadata.xml?r1=1.22&r2=1.23
19
20 Index: metadata.xml
21 ===================================================================
22 RCS file: /var/cvsroot/gentoo-x86/sci-physics/root/metadata.xml,v
23 retrieving revision 1.22
24 retrieving revision 1.23
25 diff -u -r1.22 -r1.23
26 --- metadata.xml 10 Dec 2013 16:41:01 -0000 1.22
27 +++ metadata.xml 26 Mar 2014 21:06:51 -0000 1.23
28 @@ -1,14 +1,14 @@
29 <?xml version="1.0" encoding="UTF-8"?>
30 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
31 <pkgmetadata>
32 - <maintainer>
33 - <email>bircoph@×××××.com</email>
34 - <name>Andrew Savchenko</name>
35 - <description>Maintainer. Assign bugs to him</description>
36 - </maintainer>
37 - <herd>sci-physics</herd>
38 - <herd>proxy-maintainers</herd>
39 - <longdescription lang="en">
40 +<maintainer>
41 + <email>bircoph@×××××.com</email>
42 + <name>Andrew Savchenko</name>
43 + <description>Maintainer. Assign bugs to him</description>
44 +</maintainer>
45 +<herd>sci-physics</herd>
46 +<herd>proxy-maintainers</herd>
47 +<longdescription lang="en">
48 ROOT Object Oriented Technologies is an object oriented data
49 analysis framework written in C++ by the CERN. Widely used in
50 high energy physics, but also in other data analysis applications. It
51 @@ -16,16 +16,16 @@
52 statistics, serialization, optimization, linear algebra, graphics,
53 GUI toolkit, and a complete visualization framework.
54 </longdescription>
55 - <use>
56 - <flag name="c++0x"> Build ROOT using the C++11 standard. Not supported, requires <pkg>sys-devel/gcc</pkg>&gt;=4.7.0</flag>
57 - <flag name="clarens"> Build the Clarens and PEAC plug-ins, to use in a GRID enabled analysis</flag>
58 - <flag name="fits">Support for images and data from FITS files with <pkg>sci-libs/cfitsio</pkg></flag>
59 - <flag name="htmldoc">Generate html documentation</flag>
60 - <flag name="math">Build all math related libraries plugins, needs <pkg>sci-libs/gsl</pkg> </flag>
61 - <flag name="metric">Default to A4 paper size and metric measurement</flag>
62 - <flag name="pythia6">Build the interface for <pkg>sci-physics/pythia</pkg> version 6.x </flag>
63 - <flag name="pythia8">Build the interface for <pkg>sci-physics/pythia</pkg> version 8.x </flag>
64 - <flag name="reflex">Build the reflection database for the C++ interpreter</flag>
65 - <flag name="xrootd">Build the interface for <pkg>net-libs/xrootd</pkg> </flag>
66 - </use>
67 +<use>
68 + <flag name="c++0x"> Build ROOT using the C++11 standard. Not supported, requires <pkg>sys-devel/gcc</pkg>&gt;=4.7.0</flag>
69 + <flag name="clarens"> Build the Clarens and PEAC plug-ins, to use in a GRID enabled analysis</flag>
70 + <flag name="fits">Support for images and data from FITS files with <pkg>sci-libs/cfitsio</pkg></flag>
71 + <flag name="htmldoc">Generate html documentation</flag>
72 + <flag name="math">Build all math related libraries plugins, needs <pkg>sci-libs/gsl</pkg> </flag>
73 + <flag name="metric">Default to A4 paper size and metric measurement</flag>
74 + <flag name="pythia6">Build the interface for <pkg>sci-physics/pythia</pkg> version 6.x </flag>
75 + <flag name="pythia8">Build the interface for <pkg>sci-physics/pythia</pkg> version 8.x </flag>
76 + <flag name="reflex">Build the reflection database for the C++ interpreter</flag>
77 + <flag name="xrootd">Build the interface for <pkg>net-libs/xrootd</pkg> </flag>
78 +</use>
79 </pkgmetadata>
80
81
82
83 1.129 sci-physics/root/ChangeLog
84
85 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/ChangeLog?rev=1.129&view=markup
86 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/ChangeLog?rev=1.129&content-type=text/plain
87 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/ChangeLog?r1=1.128&r2=1.129
88
89 Index: ChangeLog
90 ===================================================================
91 RCS file: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v
92 retrieving revision 1.128
93 retrieving revision 1.129
94 diff -u -r1.128 -r1.129
95 --- ChangeLog 18 Mar 2014 19:23:55 -0000 1.128
96 +++ ChangeLog 26 Mar 2014 21:06:51 -0000 1.129
97 @@ -1,6 +1,16 @@
98 # ChangeLog for sci-physics/root
99 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
100 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.128 2014/03/18 19:23:55 bicatali Exp $
101 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.129 2014/03/26 21:06:51 bicatali Exp $
102 +
103 +*root-5.34.18-r1 (26 Mar 2014)
104 +
105 + 26 Mar 2014; Sébastien Fabbro <bicatali@g.o> +root-5.34.18-r1.ebuild,
106 + -root-5.32.04.ebuild, -root-5.34.09.ebuild, -root-5.34.10-r2.ebuild,
107 + -root-5.34.13-r1.ebuild, -root-5.34.13.ebuild, -root-5.34.15.ebuild,
108 + metadata.xml:
109 + Sub-slotting (bug #505358), and fixed genreflex path (bug #497280). Split all
110 + docs into app-doc/root-docs. Cleaning up ebuild for readibility and easier
111 + maintainship.
112
113 *root-5.34.18 (18 Mar 2014)
114
115
116
117
118 1.1 sci-physics/root/root-5.34.18-r1.ebuild
119
120 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/root-5.34.18-r1.ebuild?rev=1.1&view=markup
121 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/root-5.34.18-r1.ebuild?rev=1.1&content-type=text/plain
122
123 Index: root-5.34.18-r1.ebuild
124 ===================================================================
125 # Copyright 1999-2014 Gentoo Foundation
126 # Distributed under the terms of the GNU General Public License v2
127 # $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.34.18-r1.ebuild,v 1.1 2014/03/26 21:06:51 bicatali Exp $
128
129 EAPI=5
130
131 if [[ ${PV} == "9999" ]] ; then
132 inherit git-r3
133 EGIT_REPO_URI="http://root.cern.ch/git/root.git"
134 SRC_URI=""
135 KEYWORDS=""
136 else
137 SRC_URI="ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz"
138 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
139 fi
140
141 PYTHON_COMPAT=( python2_{6,7} )
142
143 inherit elisp-common eutils fdo-mime fortran-2 multilib python-single-r1 \
144 toolchain-funcs user versionator
145
146 DESCRIPTION="C++ data analysis framework and interpreter from CERN"
147 HOMEPAGE="http://root.cern.ch/"
148 DOC_URI="ftp://root.cern.ch/${PN}/doc"
149
150 SLOT="0/$(get_version_component_range 1-2 ${PV})"
151 LICENSE="LGPL-2.1"
152 IUSE="+X afs avahi c++0x doc emacs examples fits fftw graphviz
153 kerberos ldap +math minimal mpi mysql odbc +opengl openmp
154 oracle postgres prefix pythia6 pythia8 python qt4 +reflex
155 ruby sqlite ssl xinetd xml xrootd"
156
157 REQUIRED_USE="
158 !X? ( !opengl !qt4 )
159 mpi? ( math !openmp )
160 openmp? ( math !mpi )
161 python? ( ${PYTHON_REQUIRED_USE} )"
162
163 CDEPEND="
164 app-arch/xz-utils:0=
165 >=dev-lang/cfortran-4.4-r2
166 dev-libs/libpcre:3=
167 media-fonts/dejavu
168 media-libs/freetype:2=
169 media-libs/giflib:0=
170 media-libs/libpng:0=
171 media-libs/tiff:0=
172 sys-libs/zlib:0=
173 virtual/jpeg:0
174 virtual/shadow
175 X? (
176 media-libs/ftgl:0=
177 media-libs/glew:0=
178 x11-libs/libX11:0=
179 x11-libs/libXext:0=
180 x11-libs/libXpm:0=
181 !minimal? (
182 || (
183 media-libs/libafterimage:0=[gif,jpeg,png,tiff]
184 >=x11-wm/afterstep-2.2.11:0=[gif,jpeg,png,tiff]
185 )
186 opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps:0= )
187 qt4? (
188 dev-qt/qtgui:4=
189 dev-qt/qtopengl:4=
190 dev-qt/qt3support:4=
191 dev-qt/qtsvg:4=
192 dev-qt/qtwebkit:4=
193 dev-qt/qtxmlpatterns:4=
194 )
195 x11-libs/libXft:0=
196 )
197 )
198 !minimal? (
199 afs? ( net-fs/openafs )
200 avahi? ( net-dns/avahi:0= )
201 emacs? ( virtual/emacs )
202 fits? ( sci-libs/cfitsio:0= )
203 fftw? ( sci-libs/fftw:3.0= )
204 graphviz? ( media-gfx/graphviz:0= )
205 kerberos? ( virtual/krb5 )
206 ldap? ( net-nds/openldap:0= )
207 math? (
208 sci-libs/gsl:0=
209 sci-mathematics/unuran:0=
210 mpi? ( virtual/mpi )
211 )
212 mysql? ( virtual/mysql )
213 odbc? ( || ( dev-db/libiodbc:0= dev-db/unixODBC:0= ) )
214 oracle? ( dev-db/oracle-instantclient-basic:0= )
215 postgres? ( dev-db/postgresql-base:= )
216 pythia6? ( sci-physics/pythia:6= )
217 pythia8? ( >=sci-physics/pythia-8.1.80:8= )
218 python? ( ${PYTHON_DEPS} )
219 ruby? (
220 dev-lang/ruby
221 dev-ruby/rubygems
222 )
223 sqlite? ( dev-db/sqlite:3= )
224 ssl? ( dev-libs/openssl:0= )
225 xml? ( dev-libs/libxml2:2= )
226 xrootd? ( >=net-libs/xrootd-3.3.5:0= )
227 )"
228
229 DEPEND="${CDEPEND}
230 virtual/pkgconfig"
231
232 RDEPEND="${CDEPEND}
233 reflex? ( dev-cpp/gccxml )
234 xinetd? ( sys-apps/xinetd )"
235
236 PDEPEND="doc? ( ~app-doc/root-docs-${PV}[math=] )"
237
238 S="${WORKDIR}/${PN}"
239
240 # install stuff in ${P} and not ${PF} for easier tracking in root-docs
241 DOC_DIR="/usr/share/doc/${P}"
242
243 pkg_setup() {
244 fortran-2_pkg_setup
245 use python && python-single-r1_pkg_setup
246 echo
247 elog "There are extra options on packages not yet in Gentoo:"
248 elog "Afdsmgrd, AliEn, castor, Chirp, dCache, gfal, Globus, gLite,"
249 elog "HDFS, Monalisa, MaxDB/SapDB, SRP."
250 elog "You can use the env variable EXTRA_ECONF variable for this."
251 elog "For example, for SRP, you would set: "
252 elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=${EROOT%/}/usr/$(get_libdir)\""
253 echo
254
255 #enewgroup rootd
256 #enewuser rootd -1 -1 /var/spool/rootd rootd
257
258 use minimal && return
259
260 if use math; then
261 if use openmp; then
262 if [[ $(tc-getCXX)$ == *g++* ]] && ! tc-has-openmp; then
263 ewarn "You are using a g++ without OpenMP capabilities"
264 die "Need an OpenMP capable compiler"
265 else
266 export USE_OPENMP=1 USE_PARALLEL_MINUIT2=1
267 fi
268 elif use mpi; then
269 export USE_MPI=1 USE_PARALLEL_MINUIT2=1
270 fi
271 fi
272 if use c++0x && [[ $(tc-getCXX) == *g++* ]] && \
273 ! version_is_at_least "4.7" "$(gcc-version)"; then
274 eerror "You are using a g++ without C++0x capabilities"
275 die "Need an C++0x capable compiler"
276 fi
277 }
278
279 src_prepare() {
280 epatch \
281 "${FILESDIR}"/${PN}-5.28.00b-glibc212.patch \
282 "${FILESDIR}"/${PN}-5.32.00-prop-flags.patch \
283 "${FILESDIR}"/${PN}-5.32.00-afs.patch \
284 "${FILESDIR}"/${PN}-5.32.00-cfitsio.patch \
285 "${FILESDIR}"/${PN}-5.32.00-chklib64.patch \
286 "${FILESDIR}"/${PN}-5.32.00-dotfont.patch \
287 "${FILESDIR}"/${PN}-5.34.05-nobyte-compile.patch \
288 "${FILESDIR}"/${PN}-5.34.13-unuran.patch \
289 "${FILESDIR}"/${PN}-5.34.13-desktop.patch
290
291 # make sure we use system libs and headers
292 rm montecarlo/eg/inc/cfortran.h README/cfortran.doc || die
293 rm -r graf2d/asimage/src/libAfterImage || die
294 rm -r graf3d/ftgl/{inc,src} || die
295 rm -r graf2d/freetype/src || die
296 rm -r graf3d/glew/{inc,src} || die
297 rm -r core/pcre/src || die
298 rm -r math/unuran/src/unuran-*.tar.gz || die
299 LANG=C LC_ALL=C find core/zip -type f -name "[a-z]*" -print0 | \
300 xargs -0 rm || die
301 rm -r core/lzma/src/*.tar.gz || die
302 rm graf3d/gl/{inc,src}/gl2ps.* || die
303 sed -i -e 's/^GLLIBS *:= .* $(OPENGLLIB)/& -lgl2ps/' \
304 graf3d/gl/Module.mk || die
305
306 # In Gentoo, libPythia6 is called libpythia6
307 # iodbc is in /usr/include/iodbc
308 # pg_config.h is checked instead of libpq-fe.h
309 sed -i \
310 -e 's:libPythia6:libpythia6:g' \
311 -e 's:$ODBCINCDIR:$ODBCINCDIR /usr/include/iodbc:' \
312 -e 's:libpq-fe.h:pg_config.h:' \
313 configure || die "adjusting configure for Gentoo failed"
314
315 # prefixify the configure script
316 sed -i \
317 -e 's:/usr:${EPREFIX}/usr:g' \
318 configure || die "prefixify configure failed"
319
320 # fix reflex path (bug #497280)
321 sed -i -e 's|${ROOTSYS}/lib|@libdir@|' config/genreflex.in || die
322
323 # QTDIR only used for qt3 in gentoo, and configure looks for it.
324 unset QTDIR
325 }
326
327 src_configure() {
328
329 # the configure script is not the standard autotools
330 local myconf=(
331 --prefix="${EPREFIX}/usr"
332 --etcdir="${EPREFIX}/etc/root"
333 --libdir="${EPREFIX}/usr/$(get_libdir)/${PN}"
334 --docdir="${EPREFIX}${DOC_DIR}"
335 --tutdir="${EPREFIX}${DOC_DIR}/examples/tutorials"
336 --testdir="${EPREFIX}${DOC_DIR}/examples/tests"
337 --with-cc="$(tc-getCC)"
338 --with-cxx="$(tc-getCXX)"
339 --with-f77="$(tc-getFC)"
340 --with-ld="$(tc-getCXX)"
341 --nohowto
342 )
343
344 if use minimal; then
345 myconf+=( $(usex X --gminimal --minimal) )
346 else
347 myconf+=(
348 --with-afs-shared=yes
349 --with-sys-iconpath="${EPREFIX}/usr/share/pixmaps"
350 --disable-builtin-afterimage
351 --disable-builtin-ftgl
352 --disable-builtin-freetype
353 --disable-builtin-glew
354 --disable-builtin-pcre
355 --disable-builtin-zlib
356 --disable-builtin-lzma
357 --disable-cling
358 --enable-astiff
359 --enable-explicitlink
360 --enable-gdml
361 --enable-memstat
362 --enable-shadowpw
363 --enable-shared
364 --enable-soversion
365 --enable-table
366 --fail-on-missing
367 $(use_enable X x11)
368 $(use_enable X asimage)
369 $(use_enable X xft)
370 $(use_enable afs)
371 $(use_enable avahi bonjour)
372 $(use_enable c++0x cxx11)
373 $(use_enable fits fitsio)
374 $(use_enable fftw fftw3)
375 $(use_enable graphviz gviz)
376 $(use_enable kerberos krb5)
377 $(use_enable ldap)
378 $(use_enable math gsl-shared)
379 $(use_enable math genvector)
380 $(use_enable math mathmore)
381 $(use_enable math minuit2)
382 $(use_enable math roofit)
383 $(use_enable math tmva)
384 $(use_enable math unuran)
385 $(use_enable mysql)
386 $(use_enable odbc)
387 $(use_enable opengl)
388 $(use_enable oracle)
389 $(use_enable postgres pgsql)
390 $(usex postgres \
391 "--with-pgsql-incdir=$(pg_config --includedir)" "")
392 $(use_enable prefix rpath)
393 $(use_enable pythia6)
394 $(use_enable pythia8)
395 $(use_enable python)
396 $(use_enable qt4 qt)
397 $(use_enable qt4 qtgsi)
398 $(use_enable reflex cintex)
399 $(use_enable reflex)
400 $(use_enable ruby)
401 $(use_enable sqlite)
402 $(use_enable ssl)
403 $(use_enable xml)
404 $(use_enable xrootd)
405 ${EXTRA_ECONF}
406 )
407 fi
408
409 ./configure ${myconf[@]} || die "configure failed"
410 }
411
412 src_compile() {
413 emake \
414 OPT="${CXXFLAGS}" \
415 F77OPT="${FFLAGS}" \
416 ROOTSYS="${S}" \
417 LD_LIBRARY_PATH="${S}/lib"
418 use emacs && ! use minimal && elisp-compile build/misc/*.el
419 }
420
421 daemon_install() {
422 local daemons="rootd proofd"
423 dodir /var/spool/rootd
424 fowners rootd:rootd /var/spool/rootd
425 dodir /var/spool/rootd/{pub,tmp}
426 fperms 1777 /var/spool/rootd/{pub,tmp}
427
428 for i in ${daemons}; do
429 newinitd "${FILESDIR}"/${i}.initd ${i}
430 newconfd "${FILESDIR}"/${i}.confd ${i}
431 done
432 if use xinetd; then
433 insinto /etc/xinetd
434 doins "${S}"/etc/daemons/{rootd,proofd}.xinetd
435 fi
436 }
437
438 desktop_install() {
439 cd "${S}"
440 echo "Icon=root-system-bin" >> etc/root.desktop
441 domenu etc/root.desktop
442 doicon build/package/debian/root-system-bin.png
443
444 insinto /usr/share/icons/hicolor/48x48/mimetypes
445 doins build/package/debian/application-x-root.png
446
447 insinto /usr/share/icons/hicolor/48x48/apps
448 doicon build/package/debian/root-system-bin.xpm
449 }
450
451 cleanup_install() {
452 # Cleanup of files either already distributed or unused on Gentoo
453 pushd "${ED}" > /dev/null
454 rm usr/share/root/fonts/LICENSE || die
455 rm etc/root/proof/*.sample || die
456 rm -r etc/root/daemons || die
457 # these should be in PATH
458 mv etc/root/proof/utils/pq2/pq2* usr/bin/ || die
459 rm ${DOC_DIR#/}/{INSTALL,LICENSE,COPYING.CINT} || die
460 use examples || rm -r ${DOC_DIR#/}/examples || die
461 cd usr/$(get_libdir)/root/cint/cint
462 rm lib/posix/mktypes lib/dll_stl/setup lib/G__* || die
463 rm lib/dll_stl/G__* lib/dll_stl/rootcint_* lib/posix/exten.o || die
464 rm include/makehpib || die
465 popd > /dev/null
466 }
467
468 src_install() {
469 emake DESTDIR="${D}" install
470
471 echo "LDPATH=${EPREFIX%/}/usr/$(get_libdir)/root" > 99root
472
473 if ! use minimal; then
474 use pythia8 && echo "PYTHIA8=${EPREFIX%/}/usr" >> 99root
475 if use python; then
476 echo "PYTHONPATH=${EPREFIX%/}/usr/$(get_libdir)/root" >> 99root
477 python_optimize "${D}/usr/$(get_libdir)/root"
478 fi
479 use ruby && \
480 echo "RUBYLIB=${EPREFIX%/}/usr/$(get_libdir)/root" >> 99root
481 use emacs && elisp-install ${PN} build/misc/*.{el,elc}
482 if use examples; then
483 # these should really be taken care of by the root make install
484 insinto ${DOC_DIR}/examples/tutorials/tmva
485 doins -r tmva/test
486 fi
487 fi
488 doenvd 99root
489
490 # The build system installs Emacs support unconditionally in the wrong
491 # directory. Remove it and call elisp-install in case of USE=emacs.
492 rm -r "${ED}"/usr/share/emacs || die
493
494 daemon_install
495 desktop_install
496 cleanup_install
497 }
498
499 pkg_postinst() {
500 fdo-mime_desktop_database_update
501 }
502
503 pkg_postrm() {
504 fdo-mime_desktop_database_update
505 }