1 |
commit: e32479d689f2da981f10d165b205835bff050c15 |
2 |
Author: Andrew Savchenko <bircoph <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jul 5 21:25:44 2014 +0000 |
4 |
Commit: Andrew Savchenko <bircoph <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Jul 5 21:25:44 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=e32479d6 |
7 |
|
8 |
root and root-docs: version bump |
9 |
|
10 |
--- |
11 |
app-doc/root-docs/ChangeLog | 7 + |
12 |
.../files/root-docs-6.00.01-fillpatterns.patch | 30 ++ |
13 |
app-doc/root-docs/root-docs-6.00.01-r1.ebuild | 3 +- |
14 |
app-doc/root-docs/root-docs-6.00.02.ebuild | 1 + |
15 |
sci-physics/root/ChangeLog | 5 + |
16 |
sci-physics/root/root-6.00.02.ebuild | 439 +++++++++++++++++++++ |
17 |
6 files changed, 484 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/app-doc/root-docs/ChangeLog b/app-doc/root-docs/ChangeLog |
20 |
index 2ccae6d..56ea0fc 100644 |
21 |
--- a/app-doc/root-docs/ChangeLog |
22 |
+++ b/app-doc/root-docs/ChangeLog |
23 |
@@ -2,6 +2,13 @@ |
24 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
25 |
# $Header: /var/cvsroot/gentoo-x86/app-doc/root-docs/ChangeLog,v 1.42 2014/03/28 18:48:01 bicatali Exp $ |
26 |
|
27 |
+*root-docs-6.00.02 (05 Jul 2014) |
28 |
+ |
29 |
+ 05 Jul 2014; Andrew Savchenko <bircoph@×××××.com> |
30 |
+ root-docs-6.00.01-r1.ebuild, +root-docs-6.00.02.ebuild, |
31 |
+ +files/root-docs-6.00.01-fillpatterns.patch: |
32 |
+ Version bump. Fix bug with TAttFill generation. |
33 |
+ |
34 |
*root-docs-6.00.01-r1 (02 Jul 2014) |
35 |
|
36 |
02 Jul 2014; Andrew Savchenko <bircoph@×××××.com> -root-docs-6.00.01.ebuild, |
37 |
|
38 |
diff --git a/app-doc/root-docs/files/root-docs-6.00.01-fillpatterns.patch b/app-doc/root-docs/files/root-docs-6.00.01-fillpatterns.patch |
39 |
new file mode 100644 |
40 |
index 0000000..e48a4f7 |
41 |
--- /dev/null |
42 |
+++ b/app-doc/root-docs/files/root-docs-6.00.01-fillpatterns.patch |
43 |
@@ -0,0 +1,30 @@ |
44 |
+diff --git a/core/base/doc/macros/fillpatterns.C b/core/base/doc/macros/fillpatterns.C |
45 |
+index b0a5132..fca81c8 100644 |
46 |
+--- a/core/base/doc/macros/fillpatterns.C |
47 |
++++ b/core/base/doc/macros/fillpatterns.C |
48 |
+@@ -20,11 +20,11 @@ TCanvas * fillpatterns() |
49 |
+ |
50 |
+ // Fixed patterns. |
51 |
+ for (i=1; i<=5; i++) { |
52 |
+- box(j++, 0.01, y-bh, 0.19, y); |
53 |
+- box(j++, 0.21, y-bh, 0.39, y); |
54 |
+- box(j++, 0.41, y-bh, 0.59, y); |
55 |
+- box(j++, 0.61, y-bh, 0.79, y); |
56 |
+- box(j++, 0.81, y-bh, 0.99, y); |
57 |
++ box(j, 0.01, y-bh, 0.19, y); j++; |
58 |
++ box(j, 0.21, y-bh, 0.39, y); j++; |
59 |
++ box(j, 0.41, y-bh, 0.59, y); j++; |
60 |
++ box(j, 0.61, y-bh, 0.79, y); j++; |
61 |
++ box(j, 0.81, y-bh, 0.99, y); j++; |
62 |
+ y = y-bh-db; |
63 |
+ } |
64 |
+ |
65 |
+@@ -55,7 +55,7 @@ TCanvas * fillpatterns() |
66 |
+ return Pat; |
67 |
+ } |
68 |
+ |
69 |
+-box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2) |
70 |
++void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2) |
71 |
+ { |
72 |
+ // Draw an box using the fill pattern "pat" with the "pat" value |
73 |
+ // written on top. |
74 |
|
75 |
diff --git a/app-doc/root-docs/root-docs-6.00.01-r1.ebuild b/app-doc/root-docs/root-docs-6.00.01-r1.ebuild |
76 |
index a0cb7b2..096e0fe 100644 |
77 |
--- a/app-doc/root-docs/root-docs-6.00.01-r1.ebuild |
78 |
+++ b/app-doc/root-docs/root-docs-6.00.01-r1.ebuild |
79 |
@@ -61,7 +61,8 @@ src_unpack() { |
80 |
|
81 |
src_prepare() { |
82 |
use api && epatch \ |
83 |
- "${FILESDIR}/${PN}-6.00.01-makehtml.patch" |
84 |
+ "${FILESDIR}/${PN}-6.00.01-makehtml.patch" \ |
85 |
+ "${FILESDIR}/${PN}-6.00.01-fillpatterns.patch" |
86 |
# prefixify the configure script |
87 |
sed -i \ |
88 |
-e "s:/usr:${EPREFIX}/usr:g" \ |
89 |
|
90 |
diff --git a/app-doc/root-docs/root-docs-6.00.02.ebuild b/app-doc/root-docs/root-docs-6.00.02.ebuild |
91 |
new file mode 120000 |
92 |
index 0000000..0ee27bf |
93 |
--- /dev/null |
94 |
+++ b/app-doc/root-docs/root-docs-6.00.02.ebuild |
95 |
@@ -0,0 +1 @@ |
96 |
+root-docs-6.00.01-r1.ebuild |
97 |
\ No newline at end of file |
98 |
|
99 |
diff --git a/sci-physics/root/ChangeLog b/sci-physics/root/ChangeLog |
100 |
index 893e1ea..3759527 100644 |
101 |
--- a/sci-physics/root/ChangeLog |
102 |
+++ b/sci-physics/root/ChangeLog |
103 |
@@ -2,6 +2,11 @@ |
104 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
105 |
# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.96 2012/03/29 18:21:49 bicatali Exp $ |
106 |
|
107 |
+*root-6.00.02 (05 Jul 2014) |
108 |
+ |
109 |
+ 05 Jul 2014; Andrew Savchenko <bircoph@×××××.com> +root-6.00.02.ebuild: |
110 |
+ Version bump. Cling fixes. |
111 |
+ |
112 |
03 Jul 2014; Andrew Savchenko <bircoph@×××××.com> root-9999.ebuild: |
113 |
Tutorial-dirs patch is accepted upstream. |
114 |
|
115 |
|
116 |
diff --git a/sci-physics/root/root-6.00.02.ebuild b/sci-physics/root/root-6.00.02.ebuild |
117 |
new file mode 100644 |
118 |
index 0000000..9c76fed |
119 |
--- /dev/null |
120 |
+++ b/sci-physics/root/root-6.00.02.ebuild |
121 |
@@ -0,0 +1,439 @@ |
122 |
+# Copyright 1999-2014 Gentoo Foundation |
123 |
+# Distributed under the terms of the GNU General Public License v2 |
124 |
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.34.18-r1.ebuild,v 1.3 2014/03/27 18:51:54 bicatali Exp $ |
125 |
+ |
126 |
+EAPI=5 |
127 |
+ |
128 |
+if [[ ${PV} == "9999" ]] ; then |
129 |
+ inherit git-r3 |
130 |
+ EGIT_REPO_URI="http://root.cern.ch/git/root.git" |
131 |
+ KEYWORDS="" |
132 |
+else |
133 |
+ SRC_URI="ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz" |
134 |
+ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
135 |
+ S="${WORKDIR}/${PN}" |
136 |
+fi |
137 |
+ |
138 |
+PYTHON_COMPAT=( python2_{6,7} ) |
139 |
+ |
140 |
+inherit elisp-common eutils fdo-mime fortran-2 multilib python-single-r1 \ |
141 |
+ toolchain-funcs user versionator |
142 |
+ |
143 |
+DESCRIPTION="C++ data analysis framework and interpreter from CERN" |
144 |
+HOMEPAGE="http://root.cern.ch/" |
145 |
+DOC_URI="ftp://root.cern.ch/${PN}/doc" |
146 |
+ |
147 |
+SLOT="0/$(get_version_component_range 1-3 ${PV})" |
148 |
+LICENSE="LGPL-2.1 freedist GPL-2 MSttfEULA LGPL-3 libpng UoI-NCSA" |
149 |
+IUSE="+X afs avahi doc emacs examples fits fftw geocad graphviz |
150 |
+ http kerberos ldap +math minimal mpi mysql odbc +opengl openmp |
151 |
+ oracle postgres prefix pythia6 pythia8 python qt4 sqlite ssl |
152 |
+ xinetd xml xrootd" |
153 |
+ |
154 |
+# TODO: add support for: davix |
155 |
+# TODO: ROOT-6 supports x32 ABI, but half of its dependencies doesn't |
156 |
+# TODO: unbundle: cling, vdt |
157 |
+ |
158 |
+REQUIRED_USE=" |
159 |
+ mpi? ( math !openmp ) |
160 |
+ opengl? ( X ) |
161 |
+ openmp? ( math !mpi ) |
162 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
163 |
+ qt4? ( X ) |
164 |
+" |
165 |
+ |
166 |
+CDEPEND=" |
167 |
+ app-arch/xz-utils:0= |
168 |
+ >=dev-lang/cfortran-4.4-r2 |
169 |
+ dev-libs/libpcre:3= |
170 |
+ media-fonts/dejavu |
171 |
+ media-libs/freetype:2= |
172 |
+ media-libs/giflib:0= |
173 |
+ media-libs/libpng:0= |
174 |
+ media-libs/tiff:0= |
175 |
+ >=sys-devel/clang-3.4 |
176 |
+ sys-libs/zlib:0= |
177 |
+ virtual/jpeg:0 |
178 |
+ virtual/shadow |
179 |
+ X? ( |
180 |
+ media-libs/ftgl:0= |
181 |
+ media-libs/glew:0= |
182 |
+ x11-libs/libX11:0= |
183 |
+ x11-libs/libXext:0= |
184 |
+ x11-libs/libXpm:0= |
185 |
+ !minimal? ( |
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 |
+ geocad? ( sci-libs/opencascade:= ) |
205 |
+ graphviz? ( media-gfx/graphviz:0= ) |
206 |
+ http? ( dev-libs/fcgi:0= ) |
207 |
+ kerberos? ( virtual/krb5 ) |
208 |
+ ldap? ( net-nds/openldap:0= ) |
209 |
+ math? ( |
210 |
+ sci-libs/gsl:0= |
211 |
+ sci-mathematics/unuran:0= |
212 |
+ mpi? ( virtual/mpi ) |
213 |
+ ) |
214 |
+ mysql? ( virtual/mysql ) |
215 |
+ odbc? ( || ( dev-db/libiodbc:0= dev-db/unixODBC:0= ) ) |
216 |
+ oracle? ( dev-db/oracle-instantclient-basic:0= ) |
217 |
+ postgres? ( dev-db/postgresql-base:= ) |
218 |
+ pythia6? ( sci-physics/pythia:6= ) |
219 |
+ pythia8? ( >=sci-physics/pythia-8.1.80:8= ) |
220 |
+ python? ( ${PYTHON_DEPS} ) |
221 |
+ sqlite? ( dev-db/sqlite:3= ) |
222 |
+ ssl? ( dev-libs/openssl:0= ) |
223 |
+ xml? ( dev-libs/libxml2:2= ) |
224 |
+ xrootd? ( >=net-libs/xrootd-3.3.5:0= ) |
225 |
+ )" |
226 |
+ |
227 |
+# TODO: ruby is not yet ported to ROOT-6, reenable when (if?) ready |
228 |
+# ruby? ( |
229 |
+# dev-lang/ruby |
230 |
+# dev-ruby/rubygems |
231 |
+# ) |
232 |
+# |
233 |
+# TODO: root-6.00.01 crashes with system libafterimage |
234 |
+# || ( |
235 |
+# media-libs/libafterimage:0=[gif,jpeg,png,tiff] |
236 |
+# >=x11-wm/afterstep-2.2.11:0=[gif,jpeg,png,tiff] |
237 |
+# ) |
238 |
+# --disable-builtin-afterimage |
239 |
+ |
240 |
+DEPEND="${CDEPEND} |
241 |
+ virtual/pkgconfig" |
242 |
+ |
243 |
+RDEPEND="${CDEPEND} |
244 |
+ xinetd? ( sys-apps/xinetd )" |
245 |
+ |
246 |
+PDEPEND="doc? ( ~app-doc/root-docs-${PV}[http=,math=] )" |
247 |
+ |
248 |
+# install stuff in ${P} and not ${PF} for easier tracking in root-docs |
249 |
+DOC_DIR="/usr/share/doc/${P}" |
250 |
+ |
251 |
+die_compiler() { |
252 |
+ die "Need one of the following C++11 capable compilers:" |
253 |
+ die " >=sys-devel/gcc[cxx]-4.8" |
254 |
+ die " >=sys-devel/clang-3.4" |
255 |
+ die " >=dev-lang/icc-13" |
256 |
+} |
257 |
+ |
258 |
+pkg_setup() { |
259 |
+ fortran-2_pkg_setup |
260 |
+ use python && python-single-r1_pkg_setup |
261 |
+ echo |
262 |
+ elog "There are extra options on packages not yet in Gentoo:" |
263 |
+ elog "Afdsmgrd, AliEn, castor, Chirp, dCache, gfal, Globus, gLite," |
264 |
+ elog "HDFS, Monalisa, MaxDB/SapDB, SRP." |
265 |
+ elog "You can use the env variable EXTRA_ECONF variable for this." |
266 |
+ elog "For example, for SRP, you would set: " |
267 |
+ elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=${EROOT%/}/usr/$(get_libdir)\"" |
268 |
+ echo |
269 |
+ |
270 |
+ enewgroup rootd |
271 |
+ enewuser rootd -1 -1 /var/spool/rootd rootd |
272 |
+ |
273 |
+ use minimal && return |
274 |
+ |
275 |
+ if use math; then |
276 |
+ if use openmp; then |
277 |
+ if [[ $(tc-getCXX)$ == *g++* ]] && ! tc-has-openmp; then |
278 |
+ ewarn "You are using a g++ without OpenMP capabilities" |
279 |
+ die "Need an OpenMP capable compiler" |
280 |
+ else |
281 |
+ export USE_OPENMP=1 USE_PARALLEL_MINUIT2=1 |
282 |
+ fi |
283 |
+ elif use mpi; then |
284 |
+ export USE_MPI=1 USE_PARALLEL_MINUIT2=1 |
285 |
+ fi |
286 |
+ fi |
287 |
+ |
288 |
+ # check for supported compilers |
289 |
+ case $(tc-getCXX) in |
290 |
+ *g++*) |
291 |
+ if ! version_is_at_least "4.8" "$(gcc-version)"; then |
292 |
+ eerror "You are using a g++ without C++11 capabilities" |
293 |
+ die_compiler |
294 |
+ fi |
295 |
+ ;; |
296 |
+ *clang++*) |
297 |
+ # >=clang-3.4 is already in DEPEND |
298 |
+ ;; |
299 |
+ *icc*|*icpc*) |
300 |
+ if ! version_is_at_least "13" "$(has_version dev-lang/icc)"; then |
301 |
+ eerror "You are using an icc without C++11 capabilities" |
302 |
+ die_compiler |
303 |
+ fi |
304 |
+ ;; |
305 |
+ *) |
306 |
+ ewarn "You are using an unsupported compiler." |
307 |
+ ewarn "Please report any issues upstream." |
308 |
+ ;; |
309 |
+ esac |
310 |
+} |
311 |
+ |
312 |
+src_prepare() { |
313 |
+ epatch \ |
314 |
+ "${FILESDIR}"/${PN}-5.28.00b-glibc212.patch \ |
315 |
+ "${FILESDIR}"/${PN}-5.32.00-afs.patch \ |
316 |
+ "${FILESDIR}"/${PN}-5.32.00-cfitsio.patch \ |
317 |
+ "${FILESDIR}"/${PN}-5.32.00-chklib64.patch \ |
318 |
+ "${FILESDIR}"/${PN}-5.34.13-unuran.patch \ |
319 |
+ "${FILESDIR}"/${PN}-5.34.13-desktop.patch \ |
320 |
+ "${FILESDIR}"/${PN}-6.00.01-dotfont.patch \ |
321 |
+ "${FILESDIR}"/${PN}-6.00.01-nobyte-compile.patch \ |
322 |
+ "${FILESDIR}"/${PN}-6.00.01-prop-flags.patch \ |
323 |
+ "${FILESDIR}"/${PN}-6.00.01-llvm.patch \ |
324 |
+ "${FILESDIR}"/${PN}-6.00.01-geocad.patch \ |
325 |
+ "${FILESDIR}"/${PN}-6.00.01-tutorials-path.patch |
326 |
+ |
327 |
+ # make sure we use system libs and headers |
328 |
+ rm montecarlo/eg/inc/cfortran.h README/cfortran.doc || die |
329 |
+ #rm -r graf2d/asimage/src/libAfterImage || die |
330 |
+ rm -r graf3d/ftgl/{inc,src} || die |
331 |
+ rm -r graf2d/freetype/src || die |
332 |
+ rm -r graf3d/glew/{inc,src} || die |
333 |
+ rm -r core/pcre/src || die |
334 |
+ rm -r math/unuran/src/unuran-*.tar.gz || die |
335 |
+ LANG=C LC_ALL=C find core/zip -type f -name "[a-z]*" -print0 | \ |
336 |
+ xargs -0 rm || die |
337 |
+ rm -r core/lzma/src/*.tar.gz || die |
338 |
+ rm graf3d/gl/{inc,src}/gl2ps.* || die |
339 |
+ sed -i -e 's/^GLLIBS *:= .* $(OPENGLLIB)/& -lgl2ps/' \ |
340 |
+ graf3d/gl/Module.mk || die |
341 |
+ |
342 |
+ # In Gentoo, libPythia6 is called libpythia6 |
343 |
+ # iodbc is in /usr/include/iodbc |
344 |
+ # pg_config.h is checked instead of libpq-fe.h |
345 |
+ sed -i \ |
346 |
+ -e 's:libPythia6:libpythia6:g' \ |
347 |
+ -e 's:$ODBCINCDIR:$ODBCINCDIR /usr/include/iodbc:' \ |
348 |
+ -e 's:libpq-fe.h:pg_config.h:' \ |
349 |
+ configure || die "adjusting configure for Gentoo failed" |
350 |
+ |
351 |
+ # prefixify the configure script |
352 |
+ sed -i \ |
353 |
+ -e 's:/usr:${EPREFIX}/usr:g' \ |
354 |
+ configure || die "prefixify configure failed" |
355 |
+ |
356 |
+ # CSS should use local images |
357 |
+ sed -i -e 's,http://.*/images/,,' etc/html/ROOT.css || die "html sed failed" |
358 |
+} |
359 |
+ |
360 |
+# NB: ROOT uses bundled LLVM, because it is patched and API-incompatible with |
361 |
+# system LLVM. |
362 |
+# NB: As of 6.00.0.1 cmake is not ready as it can't fully replace configure, |
363 |
+# e.g. for afs and geocad. |
364 |
+ |
365 |
+src_configure() { |
366 |
+ local -a myconf |
367 |
+ # Some compilers need special care |
368 |
+ case $(tc-getCXX) in |
369 |
+ *clang++*) |
370 |
+ myconf=( |
371 |
+ --with-clang |
372 |
+ --with-f77="$(tc-getFC)" |
373 |
+ ) |
374 |
+ ;; |
375 |
+ *icc*|*icpc*) |
376 |
+ # For icc we need to provide architecture manually |
377 |
+ # and not to tamper with tc-get* |
378 |
+ use x86 && myconf=( linuxicc ) |
379 |
+ use amd64 && myconf=( linuxx8664icc ) |
380 |
+ ;; |
381 |
+ *) # gcc goes here too |
382 |
+ myconf=( |
383 |
+ --with-cc="$(tc-getCC)" |
384 |
+ --with-cxx="$(tc-getCXX)" |
385 |
+ --with-f77="$(tc-getFC)" |
386 |
+ --with-ld="$(tc-getCXX)" |
387 |
+ ) |
388 |
+ ;; |
389 |
+ esac |
390 |
+ |
391 |
+ # the configure script is not the standard autotools |
392 |
+ myconf+=( |
393 |
+ --prefix="${EPREFIX}/usr" |
394 |
+ --etcdir="${EPREFIX}/etc/root" |
395 |
+ --libdir="${EPREFIX}/usr/$(get_libdir)/${PN}" |
396 |
+ --docdir="${EPREFIX}${DOC_DIR}" |
397 |
+ --tutdir="${EPREFIX}${DOC_DIR}/examples/tutorials" |
398 |
+ --testdir="${EPREFIX}${DOC_DIR}/examples/tests" |
399 |
+ --disable-werror |
400 |
+ --nohowto |
401 |
+ ) |
402 |
+ |
403 |
+ if use minimal; then |
404 |
+ myconf+=( $(usex X --gminimal --minimal) ) |
405 |
+ else |
406 |
+ myconf+=( |
407 |
+ --with-afs-shared=yes |
408 |
+ --with-sys-iconpath="${EPREFIX}/usr/share/pixmaps" |
409 |
+ --disable-builtin-ftgl |
410 |
+ --disable-builtin-freetype |
411 |
+ --disable-builtin-glew |
412 |
+ --disable-builtin-pcre |
413 |
+ --disable-builtin-zlib |
414 |
+ --disable-builtin-lzma |
415 |
+ --enable-astiff |
416 |
+ --enable-explicitlink |
417 |
+ --enable-gdml |
418 |
+ --enable-memstat |
419 |
+ --enable-shadowpw |
420 |
+ --enable-shared |
421 |
+ --enable-soversion |
422 |
+ --enable-table |
423 |
+ --fail-on-missing |
424 |
+ $(use_enable X x11) |
425 |
+ $(use_enable X asimage) |
426 |
+ $(use_enable X xft) |
427 |
+ $(use_enable afs) |
428 |
+ $(use_enable avahi bonjour) |
429 |
+ $(use_enable fits fitsio) |
430 |
+ $(use_enable fftw fftw3) |
431 |
+ $(use_enable geocad) |
432 |
+ $(use_enable graphviz gviz) |
433 |
+ $(use_enable kerberos krb5) |
434 |
+ $(use_enable ldap) |
435 |
+ $(use_enable math genvector) |
436 |
+ $(use_enable math gsl-shared) |
437 |
+ $(use_enable math mathmore) |
438 |
+ $(use_enable math minuit2) |
439 |
+ $(use_enable math roofit) |
440 |
+ $(use_enable math tmva) |
441 |
+ $(use_enable math vc) |
442 |
+ $(use_enable math vdt) |
443 |
+ $(use_enable math unuran) |
444 |
+ $(use_enable mysql) |
445 |
+ $(use_enable odbc) |
446 |
+ $(use_enable opengl) |
447 |
+ $(use_enable oracle) |
448 |
+ $(use_enable postgres pgsql) |
449 |
+ $(usex postgres \ |
450 |
+ "--with-pgsql-incdir=$(pg_config --includedir)" "") |
451 |
+ $(use_enable prefix rpath) |
452 |
+ $(use_enable pythia6) |
453 |
+ $(use_enable pythia8) |
454 |
+ $(use_enable python) |
455 |
+ $(use_enable qt4 qt) |
456 |
+ $(use_enable qt4 qtgsi) |
457 |
+ $(use_enable sqlite) |
458 |
+ $(use_enable ssl) |
459 |
+ $(use_enable xml) |
460 |
+ $(use_enable xrootd) |
461 |
+ ${EXTRA_ECONF} |
462 |
+ ) |
463 |
+ fi |
464 |
+ |
465 |
+ ./configure ${myconf[@]} || die "configure failed" |
466 |
+} |
467 |
+ |
468 |
+src_compile() { |
469 |
+ emake \ |
470 |
+ OPT="${CXXFLAGS}" \ |
471 |
+ F77OPT="${FFLAGS}" \ |
472 |
+ ROOTSYS="${S}" \ |
473 |
+ LD_LIBRARY_PATH="${S}/lib" |
474 |
+ use emacs && ! use minimal && elisp-compile build/misc/*.el |
475 |
+} |
476 |
+ |
477 |
+daemon_install() { |
478 |
+ local daemons="rootd proofd" |
479 |
+ dodir /var/spool/rootd |
480 |
+ fowners rootd:rootd /var/spool/rootd |
481 |
+ dodir /var/spool/rootd/{pub,tmp} |
482 |
+ fperms 1777 /var/spool/rootd/{pub,tmp} |
483 |
+ |
484 |
+ for i in ${daemons}; do |
485 |
+ newinitd "${FILESDIR}"/${i}.initd ${i} |
486 |
+ newconfd "${FILESDIR}"/${i}.confd ${i} |
487 |
+ done |
488 |
+ if use xinetd; then |
489 |
+ insinto /etc/xinetd |
490 |
+ doins "${S}"/etc/daemons/{rootd,proofd}.xinetd |
491 |
+ fi |
492 |
+} |
493 |
+ |
494 |
+desktop_install() { |
495 |
+ cd "${S}" |
496 |
+ echo "Icon=root-system-bin" >> etc/root.desktop |
497 |
+ domenu etc/root.desktop |
498 |
+ doicon build/package/debian/root-system-bin.png |
499 |
+ |
500 |
+ insinto /usr/share/icons/hicolor/48x48/mimetypes |
501 |
+ doins build/package/debian/application-x-root.png |
502 |
+ |
503 |
+ insinto /usr/share/icons/hicolor/48x48/apps |
504 |
+ doicon build/package/debian/root-system-bin.xpm |
505 |
+} |
506 |
+ |
507 |
+cleanup_install() { |
508 |
+ # Cleanup of files either already distributed or unused on Gentoo |
509 |
+ pushd "${ED}" > /dev/null |
510 |
+ rm usr/share/root/fonts/LICENSE || die |
511 |
+ rm etc/root/proof/*.sample || die |
512 |
+ rm -r etc/root/daemons || die |
513 |
+ # these should be in PATH |
514 |
+ mv etc/root/proof/utils/pq2/pq2* usr/bin/ || die |
515 |
+ rm ${DOC_DIR#/}/{INSTALL,LICENSE} || die |
516 |
+ use examples || rm -r ${DOC_DIR#/}/examples || die |
517 |
+} |
518 |
+ |
519 |
+src_install() { |
520 |
+ emake DESTDIR="${D}" install |
521 |
+ dodoc README.md |
522 |
+ |
523 |
+ echo "LDPATH=${EPREFIX%/}/usr/$(get_libdir)/root" > 99root |
524 |
+ |
525 |
+ if ! use minimal; then |
526 |
+ use pythia8 && echo "PYTHIA8=${EPREFIX%/}/usr" >> 99root |
527 |
+ if use python; then |
528 |
+ echo "PYTHONPATH=${EPREFIX%/}/usr/$(get_libdir)/root" >> 99root |
529 |
+ python_optimize "${D}/usr/$(get_libdir)/root" |
530 |
+ fi |
531 |
+ use emacs && elisp-install ${PN} build/misc/*.{el,elc} |
532 |
+ if use examples; then |
533 |
+ # these should really be taken care of by the root make install |
534 |
+ insinto ${DOC_DIR}/examples/tutorials/tmva |
535 |
+ doins -r tmva/test |
536 |
+ fi |
537 |
+ fi |
538 |
+ doenvd 99root |
539 |
+ |
540 |
+ # The build system installs Emacs support unconditionally in the wrong |
541 |
+ # directory. Remove it and call elisp-install in case of USE=emacs. |
542 |
+ rm -r "${ED}"/usr/share/emacs || die |
543 |
+ |
544 |
+ daemon_install |
545 |
+ desktop_install |
546 |
+ cleanup_install |
547 |
+ |
548 |
+ # do not copress files used by ROOT's CLI (.credit, .demo, .license) |
549 |
+ docompress -x "${DOC_DIR}"/{CREDITS,LICENSE,examples/tutorials} |
550 |
+ # needed for .license command to work |
551 |
+ dosym "${ED}"usr/portage/licenses/LGPL-2.1 "${DOC_DIR}/LICENSE" |
552 |
+} |
553 |
+ |
554 |
+pkg_postinst() { |
555 |
+ fdo-mime_desktop_database_update |
556 |
+} |
557 |
+ |
558 |
+pkg_postrm() { |
559 |
+ fdo-mime_desktop_database_update |
560 |
+} |