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: Tue, 03 Apr 2012 18:08:19
Message-Id: 1333476450.eb8aeac5c300ec8ce8f3e03171d3ea84729b43e4.jlec@gentoo
1 commit: eb8aeac5c300ec8ce8f3e03171d3ea84729b43e4
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 3 18:07:30 2012 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 3 18:07:30 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=eb8aeac5
7
8 sci-physics/root: Drop in tree version
9
10 (Portage version: 2.2.0_alpha99/git/Linux x86_64, unsigned Manifest commit)
11
12 ---
13 sci-physics/root/ChangeLog | 4 +
14 sci-physics/root/root-5.26.00g.ebuild | 318 ---------------------------
15 sci-physics/root/root-5.28.00h-r1.ebuild | 339 -----------------------------
16 sci-physics/root/root-5.32.02-r1.ebuild | 343 ------------------------------
17 4 files changed, 4 insertions(+), 1000 deletions(-)
18
19 diff --git a/sci-physics/root/ChangeLog b/sci-physics/root/ChangeLog
20 index 0a1a61a..6d49d5c 100644
21 --- a/sci-physics/root/ChangeLog
22 +++ b/sci-physics/root/ChangeLog
23 @@ -2,6 +2,10 @@
24 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
25 # $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.96 2012/03/29 18:21:49 bicatali Exp $
26
27 + 03 Apr 2012; Justin Lecher <jlec@g.o> -root-5.26.00g.ebuild,
28 + -root-5.28.00h-r1.ebuild, -root-5.32.02-r1.ebuild:
29 + Drop in tree version
30 +
31 03 Apr 2012; Justin Lecher <jlec@g.o> root-5.28.00h-r1.ebuild,
32 root-5.32.02-r1.ebuild, root-9999.ebuild, metadata.xml:
33 Fix EAPI=4 usage, don't mix CFLAGS/CXXFLAGS, respect LD
34
35 diff --git a/sci-physics/root/root-5.26.00g.ebuild b/sci-physics/root/root-5.26.00g.ebuild
36 deleted file mode 100644
37 index 301999b..0000000
38 --- a/sci-physics/root/root-5.26.00g.ebuild
39 +++ /dev/null
40 @@ -1,318 +0,0 @@
41 -# Copyright 1999-2012 Gentoo Foundation
42 -# Distributed under the terms of the GNU General Public License v2
43 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.26.00e-r1.ebuild,v 1.12 2011/11/13 11:21:12 jlec Exp $
44 -
45 -EAPI=3
46 -
47 -PYTHON_DEPEND="python? 2"
48 -
49 -inherit elisp-common eutils fdo-mime fortran-2 python toolchain-funcs versionator
50 -
51 -DOC_PV=$(get_major_version)_$(get_version_component_range 2)
52 -ROOFIT_DOC_PV=2.91-33
53 -TMVA_DOC_PV=4
54 -PATCH_PV="5.26.00e"
55 -
56 -DESCRIPTION="C++ data analysis framework and interpreter from CERN"
57 -HOMEPAGE="http://root.cern.ch/"
58 -SRC_URI="
59 - ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz
60 - mirror://gentoo/${PN}-${PATCH_PV}-patches.tar.bz2
61 - doc? (
62 - ftp://root.cern.ch/root/doc/Users_Guide_${DOC_PV}.pdf
63 - ftp://root.cern.ch/root/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf
64 - http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf )"
65 -
66 -SLOT="0"
67 -LICENSE="LGPL-2.1"
68 -KEYWORDS="~amd64 ~x86"
69 -IUSE="afs clarens doc emacs examples fftw geant4 graphviz kerberos ldap
70 - +math mysql odbc +opengl openmp oracle postgres pythia6 pythia8 python
71 - qt4 +reflex ruby ssl xft xinetd xml xrootd"
72 -
73 -# libafterimage ignored, to check every version
74 -# see https://savannah.cern.ch/bugs/?func=detailitem&item_id=30944
75 -# || ( >=media-libs/libafterimage-1.18 x11-wm/afterstep )
76 -CDEPEND="
77 - >=dev-lang/cfortran-4.4-r2
78 - dev-libs/libpcre
79 - >=media-libs/ftgl-2.1.3_rc5
80 - media-libs/giflib
81 - media-libs/glew
82 - media-libs/libpng:0
83 - media-libs/tiff:0
84 - virtual/shadow
85 - virtual/jpeg
86 - x11-libs/libXft
87 - x11-libs/libXpm
88 - afs? ( >=net-fs/openafs-1.4.7 )
89 - clarens? ( dev-libs/xmlrpc-c )
90 - emacs? ( virtual/emacs )
91 - fftw? ( sci-libs/fftw:3.0 )
92 - geant4? ( sci-physics/geant:4 )
93 - graphviz? ( media-gfx/graphviz )
94 - kerberos? ( virtual/krb5 )
95 - ldap? ( net-nds/openldap )
96 - math? ( sci-libs/gsl )
97 - mysql? ( virtual/mysql )
98 - odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )
99 - opengl? ( virtual/opengl virtual/glu )
100 - oracle? ( dev-db/oracle-instantclient-basic )
101 - postgres? ( dev-db/postgresql-base )
102 - pythia6? ( sci-physics/pythia:6 )
103 - pythia8? ( sci-physics/pythia:8 )
104 - qt4? (
105 - x11-libs/qt-gui:4
106 - x11-libs/qt-opengl:4
107 - x11-libs/qt-qt3support:4
108 - x11-libs/qt-xmlpatterns:4 )
109 - ruby? (
110 - dev-lang/ruby
111 - dev-ruby/rubygems )
112 - ssl? ( dev-libs/openssl )
113 - xml? ( dev-libs/libxml2:2 )"
114 -
115 -DEPEND="${CDEPEND}
116 - dev-util/pkgconfig"
117 -
118 -RDEPEND="
119 - virtual/fortran
120 - ${CDEPEND}
121 - xinetd? ( sys-apps/xinetd )"
122 -
123 -S="${WORKDIR}/${PN}"
124 -
125 -pkg_setup() {
126 - fortran-2_pkg_setup
127 - echo
128 - elog "You may want to build ROOT with these non Gentoo extra packages:"
129 - elog "AliEn, castor, Chirp, dCache, gfal, gLite, Globus,"
130 - elog "Monalisa, MaxDB/SapDB, SRP."
131 - elog "You can use the env variable EXTRA_ECONF variable for this."
132 - elog "For example, for SRP, you would set: "
133 - elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=/usr/$(get_libdir)\""
134 - echo
135 - enewgroup rootd
136 - enewuser rootd -1 -1 /var/spool/rootd rootd
137 -
138 - if use openmp && \
139 - [[ $(tc-getCC)$ == *gcc* ]] && \
140 - ( [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]] || \
141 - ! has_version sys-devel/gcc[openmp] ); then
142 - ewarn "You are using gcc and OpenMP is available with gcc >= 4.2"
143 - ewarn "If you want to build this package with OpenMP, abort now,"
144 - ewarn "and set CC to an OpenMP capable compiler"
145 - elif use openmp; then
146 - export USE_OPENMP=1
147 - use math && export USE_PARALLEL_MINUIT2=1
148 - fi
149 - use python && python_set_active_version 2
150 -}
151 -
152 -src_prepare() {
153 - epatch \
154 - "${WORKDIR}"/${PN}-${PATCH_PV}-make-3.82.patch \
155 - "${WORKDIR}"/${PN}-${PATCH_PV}-prop-ldflags.patch \
156 - "${WORKDIR}"/${PN}-${PATCH_PV}-configure-paths.patch \
157 - "${WORKDIR}"/${PN}-${PATCH_PV}-nobyte-compile.patch \
158 - "${WORKDIR}"/${PN}-${PATCH_PV}-glibc212.patch \
159 - "${WORKDIR}"/${PN}-${PATCH_PV}-xrootd-prop-flags.patch \
160 - "${FILESDIR}"/${PN}-${PATCH_PV}-libpng15.patch \
161 - "${FILESDIR}"/${P}-explicit-functions.patch
162 -
163 - # use system cfortran
164 - rm montecarlo/eg/inc/cfortran.h README/cfortran.doc
165 -
166 - # take a more descriptive name for ruby libs
167 - sed -i \
168 - -e 's/libRuby/libRubyROOT/g' \
169 - bindings/ruby/Module.mk bindings/ruby/src/drr.cxx \
170 - || die "ajusting ruby libname failed"
171 -
172 - # in gentoo, libPythia6 is called libpythia6
173 - # libungif is called libgif
174 - sed -i \
175 - -e 's/libPythia6/libpythia6/g' \
176 - -e 's/ungif/gif/g' \
177 - configure || die "adjusting library names failed"
178 -
179 - # libafterimage flags are hardcoded
180 - sed -i \
181 - -e 's/CFLAGS="-O3"//' \
182 - -e 's/CFLAGS=$$ACFLAGS//' \
183 - graf2d/asimage/Module.mk graf2d/asimage/src/libAfterImage/configure \
184 - || die "flag propagation in libafterimage failed"
185 - # QTDIR only used for qt3 in gentoo, and configure looks for it.
186 - unset QTDIR
187 -}
188 -
189 -src_configure() {
190 - # the configure script is not the standard autotools
191 - ./configure \
192 - --prefix="${EPREFIX}"/usr \
193 - --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \
194 - --docdir="${EPREFIX}"/usr/share/doc/${PF} \
195 - --tutdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \
196 - --testdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tests \
197 - --with-cc=$(tc-getCC) \
198 - --with-cxx=$(tc-getCXX) \
199 - --with-f77=$(tc-getFC) \
200 - --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \
201 - --disable-builtin-freetype \
202 - --disable-builtin-ftgl \
203 - --disable-builtin-glew \
204 - --disable-builtin-pcre \
205 - --disable-builtin-zlib \
206 - --disable-rpath \
207 - --enable-asimage \
208 - --enable-astiff \
209 - --enable-exceptions \
210 - --enable-explicitlink \
211 - --enable-gdml \
212 - --enable-memstat \
213 - --enable-shadowpw \
214 - --enable-shared \
215 - --enable-soversion \
216 - --enable-table \
217 - --fail-on-missing \
218 - --with-afs-shared=yes \
219 - $(use_enable afs) \
220 - $(use_enable clarens) \
221 - $(use_enable clarens peac) \
222 - $(use_enable fftw fftw3) \
223 - $(use_enable geant4 g4root) \
224 - $(use_enable graphviz gviz) \
225 - $(use_enable kerberos krb5) \
226 - $(use_enable ldap) \
227 - $(use_enable math gsl-shared) \
228 - $(use_enable math genvector) \
229 - $(use_enable math mathmore) \
230 - $(use_enable math minuit2) \
231 - $(use_enable math roofit) \
232 - $(use_enable math unuran) \
233 - $(use_enable mysql) \
234 - $(use_enable odbc) \
235 - $(use_enable opengl) \
236 - $(use_enable postgres pgsql) \
237 - $(use_enable pythia6) \
238 - $(use_enable pythia8) \
239 - $(use_enable python) \
240 - $(use_enable qt4 qt) \
241 - $(use_enable qt4 qtgsi) \
242 - $(use_enable reflex cintex) \
243 - $(use_enable reflex) \
244 - $(use_enable ruby) \
245 - $(use_enable ssl) \
246 - $(use_enable xft) \
247 - $(use_enable xml) \
248 - $(use_enable xrootd) \
249 - ${EXTRA_ECONF} \
250 - || die "configure failed"
251 -}
252 -
253 -src_compile() {
254 - emake OPT="${CFLAGS}" F77OPT="${FFLAGS}" || die "emake failed"
255 - if use emacs; then
256 - elisp-compile build/misc/*.el || die "elisp-compile failed"
257 - fi
258 -}
259 -
260 -doc_install() {
261 - cd "${S}"
262 - if use doc; then
263 - einfo "Installing user's guides"
264 - insinto /usr/share/doc/${PF}
265 - doins \
266 - "${DISTDIR}"/Users_Guide_${DOC_PV}.pdf \
267 - "${DISTDIR}"/TMVAUsersGuide-v${TMVA_DOC_PV}.pdf \
268 - || die "pdf install failed"
269 - if use math; then
270 - doins "${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \
271 - || die "math doc install failed"
272 - fi
273 - fi
274 -
275 - if use examples; then
276 - # these should really be taken care of by the root make install
277 - insinto /usr/share/doc/${PF}/examples/tutorials/tmva
278 - doins -r tmva/test || die
279 - else
280 - rm -rf "${D}"/usr/share/doc/${PF}/examples
281 - fi
282 -}
283 -
284 -daemon_install() {
285 - cd "${S}"
286 - local daemons="rootd proofd"
287 - dodir /var/spool/rootd
288 - fowners rootd:rootd /var/spool/rootd
289 - dodir /var/spool/rootd/{pub,tmp}
290 - fperms 1777 /var/spool/rootd/{pub,tmp}
291 -
292 - use xrootd && daemons="${daemons} xrootd olbd"
293 - for i in ${daemons}; do
294 - newinitd "${FILESDIR}"/${i}.initd ${i}
295 - newconfd "${FILESDIR}"/${i}.confd ${i}
296 - done
297 - if use xinetd; then
298 - insinto /etc/xinetd
299 - doins etc/daemons/{rootd,proofd}.xinetd || die
300 - fi
301 -}
302 -
303 -desktop_install() {
304 - cd "${S}"
305 - sed -e 's,@prefix@,/usr,' \
306 - build/package/debian/root-system-bin.desktop.in > root.desktop
307 - domenu root.desktop
308 - doicon "${S}"/build/package/debian/root-system-bin.png
309 -
310 - insinto /usr/share/icons/hicolor/48x48/mimetypes
311 - doins build/package/debian/application-x-root.png
312 -
313 - insinto /usr/share/icons/hicolor/48x48/apps
314 - doicon build/package/debian/root-system-bin.xpm
315 -}
316 -
317 -src_install() {
318 - emake DESTDIR="${D}" install || die "emake install failed"
319 -
320 - echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/root" > 99root
321 - use pythia8 && echo "PYTHIA8=${EPREFIX}/usr" >> 99root
322 - use python && echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
323 - use ruby && echo "RUBYLIB=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
324 - doenvd 99root || die "doenvd failed"
325 -
326 - # The build system installs Emacs support unconditionally and in the wrong
327 - # directory. Remove it and call elisp-install in case of USE=emacs.
328 - rm -rf "${D}"/usr/share/emacs
329 - if use emacs; then
330 - elisp-install ${PN} build/misc/*.{el,elc} || die "elisp-install failed"
331 - fi
332 -
333 - doc_install
334 - daemon_install
335 - desktop_install
336 -
337 - # Cleanup of files either already distributed or unused on Gentoo
338 - rm "${ED}"usr/share/doc/${PF}/{INSTALL,LICENSE,COPYING.CINT}
339 - rm "${ED}"usr/share/root/fonts/LICENSE
340 - pushd "${ED}"usr/$(get_libdir)/root/cint/cint/lib > /dev/null
341 - rm -f posix/mktypes dll_stl/setup \
342 - G__* dll_stl/G__* dll_stl/rootcint_* posix/exten.o
343 - rm -f "${ED}"usr/$(get_libdir)/root/cint/cint/include/makehpib
344 - rm -f "${ED}"/etc/root/proof/*.sample
345 - rm -rf "${ED}"/etc/root/daemons
346 - popd > /dev/null
347 -}
348 -
349 -pkg_postinst() {
350 - use ruby && elog "ROOT Ruby module is available as libRubyROOT"
351 - fdo-mime_desktop_database_update
352 - use python && python_mod_optimize /usr/$(get_libdir)/root
353 -}
354 -
355 -pkg_postrm() {
356 - fdo-mime_desktop_database_update
357 - use python && python_mod_cleanup /usr/$(get_libdir)/root
358 -}
359
360 diff --git a/sci-physics/root/root-5.28.00h-r1.ebuild b/sci-physics/root/root-5.28.00h-r1.ebuild
361 deleted file mode 100644
362 index 2963ad3..0000000
363 --- a/sci-physics/root/root-5.28.00h-r1.ebuild
364 +++ /dev/null
365 @@ -1,339 +0,0 @@
366 -# Copyright 1999-2012 Gentoo Foundation
367 -# Distributed under the terms of the GNU General Public License v2
368 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.28.00d.ebuild,v 1.4 2011/11/13 11:21:12 jlec Exp $
369 -
370 -EAPI=3
371 -
372 -PYTHON_DEPEND="python? 2"
373 -
374 -inherit elisp-common eutils fdo-mime fortran-2 python toolchain-funcs
375 -
376 -DOC_PV=5_26
377 -ROOFIT_DOC_PV=2.91-33
378 -TMVA_DOC_PV=4.03
379 -PATCH_PV=5.28.00b
380 -
381 -DESCRIPTION="C++ data analysis framework and interpreter from CERN"
382 -HOMEPAGE="http://root.cern.ch/"
383 -SRC_URI="
384 - ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz
385 - http://dev.gentoo.org/~bicatali/${PN}-${PATCH_PV}-xrootd-prop-flags.patch.bz2
386 - doc? ( ftp://root.cern.ch/${PN}/doc/Users_Guide_${DOC_PV}.pdf
387 - math? (
388 - ftp://root.cern.ch/${PN}/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf
389 - http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf ) )"
390 -
391 -SLOT="0"
392 -LICENSE="LGPL-2.1"
393 -KEYWORDS="~amd64 ~x86"
394 -IUSE="afs avahi clarens doc emacs examples fits fftw graphviz kerberos ldap
395 - +math mpi mysql ncurses odbc +opengl openmp oracle postgres pythia6
396 - pythia8 python qt4 +reflex ruby ssl xft xinetd xml xrootd"
397 -
398 -CDEPEND="
399 - >=dev-lang/cfortran-4.4-r2
400 - dev-libs/libpcre
401 - media-libs/ftgl
402 - media-libs/giflib
403 - media-libs/glew
404 - media-libs/libpng:0
405 - media-libs/tiff:0
406 - virtual/shadow
407 - virtual/jpeg
408 - x11-libs/libX11
409 - x11-libs/libXext
410 - x11-libs/libXft
411 - x11-libs/libXpm
412 - || (
413 - >=media-libs/libafterimage-1.20[gif,jpeg,png,tiff]
414 - >=x11-wm/afterstep-2.2.11[gif,jpeg,png,tiff]
415 - )
416 - afs? ( net-fs/openafs )
417 - avahi? ( net-dns/avahi )
418 - clarens? ( dev-libs/xmlrpc-c )
419 - emacs? ( virtual/emacs )
420 - fits? ( sci-libs/cfitsio )
421 - fftw? ( sci-libs/fftw:3.0 )
422 - graphviz? ( media-gfx/graphviz )
423 - kerberos? ( virtual/krb5 )
424 - ldap? ( net-nds/openldap )
425 - math? ( sci-libs/gsl sci-mathematics/unuran mpi? ( virtual/mpi ) )
426 - mysql? ( virtual/mysql )
427 - ncurses? ( sys-libs/ncurses )
428 - odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )
429 - opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps )
430 - oracle? ( dev-db/oracle-instantclient-basic )
431 - postgres? ( dev-db/postgresql-base )
432 - pythia6? ( sci-physics/pythia:6 )
433 - pythia8? ( sci-physics/pythia:8 )
434 - qt4? (
435 - x11-libs/qt-gui:4
436 - x11-libs/qt-opengl:4
437 - x11-libs/qt-qt3support:4
438 - x11-libs/qt-svg:4
439 - x11-libs/qt-webkit:4
440 - x11-libs/qt-xmlpatterns:4 )
441 - ruby? (
442 - dev-lang/ruby
443 - dev-ruby/rubygems )
444 - ssl? ( dev-libs/openssl )
445 - xml? ( dev-libs/libxml2:2 )"
446 -
447 -DEPEND="${CDEPEND}
448 - dev-util/pkgconfig"
449 -
450 -RDEPEND="
451 - virtual/fortran
452 -${CDEPEND}
453 - reflex? ( dev-cpp/gccxml )
454 - xinetd? ( sys-apps/xinetd )"
455 -
456 -S="${WORKDIR}/${PN}"
457 -
458 -pkg_setup() {
459 - fortran-2_pkg_setup
460 - echo
461 - elog "There are extra options on packages not yet in Gentoo:"
462 - elog "AliEn, castor, Chirp, dCache, gfal, gLite, Globus,"
463 - elog "HDFS, Monalisa, MaxDB/SapDB, SRP."
464 - elog "You can use the env variable EXTRA_ECONF variable for this."
465 - elog "For example, for SRP, you would set: "
466 - elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=/usr/$(get_libdir)\""
467 - echo
468 - enewgroup rootd
469 - enewuser rootd -1 -1 /var/spool/rootd rootd
470 -
471 - if use math; then
472 - if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp; then
473 - ewarn "You are using gcc and OpenMP is available with gcc >= 4.2"
474 - ewarn "If you want to build this package with OpenMP, abort now,"
475 - ewarn "and set CC to an OpenMP capable compiler"
476 - elif use openmp; then
477 - export USE_OPENMP=1 USE_PARALLEL_MINUIT2=1
478 - elif use mpi; then
479 - export USE_MPI=1 USE_PARALLEL_MINUIT2=1
480 - fi
481 - fi
482 -}
483 -
484 -src_prepare() {
485 - epatch \
486 - "${WORKDIR}"/${PN}-${PATCH_PV}-xrootd-prop-flags.patch \
487 - "${FILESDIR}"/${PN}-${PATCH_PV}-prop-ldflags.patch \
488 - "${FILESDIR}"/${PN}-${PATCH_PV}-asneeded.patch \
489 - "${FILESDIR}"/${PN}-${PATCH_PV}-nobyte-compile.patch \
490 - "${FILESDIR}"/${PN}-${PATCH_PV}-glibc212.patch \
491 - "${FILESDIR}"/${PN}-${PATCH_PV}-unuran.patch \
492 - "${FILESDIR}"/${P}-explicit-functions.patch
493 -
494 - # make sure we use system libs and headers
495 - rm montecarlo/eg/inc/cfortran.h README/cfortran.doc
496 - rm -rf graf2d/asimage/src/libAfterImage
497 - rm -rf graf3d/ftgl/{inc,src}
498 - rm -rf graf2d/freetype/src
499 - rm -rf graf3d/glew/{inc,src}
500 - rm -rf core/pcre/src
501 - rm -rf math/unuran/src/unuran-*.tar.gz
502 - find core/zip -type f -name "[a-z]*" | xargs rm
503 - rm graf3d/gl/{inc,src}/gl2ps.*
504 - sed -i -e 's/^GLLIBS *:= .* $(OPENGLLIB)/& -lgl2ps/' graf3d/gl/Module.mk
505 -
506 - # TODO: unbundle xrootd as a new package
507 - #rm -rf net/xrootd/src
508 - #sed -i \
509 - # -e 's:-lXrdOuc:-lXrd &:' \
510 - # -e 's:$(XROOTDDIRL)/lib\(Xrd\w*\).a:-l\1:g' \
511 - # proof/proofd/Module.mk || die
512 -
513 - # In Gentoo, libPythia6 is called libpythia6
514 - # libungif is called libgif,
515 - # iodbc is in /usr/include/iodbc
516 - # pg_config.h is checked instead of libpq-fe.h
517 - sed -i \
518 - -e 's:libPythia6:libpythia6:g' \
519 - -e 's:ungif:gif:g' \
520 - -e 's:$ODBCINC:$ODBCINC /usr/include/iodbc:' \
521 - -e 's:libpq-fe.h:pg_config.h:' \
522 - configure || die "adjusting configure for Gentoo failed"
523 -
524 - # prefixify the configure script
525 - sed -i \
526 - -e 's:/usr:${EPREFIX}/usr:g' \
527 - configure || die "prefixify configure failed"
528 -
529 - # QTDIR only used for qt3 in gentoo, and configure looks for it.
530 - unset QTDIR
531 -}
532 -
533 -src_configure() {
534 - # the configure script is not the standard autotools
535 - ./configure \
536 - --prefix="${EPREFIX}"/usr \
537 - --etcdir="${EPREFIX}"/etc/root \
538 - --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \
539 - --docdir="${EPREFIX}"/usr/share/doc/${PF} \
540 - --tutdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \
541 - --testdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tests \
542 - --with-cc=$(tc-getCC) \
543 - --with-cxx=$(tc-getCXX) \
544 - --with-f77=$(tc-getFC) \
545 - --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \
546 - --disable-builtin-afterimage \
547 - --disable-builtin-freetype \
548 - --disable-builtin-ftgl \
549 - --disable-builtin-glew \
550 - --disable-builtin-pcre \
551 - --disable-builtin-zlib \
552 - --disable-rpath \
553 - --enable-asimage \
554 - --enable-astiff \
555 - --enable-exceptions \
556 - --enable-explicitlink \
557 - --enable-gdml \
558 - --enable-memstat \
559 - --enable-shadowpw \
560 - --enable-shared \
561 - --enable-soversion \
562 - --enable-table \
563 - --fail-on-missing \
564 - --with-afs-shared=yes \
565 - $(use_enable afs) \
566 - $(use_enable avahi bonjour) \
567 - $(use_enable clarens) \
568 - $(use_enable clarens peac) \
569 - $(use_enable ncurses editline) \
570 - $(use_enable fits fitsio) \
571 - $(use_enable fftw fftw3) \
572 - $(use_enable graphviz gviz) \
573 - $(use_enable kerberos krb5) \
574 - $(use_enable ldap) \
575 - $(use_enable math gsl-shared) \
576 - $(use_enable math genvector) \
577 - $(use_enable math mathmore) \
578 - $(use_enable math minuit2) \
579 - $(use_enable math roofit) \
580 - $(use_enable math tmva) \
581 - $(use_enable math unuran) \
582 - $(use_enable mysql) \
583 - $(use_enable odbc) \
584 - $(use_enable opengl) \
585 - $(use_enable postgres pgsql) \
586 - $(use_enable pythia6) \
587 - $(use_enable pythia8) \
588 - $(use_enable python) \
589 - $(use_enable qt4 qt) \
590 - $(use_enable qt4 qtgsi) \
591 - $(use_enable reflex cintex) \
592 - $(use_enable reflex) \
593 - $(use_enable ruby) \
594 - $(use_enable ssl) \
595 - $(use_enable xft) \
596 - $(use_enable xml) \
597 - $(use_enable xrootd) \
598 - ${EXTRA_ECONF} \
599 - || die "configure failed"
600 -}
601 -
602 -src_compile() {
603 - emake OPT="${CFLAGS}" F77OPT="${FFLAGS}" || die "emake failed"
604 - if use emacs; then
605 - elisp-compile build/misc/*.el || die "elisp-compile failed"
606 - fi
607 -}
608 -
609 -doc_install() {
610 - cd "${S}"
611 - if use doc; then
612 - einfo "Installing user's guides"
613 - dodoc "${DISTDIR}"/Users_Guide_${DOC_PV}.pdf
614 - use math && dodoc \
615 - "${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \
616 - "${DISTDIR}"/TMVAUsersGuide-v${TMVA_DOC_PV}.pdf
617 - fi
618 -
619 - if use examples; then
620 - # these should really be taken care of by the root make install
621 - insinto /usr/share/doc/${PF}/examples/tutorials/tmva
622 - doins -r tmva/test
623 - else
624 - rm -rf "${ED}"/usr/share/doc/${PF}/examples
625 - fi
626 -}
627 -
628 -daemon_install() {
629 - cd "${S}"
630 - local daemons="rootd proofd"
631 - dodir /var/spool/rootd
632 - fowners rootd:rootd /var/spool/rootd
633 - dodir /var/spool/rootd/{pub,tmp}
634 - fperms 1777 /var/spool/rootd/{pub,tmp}
635 -
636 - use xrootd && daemons="${daemons} xrootd olbd"
637 - for i in ${daemons}; do
638 - newinitd "${FILESDIR}"/${i}.initd ${i}
639 - newconfd "${FILESDIR}"/${i}.confd ${i}
640 - done
641 - if use xinetd; then
642 - insinto /etc/xinetd
643 - doins etc/daemons/{rootd,proofd}.xinetd
644 - fi
645 -}
646 -
647 -desktop_install() {
648 - cd "${S}"
649 - sed -e 's,@prefix@,/usr,' \
650 - build/package/debian/root-system-bin.desktop.in > root.desktop
651 - domenu root.desktop
652 - doicon "${S}"/build/package/debian/root-system-bin.png
653 -
654 - insinto /usr/share/icons/hicolor/48x48/mimetypes
655 - doins build/package/debian/application-x-root.png
656 -
657 - insinto /usr/share/icons/hicolor/48x48/apps
658 - doicon build/package/debian/root-system-bin.xpm
659 -}
660 -
661 -src_install() {
662 - emake DESTDIR="${D}" install || die "emake install failed"
663 -
664 - echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/root" > 99root
665 - use pythia8 && echo "PYTHIA8=${EPREFIX}/usr" >> 99root
666 - use python && echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
667 - use ruby && echo "RUBYLIB=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
668 - doenvd 99root || die "doenvd failed"
669 -
670 - # The build system installs Emacs support unconditionally and in the wrong
671 - # directory. Remove it and call elisp-install in case of USE=emacs.
672 - rm -rf "${ED}"/usr/share/emacs
673 - if use emacs; then
674 - elisp-install ${PN} build/misc/*.{el,elc} || die "elisp-install failed"
675 - fi
676 -
677 - doc_install
678 - daemon_install
679 - desktop_install
680 -
681 - # Cleanup of files either already distributed or unused on Gentoo
682 - rm "${ED}"usr/share/doc/${PF}/{INSTALL,LICENSE,COPYING.CINT}
683 - rm "${ED}"usr/share/root/fonts/LICENSE
684 - pushd "${ED}"usr/$(get_libdir)/root/cint/cint/lib > /dev/null
685 - rm -f posix/mktypes dll_stl/setup \
686 - G__* dll_stl/G__* dll_stl/rootcint_* posix/exten.o
687 - rm -f "${ED}"usr/$(get_libdir)/root/cint/cint/include/makehpib
688 - rm -f "${ED}"/etc/root/proof/*.sample
689 - rm -rf "${ED}"/etc/root/daemons
690 - popd > /dev/null
691 - # these should be in PATH
692 - mv "${ED}"etc/root/proof/utils/pq2/pq2* \
693 - "${ED}"usr/bin
694 -}
695 -
696 -pkg_postinst() {
697 - fdo-mime_desktop_database_update
698 - use python && python_mod_optimize /usr/$(get_libdir)/root
699 -}
700 -
701 -pkg_postrm() {
702 - fdo-mime_desktop_database_update
703 - use python && python_mod_cleanup /usr/$(get_libdir)/root
704 -}
705
706 diff --git a/sci-physics/root/root-5.32.02-r1.ebuild b/sci-physics/root/root-5.32.02-r1.ebuild
707 deleted file mode 100644
708 index 12559d8..0000000
709 --- a/sci-physics/root/root-5.32.02-r1.ebuild
710 +++ /dev/null
711 @@ -1,343 +0,0 @@
712 -# Copyright 1999-2012 Gentoo Foundation
713 -# Distributed under the terms of the GNU General Public License v2
714 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.32.01.ebuild,v 1.1 2012/03/02 05:34:01 bicatali Exp $
715 -
716 -EAPI=4
717 -PYTHON_DEPEND="python? 2"
718 -inherit elisp-common eutils fdo-mime fortran-2 python toolchain-funcs
719 -
720 -DOC_PV=5_26
721 -ROOFIT_DOC_PV=2.91-33
722 -TMVA_DOC_PV=4.03
723 -PATCH_PV=5.28.00b
724 -PATCH_PV2=5.32.00
725 -
726 -DESCRIPTION="C++ data analysis framework and interpreter from CERN"
727 -HOMEPAGE="http://root.cern.ch/"
728 -SRC_URI="
729 - ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz
730 - doc? ( ftp://root.cern.ch/${PN}/doc/Users_Guide_${DOC_PV}.pdf
731 - math? (
732 - ftp://root.cern.ch/${PN}/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf
733 - http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf ) )"
734 -
735 -SLOT="0"
736 -LICENSE="LGPL-2.1"
737 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
738 -IUSE="+X afs avahi clarens doc emacs examples fits fftw graphviz kerberos ldap
739 - +math mpi mysql odbc +opengl openmp oracle postgres prefix
740 - pythia6 pythia8 python qt4 +reflex ruby ssl xft xinetd xml xrootd"
741 -
742 -CDEPEND="
743 - app-arch/xz-utils
744 - >=dev-lang/cfortran-4.4-r2
745 - dev-libs/libpcre
746 - media-libs/freetype
747 - media-libs/giflib
748 - media-libs/libpng:0
749 - media-libs/tiff:0
750 - sys-libs/zlib
751 - virtual/jpeg
752 - virtual/shadow
753 - X? (
754 - media-libs/ftgl
755 - media-libs/glew
756 - x11-libs/libX11
757 - x11-libs/libXext
758 - x11-libs/libXpm
759 - || (
760 - >=media-libs/libafterimage-1.20[gif,jpeg,png,tiff]
761 - >=x11-wm/afterstep-2.2.11[gif,jpeg,png,tiff]
762 - )
763 - opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps )
764 - qt4? (
765 - x11-libs/qt-gui:4
766 - x11-libs/qt-opengl:4
767 - x11-libs/qt-qt3support:4
768 - x11-libs/qt-svg:4
769 - x11-libs/qt-webkit:4
770 - x11-libs/qt-xmlpatterns:4 )
771 - xft? ( x11-libs/libXft )
772 - )
773 - afs? ( net-fs/openafs )
774 - avahi? ( net-dns/avahi )
775 - clarens? ( dev-libs/xmlrpc-c[curl] )
776 - emacs? ( virtual/emacs )
777 - fits? ( sci-libs/cfitsio )
778 - fftw? ( sci-libs/fftw:3.0 )
779 - graphviz? ( media-gfx/graphviz )
780 - kerberos? ( virtual/krb5 )
781 - ldap? ( net-nds/openldap )
782 - math? ( sci-libs/gsl sci-mathematics/unuran mpi? ( virtual/mpi ) )
783 - mysql? ( virtual/mysql )
784 - odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )
785 - oracle? ( dev-db/oracle-instantclient-basic )
786 - postgres? ( dev-db/postgresql-base )
787 - pythia6? ( sci-physics/pythia:6 )
788 - pythia8? ( sci-physics/pythia:8 )
789 - ruby? (
790 - dev-lang/ruby
791 - dev-ruby/rubygems )
792 - ssl? ( dev-libs/openssl )
793 - xml? ( dev-libs/libxml2 )
794 - xrootd? ( net-libs/xrootd )"
795 -
796 -DEPEND="${CDEPEND}
797 - dev-util/pkgconfig"
798 -
799 -RDEPEND="
800 - virtual/fortran
801 - ${CDEPEND}
802 - reflex? ( dev-cpp/gccxml )
803 - xinetd? ( sys-apps/xinetd )"
804 -
805 -REQUIRED_USE="!X? ( !opengl !qt4 !xft )"
806 -
807 -S="${WORKDIR}/${PN}"
808 -
809 -pkg_setup() {
810 - fortran-2_pkg_setup
811 - python_pkg_setup
812 - echo
813 - elog "There are extra options on packages not yet in Gentoo:"
814 - elog "AliEn, castor, Chirp, dCache, gfal, gLite, Globus,"
815 - elog "HDFS, Monalisa, MaxDB/SapDB, SRP."
816 - elog "You can use the env variable EXTRA_ECONF variable for this."
817 - elog "For example, for SRP, you would set: "
818 - elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=/usr/$(get_libdir)\""
819 - echo
820 - enewgroup rootd
821 - enewuser rootd -1 -1 /var/spool/rootd rootd
822 -
823 - if use math; then
824 - if use openmp && ! tc-has-openmp; then
825 - ewarn "You are using gcc and OpenMP is available with gcc >= 4.2"
826 - ewarn "If you want to build this package with OpenMP, abort now,"
827 - ewarn "and set CC to an OpenMP capable compiler"
828 - elif use openmp; then
829 - export USE_OPENMP=1 USE_PARALLEL_MINUIT2=1
830 - elif use mpi; then
831 - export USE_MPI=1 USE_PARALLEL_MINUIT2=1
832 - fi
833 - fi
834 -}
835 -
836 -src_prepare() {
837 - epatch \
838 - "${FILESDIR}"/${PN}-${PATCH_PV}-prop-ldflags.patch \
839 - "${FILESDIR}"/${PN}-${PATCH_PV}-asneeded.patch \
840 - "${FILESDIR}"/${PN}-${PATCH_PV2}-nobyte-compile.patch \
841 - "${FILESDIR}"/${PN}-${PATCH_PV}-glibc212.patch \
842 - "${FILESDIR}"/${PN}-${PATCH_PV}-unuran.patch \
843 - "${FILESDIR}"/${PN}-${PATCH_PV2}-afs.patch \
844 - "${FILESDIR}"/${PN}-${PATCH_PV2}-cfitsio.patch \
845 - "${FILESDIR}"/${PN}-${PATCH_PV2}-chklib64.patch \
846 - "${FILESDIR}"/${PN}-${PATCH_PV2}-explicit-functions.patch
847 -
848 - # make sure we use system libs and headers
849 - rm montecarlo/eg/inc/cfortran.h README/cfortran.doc || die
850 - rm -rf graf2d/asimage/src/libAfterImage || die
851 - rm -rf graf3d/ftgl/{inc,src} || die
852 - rm -rf graf2d/freetype/src || die
853 - rm -rf graf3d/glew/{inc,src} || die
854 - rm -rf core/pcre/src || die
855 - rm -rf math/unuran/src/unuran-*.tar.gz || die
856 - LANG=C LC_ALL=C find core/zip -type f -name "[a-z]*" -print0 | xargs -0 rm -f || die
857 - rm -rf core/lzma/src/*.tar.gz || die
858 - rm graf3d/gl/{inc,src}/gl2ps.* || die
859 - sed -i -e 's/^GLLIBS *:= .* $(OPENGLLIB)/& -lgl2ps/' graf3d/gl/Module.mk || die
860 -
861 - # In Gentoo, libPythia6 is called libpythia6
862 - # libungif is called libgif,
863 - # iodbc is in /usr/include/iodbc
864 - # pg_config.h is checked instead of libpq-fe.h
865 - sed -i \
866 - -e 's:libPythia6:libpythia6:g' \
867 - -e 's:ungif:gif:g' \
868 - -e 's:$ODBCINCDIR:$ODBCINCDIR /usr/include/iodbc:' \
869 - -e 's:libpq-fe.h:pg_config.h:' \
870 - configure || die "adjusting configure for Gentoo failed"
871 -
872 - # prefixify the configure script
873 - sed -i \
874 - -e 's:/usr:${EPREFIX}/usr:g' \
875 - configure || die "prefixify configure failed"
876 -
877 - # QTDIR only used for qt3 in gentoo, and configure looks for it.
878 - unset QTDIR
879 -}
880 -
881 -src_configure() {
882 - # the configure script is not the standard autotools
883 - ./configure \
884 - --prefix="${EPREFIX}"/usr \
885 - --etcdir="${EPREFIX}"/etc/root \
886 - --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \
887 - --docdir="${EPREFIX}"/usr/share/doc/${PF} \
888 - --tutdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \
889 - --testdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tests \
890 - --with-cc=$(tc-getCC) \
891 - --with-cxx=$(tc-getCXX) \
892 - --with-f77=$(tc-getFC) \
893 - --with-ld=$(tc-getCXX) \
894 - --with-afs-shared=yes \
895 - --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \
896 - --disable-builtin-afterimage \
897 - --disable-builtin-freetype \
898 - --disable-builtin-ftgl \
899 - --disable-builtin-glew \
900 - --disable-builtin-pcre \
901 - --disable-builtin-zlib \
902 - --disable-builtin-lzma \
903 - --disable-cling \
904 - --enable-astiff \
905 - --enable-exceptions \
906 - --enable-explicitlink \
907 - --enable-gdml \
908 - --enable-memstat \
909 - --enable-shadowpw \
910 - --enable-shared \
911 - --enable-soversion \
912 - --enable-table \
913 - --fail-on-missing \
914 - $(use_enable X x11) \
915 - $(use_enable X asimage) \
916 - $(use_enable afs) \
917 - $(use_enable avahi bonjour) \
918 - $(use_enable clarens) \
919 - $(use_enable clarens peac) \
920 - $(use_enable fits fitsio) \
921 - $(use_enable fftw fftw3) \
922 - $(use_enable graphviz gviz) \
923 - $(use_enable kerberos krb5) \
924 - $(use_enable ldap) \
925 - $(use_enable math gsl-shared) \
926 - $(use_enable math genvector) \
927 - $(use_enable math mathmore) \
928 - $(use_enable math minuit2) \
929 - $(use_enable math roofit) \
930 - $(use_enable math tmva) \
931 - $(use_enable math unuran) \
932 - $(use_enable mysql) \
933 - $(use_enable odbc) \
934 - $(use_enable opengl) \
935 - $(use_enable postgres pgsql) \
936 - $(use_enable prefix rpath) \
937 - $(use_enable pythia6) \
938 - $(use_enable pythia8) \
939 - $(use_enable python) \
940 - $(use_enable qt4 qt) \
941 - $(use_enable qt4 qtgsi) \
942 - $(use_enable reflex cintex) \
943 - $(use_enable reflex) \
944 - $(use_enable ruby) \
945 - $(use_enable ssl) \
946 - $(use_enable xft) \
947 - $(use_enable xml) \
948 - $(use_enable xrootd) \
949 - ${EXTRA_ECONF} \
950 - || die "configure failed"
951 -}
952 -
953 -src_compile() {
954 - emake OPT="${CXXFLAGS}" F77OPT="${FFLAGS}"
955 - if use emacs; then
956 - elisp-compile build/misc/*.el || die "elisp-compile failed"
957 - fi
958 -}
959 -
960 -doc_install() {
961 - cd "${S}"
962 - if use doc; then
963 - einfo "Installing user's guides"
964 - dodoc "${DISTDIR}"/Users_Guide_${DOC_PV}.pdf
965 - use math && dodoc \
966 - "${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \
967 - "${DISTDIR}"/TMVAUsersGuide-v${TMVA_DOC_PV}.pdf
968 - fi
969 -
970 - if use examples; then
971 - # these should really be taken care of by the root make install
972 - insinto /usr/share/doc/${PF}/examples/tutorials/tmva
973 - doins -r tmva/test
974 - else
975 - rm -rf "${ED}"/usr/share/doc/${PF}/examples || die
976 - fi
977 -}
978 -
979 -daemon_install() {
980 - cd "${S}"
981 - local daemons="rootd proofd"
982 - dodir /var/spool/rootd
983 - fowners rootd:rootd /var/spool/rootd
984 - dodir /var/spool/rootd/{pub,tmp}
985 - fperms 1777 /var/spool/rootd/{pub,tmp}
986 -
987 - for i in ${daemons}; do
988 - newinitd "${FILESDIR}"/${i}.initd ${i}
989 - newconfd "${FILESDIR}"/${i}.confd ${i}
990 - done
991 - if use xinetd; then
992 - insinto /etc/xinetd
993 - doins etc/daemons/{rootd,proofd}.xinetd
994 - fi
995 -}
996 -
997 -desktop_install() {
998 - cd "${S}"
999 - sed -e 's,@prefix@,/usr,' \
1000 - build/package/debian/root-system-bin.desktop.in > root.desktop
1001 - domenu root.desktop
1002 - doicon "${S}"/build/package/debian/root-system-bin.png
1003 -
1004 - insinto /usr/share/icons/hicolor/48x48/mimetypes
1005 - doins build/package/debian/application-x-root.png
1006 -
1007 - insinto /usr/share/icons/hicolor/48x48/apps
1008 - doicon build/package/debian/root-system-bin.xpm
1009 -}
1010 -
1011 -src_install() {
1012 - emake DESTDIR="${D}" install
1013 -
1014 - echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/root" > 99root
1015 - use pythia8 && echo "PYTHIA8=${EPREFIX}/usr" >> 99root
1016 - use python && echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
1017 - use ruby && echo "RUBYLIB=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
1018 - doenvd 99root
1019 -
1020 - # The build system installs Emacs support unconditionally and in the wrong
1021 - # directory. Remove it and call elisp-install in case of USE=emacs.
1022 - rm -rf "${ED}"/usr/share/emacs
1023 - if use emacs; then
1024 - elisp-install ${PN} build/misc/*.{el,elc} || die "elisp-install failed"
1025 - fi
1026 -
1027 - doc_install
1028 - daemon_install
1029 - desktop_install
1030 -
1031 - # Cleanup of files either already distributed or unused on Gentoo
1032 - rm "${ED}"usr/share/doc/${PF}/{INSTALL,LICENSE,COPYING.CINT} || die
1033 - rm "${ED}"usr/share/root/fonts/LICENSE || die
1034 - pushd "${ED}"usr/$(get_libdir)/root/cint/cint/lib > /dev/null
1035 - rm -f posix/mktypes dll_stl/setup \
1036 - G__* dll_stl/G__* dll_stl/rootcint_* posix/exten.o || die
1037 - rm -f "${ED}"usr/$(get_libdir)/root/cint/cint/include/makehpib || die
1038 - rm -f "${ED}"/etc/root/proof/*.sample || die
1039 - rm -rf "${ED}"/etc/root/daemons || die
1040 - popd > /dev/null
1041 - # these should be in PATH
1042 - mv "${ED}"etc/root/proof/utils/pq2/pq2* \
1043 - "${ED}"usr/bin/ || die
1044 -}
1045 -
1046 -pkg_postinst() {
1047 - fdo-mime_desktop_database_update
1048 - use python && python_mod_optimize /usr/$(get_libdir)/root
1049 -}
1050 -
1051 -pkg_postrm() {
1052 - fdo-mime_desktop_database_update
1053 - use python && python_mod_cleanup /usr/$(get_libdir)/root
1054 -}