1 |
bircoph 15/03/02 08:27:34 |
2 |
|
3 |
Modified: metadata.xml root-5.34.18-r1.ebuild |
4 |
root-5.34.18.ebuild ChangeLog |
5 |
root-5.32.03-r2.ebuild |
6 |
Added: root-5.34.26.ebuild |
7 |
Log: |
8 |
version bump |
9 |
|
10 |
Signed-off-by: Andrew Savchenko <bircoph@g.o> |
11 |
(Portage version: 2.2.17/cvs/Linux i686, signed Manifest commit with key 565953B95372756C) |
12 |
|
13 |
Revision Changes Path |
14 |
1.25 sci-physics/root/metadata.xml |
15 |
|
16 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/metadata.xml?rev=1.25&view=markup |
17 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/metadata.xml?rev=1.25&content-type=text/plain |
18 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/metadata.xml?r1=1.24&r2=1.25 |
19 |
|
20 |
Index: metadata.xml |
21 |
=================================================================== |
22 |
RCS file: /var/cvsroot/gentoo-x86/sci-physics/root/metadata.xml,v |
23 |
retrieving revision 1.24 |
24 |
retrieving revision 1.25 |
25 |
diff -u -r1.24 -r1.25 |
26 |
--- metadata.xml 11 Nov 2014 20:02:40 -0000 1.24 |
27 |
+++ metadata.xml 2 Mar 2015 08:27:34 -0000 1.25 |
28 |
@@ -16,9 +16,12 @@ |
29 |
</longdescription> |
30 |
<use> |
31 |
<flag name="c++0x"> Build ROOT using the C++11 standard. Not supported, requires <pkg>sys-devel/gcc</pkg>>=4.7.0</flag> |
32 |
+ <flag name="c++11"> Build ROOT using the C++11 standard</flag> |
33 |
+ <flag name="c++14"> Build ROOT using the C++14 standard</flag> |
34 |
<flag name="clarens"> Build the Clarens and PEAC plug-ins, to use in a GRID enabled analysis</flag> |
35 |
<flag name="fits">Support for images and data from FITS files with <pkg>sci-libs/cfitsio</pkg></flag> |
36 |
<flag name="htmldoc">Generate html documentation</flag> |
37 |
+ <flag name="http">Enable http server support including but not limited to fastcgi support</flag> |
38 |
<flag name="math">Build all math related libraries plugins, needs <pkg>sci-libs/gsl</pkg> </flag> |
39 |
<flag name="metric">Default to A4 paper size and metric measurement</flag> |
40 |
<flag name="pythia6">Build the interface for <pkg>sci-physics/pythia</pkg> version 6.x </flag> |
41 |
|
42 |
|
43 |
|
44 |
1.7 sci-physics/root/root-5.34.18-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/root-5.34.18-r1.ebuild?rev=1.7&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/root-5.34.18-r1.ebuild?rev=1.7&content-type=text/plain |
48 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/root-5.34.18-r1.ebuild?r1=1.6&r2=1.7 |
49 |
|
50 |
Index: root-5.34.18-r1.ebuild |
51 |
=================================================================== |
52 |
RCS file: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.34.18-r1.ebuild,v |
53 |
retrieving revision 1.6 |
54 |
retrieving revision 1.7 |
55 |
diff -u -r1.6 -r1.7 |
56 |
--- root-5.34.18-r1.ebuild 28 Dec 2014 16:55:15 -0000 1.6 |
57 |
+++ root-5.34.18-r1.ebuild 2 Mar 2015 08:27:34 -0000 1.7 |
58 |
@@ -1,6 +1,6 @@ |
59 |
-# Copyright 1999-2014 Gentoo Foundation |
60 |
+# Copyright 1999-2015 Gentoo Foundation |
61 |
# Distributed under the terms of the GNU General Public License v2 |
62 |
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.34.18-r1.ebuild,v 1.6 2014/12/28 16:55:15 titanofold Exp $ |
63 |
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.34.18-r1.ebuild,v 1.7 2015/03/02 08:27:34 bircoph Exp $ |
64 |
|
65 |
EAPI=5 |
66 |
|
67 |
|
68 |
|
69 |
|
70 |
1.5 sci-physics/root/root-5.34.18.ebuild |
71 |
|
72 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/root-5.34.18.ebuild?rev=1.5&view=markup |
73 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/root-5.34.18.ebuild?rev=1.5&content-type=text/plain |
74 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/root-5.34.18.ebuild?r1=1.4&r2=1.5 |
75 |
|
76 |
Index: root-5.34.18.ebuild |
77 |
=================================================================== |
78 |
RCS file: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.34.18.ebuild,v |
79 |
retrieving revision 1.4 |
80 |
retrieving revision 1.5 |
81 |
diff -u -r1.4 -r1.5 |
82 |
--- root-5.34.18.ebuild 28 Dec 2014 16:55:15 -0000 1.4 |
83 |
+++ root-5.34.18.ebuild 2 Mar 2015 08:27:34 -0000 1.5 |
84 |
@@ -1,6 +1,6 @@ |
85 |
-# Copyright 1999-2014 Gentoo Foundation |
86 |
+# Copyright 1999-2015 Gentoo Foundation |
87 |
# Distributed under the terms of the GNU General Public License v2 |
88 |
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.34.18.ebuild,v 1.4 2014/12/28 16:55:15 titanofold Exp $ |
89 |
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.34.18.ebuild,v 1.5 2015/03/02 08:27:34 bircoph Exp $ |
90 |
|
91 |
EAPI=5 |
92 |
|
93 |
|
94 |
|
95 |
|
96 |
1.136 sci-physics/root/ChangeLog |
97 |
|
98 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/ChangeLog?rev=1.136&view=markup |
99 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/ChangeLog?rev=1.136&content-type=text/plain |
100 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/ChangeLog?r1=1.135&r2=1.136 |
101 |
|
102 |
Index: ChangeLog |
103 |
=================================================================== |
104 |
RCS file: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v |
105 |
retrieving revision 1.135 |
106 |
retrieving revision 1.136 |
107 |
diff -u -r1.135 -r1.136 |
108 |
--- ChangeLog 28 Dec 2014 16:55:15 -0000 1.135 |
109 |
+++ ChangeLog 2 Mar 2015 08:27:34 -0000 1.136 |
110 |
@@ -1,6 +1,13 @@ |
111 |
# ChangeLog for sci-physics/root |
112 |
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
113 |
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.135 2014/12/28 16:55:15 titanofold Exp $ |
114 |
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
115 |
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.136 2015/03/02 08:27:34 bircoph Exp $ |
116 |
+ |
117 |
+*root-5.34.26 (02 Mar 2015) |
118 |
+ |
119 |
+ 02 Mar 2015; Andrew Savchenko <bircoph@g.o> +root-5.34.26.ebuild, |
120 |
+ files/root-5.32.00-chklib64.patch, metadata.xml: |
121 |
+ Version bump (from science overlay). Rework compilers handling, |
122 |
+ *flags handling. Add support for http, C++14. Fix html headers. |
123 |
|
124 |
28 Dec 2014; Aaron W. Swenson <titanofold@g.o> root-5.32.03-r2.ebuild, |
125 |
root-5.34.18.ebuild, root-5.34.18-r1.ebuild: |
126 |
|
127 |
|
128 |
|
129 |
1.9 sci-physics/root/root-5.32.03-r2.ebuild |
130 |
|
131 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/root-5.32.03-r2.ebuild?rev=1.9&view=markup |
132 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/root-5.32.03-r2.ebuild?rev=1.9&content-type=text/plain |
133 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/root-5.32.03-r2.ebuild?r1=1.8&r2=1.9 |
134 |
|
135 |
Index: root-5.32.03-r2.ebuild |
136 |
=================================================================== |
137 |
RCS file: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.32.03-r2.ebuild,v |
138 |
retrieving revision 1.8 |
139 |
retrieving revision 1.9 |
140 |
diff -u -r1.8 -r1.9 |
141 |
--- root-5.32.03-r2.ebuild 28 Dec 2014 16:55:15 -0000 1.8 |
142 |
+++ root-5.32.03-r2.ebuild 2 Mar 2015 08:27:34 -0000 1.9 |
143 |
@@ -1,6 +1,6 @@ |
144 |
-# Copyright 1999-2014 Gentoo Foundation |
145 |
+# Copyright 1999-2015 Gentoo Foundation |
146 |
# Distributed under the terms of the GNU General Public License v2 |
147 |
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.32.03-r2.ebuild,v 1.8 2014/12/28 16:55:15 titanofold Exp $ |
148 |
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.32.03-r2.ebuild,v 1.9 2015/03/02 08:27:34 bircoph Exp $ |
149 |
|
150 |
EAPI=4 |
151 |
|
152 |
|
153 |
|
154 |
|
155 |
1.1 sci-physics/root/root-5.34.26.ebuild |
156 |
|
157 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/root-5.34.26.ebuild?rev=1.1&view=markup |
158 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/root-5.34.26.ebuild?rev=1.1&content-type=text/plain |
159 |
|
160 |
Index: root-5.34.26.ebuild |
161 |
=================================================================== |
162 |
# Copyright 1999-2015 Gentoo Foundation |
163 |
# Distributed under the terms of the GNU General Public License v2 |
164 |
# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.34.26.ebuild,v 1.1 2015/03/02 08:27:34 bircoph Exp $ |
165 |
|
166 |
EAPI=5 |
167 |
|
168 |
if [[ ${PV} == "9999" ]] ; then |
169 |
inherit git-r3 |
170 |
EGIT_REPO_URI="http://root.cern.ch/git/root.git" |
171 |
else |
172 |
SRC_URI="ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz" |
173 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
174 |
fi |
175 |
SRC_URI+=" http://dev.gentoo.org/~bircoph/patches/${PN}-5.34.26-ldflags.patch.xz" |
176 |
|
177 |
PYTHON_COMPAT=( python2_7 ) |
178 |
|
179 |
inherit elisp-common eutils fdo-mime fortran-2 multilib python-single-r1 \ |
180 |
toolchain-funcs user versionator |
181 |
|
182 |
DESCRIPTION="C++ data analysis framework and interpreter from CERN" |
183 |
HOMEPAGE="http://root.cern.ch/" |
184 |
DOC_URI="ftp://root.cern.ch/${PN}/doc" |
185 |
|
186 |
SLOT="0/$(get_version_component_range 1-3 ${PV})" |
187 |
LICENSE="LGPL-2.1 freedist MSttfEULA LGPL-3 libpng UoI-NCSA" |
188 |
IUSE="+X afs avahi c++11 c++14 doc emacs examples fits fftw |
189 |
graphviz http kerberos ldap +math minimal mpi mysql odbc |
190 |
+opengl openmp oracle postgres prefix pythia6 pythia8 |
191 |
python qt4 +reflex ruby sqlite ssl xinetd xml xrootd" |
192 |
|
193 |
# TODO: add support for: davix |
194 |
# TODO: unbundle: vdt |
195 |
|
196 |
REQUIRED_USE=" |
197 |
!X? ( !minimal? ( !opengl !qt4 ) ) |
198 |
mpi? ( math !openmp ) |
199 |
openmp? ( math !mpi ) |
200 |
python? ( ${PYTHON_REQUIRED_USE} ) |
201 |
" |
202 |
|
203 |
CDEPEND=" |
204 |
app-arch/xz-utils:0= |
205 |
>=dev-lang/cfortran-4.4-r2 |
206 |
dev-libs/libpcre:3= |
207 |
media-fonts/dejavu |
208 |
media-libs/freetype:2= |
209 |
media-libs/giflib:0= |
210 |
media-libs/libpng:0= |
211 |
media-libs/tiff:0= |
212 |
sys-libs/zlib:0= |
213 |
virtual/jpeg:0 |
214 |
virtual/shadow |
215 |
X? ( |
216 |
media-libs/ftgl:0= |
217 |
media-libs/glew:0= |
218 |
x11-libs/libX11:0= |
219 |
x11-libs/libXext:0= |
220 |
x11-libs/libXpm:0= |
221 |
!minimal? ( |
222 |
|| ( |
223 |
media-libs/libafterimage:0=[gif,jpeg,png,tiff] |
224 |
>=x11-wm/afterstep-2.2.11:0=[gif,jpeg,png,tiff] |
225 |
) |
226 |
opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps:0= ) |
227 |
qt4? ( |
228 |
dev-qt/qtgui:4= |
229 |
dev-qt/qtopengl:4= |
230 |
dev-qt/qt3support:4= |
231 |
dev-qt/qtsvg:4= |
232 |
dev-qt/qtwebkit:4= |
233 |
dev-qt/qtxmlpatterns:4= |
234 |
) |
235 |
x11-libs/libXft:0= |
236 |
) |
237 |
) |
238 |
!minimal? ( |
239 |
afs? ( net-fs/openafs ) |
240 |
avahi? ( net-dns/avahi:0= ) |
241 |
emacs? ( virtual/emacs ) |
242 |
fits? ( sci-libs/cfitsio:0= ) |
243 |
fftw? ( sci-libs/fftw:3.0= ) |
244 |
graphviz? ( media-gfx/graphviz:0= ) |
245 |
http? ( dev-libs/fcgi:0= ) |
246 |
kerberos? ( virtual/krb5 ) |
247 |
ldap? ( net-nds/openldap:0= ) |
248 |
math? ( |
249 |
sci-libs/gsl:0= |
250 |
sci-mathematics/unuran:0= |
251 |
mpi? ( virtual/mpi ) |
252 |
) |
253 |
mysql? ( virtual/mysql ) |
254 |
odbc? ( || ( dev-db/libiodbc:0= dev-db/unixODBC:0= ) ) |
255 |
oracle? ( dev-db/oracle-instantclient-basic:0= ) |
256 |
postgres? ( dev-db/postgresql:= ) |
257 |
pythia6? ( sci-physics/pythia:6= ) |
258 |
pythia8? ( >=sci-physics/pythia-8.1.80:8= ) |
259 |
python? ( ${PYTHON_DEPS} ) |
260 |
ruby? ( |
261 |
dev-lang/ruby:= |
262 |
dev-ruby/rubygems:= |
263 |
) |
264 |
sqlite? ( dev-db/sqlite:3= ) |
265 |
ssl? ( dev-libs/openssl:0= ) |
266 |
xml? ( dev-libs/libxml2:2= ) |
267 |
xrootd? ( >=net-libs/xrootd-3.3.5:0= ) |
268 |
)" |
269 |
|
270 |
DEPEND="${CDEPEND} |
271 |
virtual/pkgconfig" |
272 |
|
273 |
RDEPEND="${CDEPEND} |
274 |
reflex? ( dev-cpp/gccxml ) |
275 |
xinetd? ( sys-apps/xinetd )" |
276 |
|
277 |
PDEPEND="doc? ( !minimal? ( ~app-doc/root-docs-${PV}[http=,math=] ) )" |
278 |
|
279 |
S="${WORKDIR}/${PN}" |
280 |
|
281 |
# install stuff in ${P} and not ${PF} for easier tracking in root-docs |
282 |
DOC_DIR="/usr/share/doc/${P}" |
283 |
|
284 |
die_compiler() { |
285 |
eerror "You are using a $(tc-getCXX) without C++$1 capabilities" |
286 |
die "Need one of the following C++$1 capable compilers:\n"\ |
287 |
" >=sys-devel/gcc[cxx]-$2\n"\ |
288 |
" >=sys-devel/clang-$3\n"\ |
289 |
" >=dev-lang/icc-$4" |
290 |
} |
291 |
|
292 |
# check compiler to satisfy minimal versions |
293 |
# $1 - std version |
294 |
# $2 - g++ |
295 |
# $3 - clang++ |
296 |
# $4 - icc/icpc |
297 |
check_compiler() { |
298 |
case "$(tc-getCXX)" in |
299 |
*clang++*) |
300 |
version_is_at_least "$3" "$(has_version sys-devel/clang)" || die_compiler "$1" "$2" "$3" "$4" |
301 |
;; |
302 |
*g++*) |
303 |
version_is_at_least "$2" "$(gcc-version)" || die_compiler "$1" "$2" "$3" "$4" |
304 |
;; |
305 |
*icc*|*icpc*) |
306 |
version_is_at_least "$4" "$(has_version dev-lang/icc)" || die_compiler "$1" "$2" "$3" "$4" |
307 |
;; |
308 |
*) |
309 |
ewarn "You are using an unsupported compiler." |
310 |
ewarn "Please report any issues upstream." |
311 |
;; |
312 |
esac |
313 |
} |
314 |
|
315 |
pkg_setup() { |
316 |
fortran-2_pkg_setup |
317 |
use python && python-single-r1_pkg_setup |
318 |
echo |
319 |
elog "There are extra options on packages not yet in Gentoo:" |
320 |
elog "Afdsmgrd, AliEn, castor, Chirp, dCache, gfal, Globus, gLite," |
321 |
elog "HDFS, Monalisa, MaxDB/SapDB, SRP." |
322 |
elog "You can use the env variable EXTRA_ECONF variable for this." |
323 |
elog "For example, for SRP, you would set: " |
324 |
elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=${EROOT%/}/usr/$(get_libdir)\"" |
325 |
echo |
326 |
|
327 |
enewgroup rootd |
328 |
enewuser rootd -1 -1 /var/spool/rootd rootd |
329 |
|
330 |
use minimal && return |
331 |
|
332 |
if use math; then |
333 |
if use openmp; then |
334 |
if [[ "$(tc-getCXX)" == *g++* && "$(tc-getCXX)" != *clang++* ]] && ! tc-has-openmp; then |
335 |
ewarn "You are using a g++ without OpenMP capabilities" |
336 |
die "Need an OpenMP capable compiler" |
337 |
else |
338 |
export USE_OPENMP=1 USE_PARALLEL_MINUIT2=1 |
339 |
fi |
340 |
elif use mpi; then |
341 |
export USE_MPI=1 USE_PARALLEL_MINUIT2=1 |
342 |
fi |
343 |
fi |
344 |
|
345 |
use c++11 && check_compiler "11" "4.8" "3.3" "13" |
346 |
use c++14 && check_compiler "14" "4.9" "3.4" "15" |
347 |
} |
348 |
|
349 |
src_prepare() { |
350 |
epatch \ |
351 |
"${FILESDIR}"/${PN}-5.28.00b-glibc212.patch \ |
352 |
"${FILESDIR}"/${PN}-5.32.00-afs.patch \ |
353 |
"${FILESDIR}"/${PN}-5.32.00-cfitsio.patch \ |
354 |
"${FILESDIR}"/${PN}-5.32.00-chklib64.patch \ |
355 |
"${FILESDIR}"/${PN}-5.32.00-dotfont.patch \ |
356 |
"${FILESDIR}"/${PN}-5.34.05-nobyte-compile.patch \ |
357 |
"${FILESDIR}"/${PN}-5.34.13-unuran.patch \ |
358 |
"${FILESDIR}"/${PN}-5.34.13-desktop.patch \ |
359 |
"${WORKDIR}"/${PN}-5.34.26-ldflags.patch |
360 |
|
361 |
# make sure we use system libs and headers |
362 |
rm montecarlo/eg/inc/cfortran.h README/cfortran.doc || die |
363 |
rm -r graf2d/asimage/src/libAfterImage || die |
364 |
rm -r graf3d/ftgl/{inc,src} || die |
365 |
rm -r graf2d/freetype/src || die |
366 |
rm -r graf3d/glew/{inc,src} || die |
367 |
rm -r core/pcre/src || die |
368 |
rm -r math/unuran/src/unuran-*.tar.gz || die |
369 |
LANG=C LC_ALL=C find core/zip -type f -name "[a-z]*" -print0 | \ |
370 |
xargs -0 rm || die |
371 |
rm -r core/lzma/src/*.tar.gz || die |
372 |
rm graf3d/gl/{inc,src}/gl2ps.* || die |
373 |
sed -i -e 's/^GLLIBS *:= .* $(OPENGLLIB)/& -lgl2ps/' \ |
374 |
graf3d/gl/Module.mk || die |
375 |
|
376 |
# In Gentoo, libPythia6 is called libpythia6 |
377 |
# iodbc is in /usr/include/iodbc |
378 |
# pg_config.h is checked instead of libpq-fe.h |
379 |
sed -i \ |
380 |
-e 's:libPythia6:libpythia6:g' \ |
381 |
-e 's:$ODBCINCDIR:$ODBCINCDIR /usr/include/iodbc:' \ |
382 |
-e 's:libpq-fe.h:pg_config.h:' \ |
383 |
configure || die "adjusting configure for Gentoo failed" |
384 |
|
385 |
# prefixify the configure script |
386 |
sed -i \ |
387 |
-e 's:/usr:${EPREFIX}/usr:g' \ |
388 |
configure || die "prefixify configure failed" |
389 |
|
390 |
# CSS should use local images |
391 |
sed -i -e 's,http://.*/,,' etc/html/ROOT.css || die "html sed failed" |
392 |
|
393 |
# fix reflex path (bug #497280) |
394 |
sed -i -e 's|${ROOTSYS}/lib|@libdir@|' config/genreflex.in || die |
395 |
|
396 |
# QTDIR only used for qt3 in gentoo, and configure looks for it. |
397 |
unset QTDIR |
398 |
} |
399 |
|
400 |
src_configure() { |
401 |
local -a myconf |
402 |
# Some compilers need special care |
403 |
case "$(tc-getCXX)" in |
404 |
*clang++*) |
405 |
myconf=( |
406 |
--with-clang |
407 |
--with-f77="$(tc-getFC)" |
408 |
) |
409 |
;; |
410 |
*icc*|*icpc*) |
411 |
# For icc we need to provide architecture manually |
412 |
# and not to tamper with tc-get* |
413 |
use x86 && myconf=( linuxicc ) |
414 |
use amd64 && myconf=( linuxx8664icc ) |
415 |
;; |
416 |
*) # gcc goes here too |
417 |
myconf=( |
418 |
--with-cc="$(tc-getCC)" |
419 |
--with-cxx="$(tc-getCXX)" |
420 |
--with-f77="$(tc-getFC)" |
421 |
--with-ld="$(tc-getCXX)" |
422 |
) |
423 |
;; |
424 |
esac |
425 |
|
426 |
# the configure script is not the standard autotools |
427 |
myconf+=( |
428 |
--prefix="${EPREFIX}/usr" |
429 |
--etcdir="${EPREFIX}/etc/root" |
430 |
--libdir="${EPREFIX}/usr/$(get_libdir)/${PN}" |
431 |
--docdir="${EPREFIX}${DOC_DIR}" |
432 |
--tutdir="${EPREFIX}${DOC_DIR}/examples/tutorials" |
433 |
--testdir="${EPREFIX}${DOC_DIR}/examples/tests" |
434 |
--disable-werror |
435 |
--nohowto |
436 |
--cflags='${CFLAGS}' |
437 |
--cxxflags='${CXXFLAGS}' |
438 |
--ldflags='${LDFLAGS}' |
439 |
) |
440 |
|
441 |
if use minimal; then |
442 |
myconf+=( $(usex X --gminimal --minimal) ) |
443 |
else |
444 |
myconf+=( |
445 |
--with-afs-shared=yes |
446 |
--with-sys-iconpath="${EPREFIX}/usr/share/pixmaps" |
447 |
--disable-builtin-afterimage |
448 |
--disable-builtin-ftgl |
449 |
--disable-builtin-freetype |
450 |
--disable-builtin-glew |
451 |
--disable-builtin-pcre |
452 |
--disable-builtin-zlib |
453 |
--disable-builtin-lzma |
454 |
--disable-cling |
455 |
--enable-astiff |
456 |
--enable-explicitlink |
457 |
--enable-gdml |
458 |
--enable-memstat |
459 |
--enable-shadowpw |
460 |
--enable-shared |
461 |
--enable-soversion |
462 |
--enable-table |
463 |
--fail-on-missing |
464 |
$(use_enable X x11) |
465 |
$(use_enable X asimage) |
466 |
$(use_enable X xft) |
467 |
$(use_enable afs) |
468 |
$(use_enable avahi bonjour) |
469 |
$(use_enable c++11 cxx11) |
470 |
$(use_enable c++14 cxx14) |
471 |
$(use_enable fits fitsio) |
472 |
$(use_enable fftw fftw3) |
473 |
$(use_enable graphviz gviz) |
474 |
$(use_enable http) |
475 |
$(use_enable kerberos krb5) |
476 |
$(use_enable ldap) |
477 |
$(use_enable math gsl-shared) |
478 |
$(use_enable math genvector) |
479 |
$(use_enable math mathmore) |
480 |
$(use_enable math minuit2) |
481 |
$(use_enable math roofit) |
482 |
$(use_enable math tmva) |
483 |
$(use_enable math unuran) |
484 |
$(use_enable mysql) |
485 |
$(usex mysql "--with-mysql-incdir=${EPREFIX}/usr/include/mysql" "") |
486 |
$(use_enable odbc) |
487 |
$(use_enable opengl) |
488 |
$(use_enable oracle) |
489 |
$(use_enable postgres pgsql) |
490 |
$(usex postgres "--with-pgsql-incdir=$(pg_config --includedir)" "") |
491 |
$(use_enable prefix rpath) |
492 |
$(use_enable pythia6) |
493 |
$(use_enable pythia8) |
494 |
$(use_enable python) |
495 |
$(use_enable qt4 qt) |
496 |
$(use_enable qt4 qtgsi) |
497 |
$(use_enable reflex cintex) |
498 |
$(use_enable reflex) |
499 |
$(use_enable ruby) |
500 |
$(use_enable sqlite) |
501 |
$(use_enable ssl) |
502 |
$(use_enable xml) |
503 |
$(use_enable xrootd) |
504 |
${EXTRA_ECONF} |
505 |
) |
506 |
fi |
507 |
|
508 |
./configure ${myconf[@]} || die "configure failed" |
509 |
} |
510 |
|
511 |
src_compile() { |
512 |
emake \ |
513 |
OPT="${CXXFLAGS}" \ |
514 |
F77OPT="${FFLAGS}" \ |
515 |
ROOTSYS="${S}" \ |
516 |
LD_LIBRARY_PATH="${S}/lib" |
517 |
use emacs && ! use minimal && elisp-compile build/misc/*.el |
518 |
} |
519 |
|
520 |
daemon_install() { |
521 |
local daemons="rootd proofd" |
522 |
dodir /var/spool/rootd |
523 |
fowners rootd:rootd /var/spool/rootd |
524 |
dodir /var/spool/rootd/{pub,tmp} |
525 |
fperms 1777 /var/spool/rootd/{pub,tmp} |
526 |
|
527 |
for i in ${daemons}; do |
528 |
newinitd "${FILESDIR}"/${i}.initd ${i} |
529 |
newconfd "${FILESDIR}"/${i}.confd ${i} |
530 |
done |
531 |
if use xinetd; then |
532 |
insinto /etc/xinetd |
533 |
doins "${S}"/etc/daemons/{rootd,proofd}.xinetd |
534 |
fi |
535 |
} |
536 |
|
537 |
desktop_install() { |
538 |
cd "${S}" |
539 |
echo "Icon=root-system-bin" >> etc/root.desktop |
540 |
domenu etc/root.desktop |
541 |
doicon build/package/debian/root-system-bin.png |
542 |
|
543 |
insinto /usr/share/icons/hicolor/48x48/mimetypes |
544 |
doins build/package/debian/application-x-root.png |
545 |
|
546 |
insinto /usr/share/icons/hicolor/48x48/apps |
547 |
doicon build/package/debian/root-system-bin.xpm |
548 |
} |
549 |
|
550 |
cleanup_install() { |
551 |
# Cleanup of files either already distributed or unused on Gentoo |
552 |
pushd "${ED}" > /dev/null |
553 |
rm usr/share/root/fonts/LICENSE || die |
554 |
rm etc/root/proof/*.sample || die |
555 |
rm -r etc/root/daemons || die |
556 |
# these should be in PATH |
557 |
mv etc/root/proof/utils/pq2/pq2* usr/bin/ || die |
558 |
rm ${DOC_DIR#/}/{INSTALL,LICENSE,COPYING.CINT} || die |
559 |
use examples || rm -r ${DOC_DIR#/}/examples || die |
560 |
cd usr/$(get_libdir)/root/cint/cint |
561 |
rm lib/posix/mktypes lib/dll_stl/setup lib/G__* || die |
562 |
rm lib/dll_stl/G__* lib/dll_stl/rootcint_* lib/posix/exten.o || die |
563 |
rm include/makehpib || die |
564 |
popd > /dev/null |
565 |
} |
566 |
|
567 |
src_install() { |
568 |
emake DESTDIR="${D}" install |
569 |
|
570 |
echo "LDPATH=${EPREFIX%/}/usr/$(get_libdir)/root" > 99root |
571 |
|
572 |
if ! use minimal; then |
573 |
use pythia8 && echo "PYTHIA8=${EPREFIX%/}/usr" >> 99root |
574 |
if use python; then |
575 |
echo "PYTHONPATH=${EPREFIX%/}/usr/$(get_libdir)/root" >> 99root |
576 |
python_optimize "${D}/usr/$(get_libdir)/root" |
577 |
use reflex && python_optimize "${D}/usr/$(get_libdir)/root/python/genreflex/" |
578 |
fi |
579 |
use ruby && \ |
580 |
echo "RUBYLIB=${EPREFIX%/}/usr/$(get_libdir)/root" >> 99root |
581 |
use emacs && elisp-install ${PN} build/misc/*.{el,elc} |
582 |
if use examples; then |
583 |
# these should really be taken care of by the root make install |
584 |
insinto ${DOC_DIR}/examples/tutorials/tmva |
585 |
doins -r tmva/test |
586 |
fi |
587 |
fi |
588 |
doenvd 99root |
589 |
|
590 |
# The build system installs Emacs support unconditionally in the wrong |
591 |
# directory. Remove it and call elisp-install in case of USE=emacs. |
592 |
rm -r "${ED}"/usr/share/emacs || die |
593 |
|
594 |
daemon_install |
595 |
desktop_install |
596 |
cleanup_install |
597 |
|
598 |
# do not copress files used by ROOT's CLI (.credit, .demo, .license) |
599 |
docompress -x "${DOC_DIR}"/{CREDITS,examples/tutorials} |
600 |
# needed for .license command to work |
601 |
dosym "${ED}"usr/portage/licenses/LGPL-2.1 "${DOC_DIR}/LICENSE" |
602 |
} |
603 |
|
604 |
pkg_postinst() { |
605 |
fdo-mime_desktop_database_update |
606 |
} |
607 |
|
608 |
pkg_postrm() { |
609 |
fdo-mime_desktop_database_update |
610 |
} |