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