1 |
commit: 6d9bea070c2086e48644f5907051d0b21aa5af69 |
2 |
Author: Andrew Savchenko <bircoph <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue May 28 20:25:58 2013 +0000 |
4 |
Commit: Andrew Savchenko <bircoph <AT> gmail <DOT> com> |
5 |
CommitDate: Tue May 28 20:25:58 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=6d9bea07 |
7 |
|
8 |
root: fix build with postgres |
9 |
|
10 |
--- |
11 |
sci-physics/root/ChangeLog | 7 +++++ |
12 |
.../{root-5.34.05.ebuild => root-5.34.07.ebuild} | 34 ++++++++++++---------- |
13 |
2 files changed, 25 insertions(+), 16 deletions(-) |
14 |
|
15 |
diff --git a/sci-physics/root/ChangeLog b/sci-physics/root/ChangeLog |
16 |
index 3317e68..bae3fb6 100644 |
17 |
--- a/sci-physics/root/ChangeLog |
18 |
+++ b/sci-physics/root/ChangeLog |
19 |
@@ -2,6 +2,13 @@ |
20 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
21 |
# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.96 2012/03/29 18:21:49 bicatali Exp $ |
22 |
|
23 |
+*root-5.34.07 (28 May 2013) |
24 |
+ |
25 |
+ 28 May 2013; Andrew Savchenko <bircoph@×××××.com> -root-5.34.05.ebuild, |
26 |
+ +root-5.34.07.ebuild: |
27 |
+ Fix build with USE="postgres": Gentoo doesn't provide |
28 |
+ /usr/include/postgresql symlink anymore. Remove old. |
29 |
+ |
30 |
03 Mar 2013; Justin Lecher <jlec@g.o> root-5.34.05.ebuild, |
31 |
root-9999.ebuild, metadata.xml: |
32 |
Update to new qt deps names |
33 |
|
34 |
diff --git a/sci-physics/root/root-5.34.05.ebuild b/sci-physics/root/root-5.34.07.ebuild |
35 |
similarity index 93% |
36 |
rename from sci-physics/root/root-5.34.05.ebuild |
37 |
rename to sci-physics/root/root-5.34.07.ebuild |
38 |
index ee7dad8..6c85440 100644 |
39 |
--- a/sci-physics/root/root-5.34.05.ebuild |
40 |
+++ b/sci-physics/root/root-5.34.07.ebuild |
41 |
@@ -1,14 +1,12 @@ |
42 |
# Copyright 1999-2013 Gentoo Foundation |
43 |
# Distributed under the terms of the GNU General Public License v2 |
44 |
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.34.03.ebuild,v 1.2 2013/01/22 17:18:55 bicatali Exp $ |
45 |
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.34.07.ebuild,v 1.1 2013/05/23 23:52:31 bicatali Exp $ |
46 |
|
47 |
-EAPI=4 |
48 |
- |
49 |
-PYTHON_DEPEND="python? 2" |
50 |
+EAPI=5 |
51 |
|
52 |
if [[ ${PV} == "9999" ]] ; then |
53 |
- _SVN=subversion |
54 |
- ESVN_REPO_URI="http://root.cern.ch/svn/root/trunk" |
55 |
+ _GIT=git-2 |
56 |
+ EGIT_REPO_URI="http://root.cern.ch/git/root.git" |
57 |
SRC_URI="" |
58 |
KEYWORDS="" |
59 |
else |
60 |
@@ -16,7 +14,8 @@ else |
61 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
62 |
fi |
63 |
|
64 |
-inherit elisp-common eutils fdo-mime fortran-2 multilib python toolchain-funcs user ${_SVN} versionator |
65 |
+PYTHON_COMPAT=( python2_{5,6,7} ) |
66 |
+inherit elisp-common eutils fdo-mime fortran-2 multilib python-single-r1 toolchain-funcs user ${_GIT} versionator |
67 |
|
68 |
ROOFIT_DOC_PV=2.91-33 |
69 |
TMVA_DOC_PV=4.03 |
70 |
@@ -89,6 +88,7 @@ CDEPEND=" |
71 |
postgres? ( dev-db/postgresql-base ) |
72 |
pythia6? ( sci-physics/pythia:6 ) |
73 |
pythia8? ( sci-physics/pythia:8 ) |
74 |
+ python? ( ${PYTHON_DEPS} ) |
75 |
ruby? ( |
76 |
dev-lang/ruby |
77 |
dev-ruby/rubygems ) |
78 |
@@ -115,8 +115,7 @@ S="${WORKDIR}/${PN}" |
79 |
|
80 |
pkg_setup() { |
81 |
fortran-2_pkg_setup |
82 |
- python_set_active_version 2 |
83 |
- python_pkg_setup |
84 |
+ use python && python-single-r1_pkg_setup |
85 |
echo |
86 |
elog "There are extra options on packages not yet in Gentoo:" |
87 |
elog "AliEn, castor, Chirp, dCache, gfal, gLite, Globus," |
88 |
@@ -207,6 +206,8 @@ src_prepare() { |
89 |
} |
90 |
|
91 |
src_configure() { |
92 |
+ local myconfflags="" |
93 |
+ use postgres && myconfflags+=" --with-pgsql-incdir=$(pg_config --includedir)" |
94 |
# the configure script is not the standard autotools |
95 |
./configure \ |
96 |
--prefix="${EPREFIX}"/usr \ |
97 |
@@ -271,6 +272,7 @@ src_configure() { |
98 |
$(use_enable ssl) \ |
99 |
$(use_enable xml) \ |
100 |
$(use_enable xrootd) \ |
101 |
+ ${myconfflags} \ |
102 |
${EXTRA_ECONF} \ |
103 |
|| die "configure failed" |
104 |
} |
105 |
@@ -321,10 +323,9 @@ daemon_install() { |
106 |
|
107 |
desktop_install() { |
108 |
cd "${S}" |
109 |
- sed -e 's,@prefix@,/usr,' \ |
110 |
- build/package/debian/root-system-bin.desktop.in > root.desktop |
111 |
- domenu root.desktop |
112 |
- doicon "${S}"/build/package/debian/root-system-bin.png |
113 |
+ echo "Icon=root-system-bin" >> etc/root.desktop |
114 |
+ domenu etc/root.desktop |
115 |
+ doicon build/package/debian/root-system-bin.png |
116 |
|
117 |
insinto /usr/share/icons/hicolor/48x48/mimetypes |
118 |
doins build/package/debian/application-x-root.png |
119 |
@@ -338,7 +339,10 @@ src_install() { |
120 |
|
121 |
echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/root" > 99root |
122 |
use pythia8 && echo "PYTHIA8=${EPREFIX}/usr" >> 99root |
123 |
- use python && echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root |
124 |
+ if use python; then |
125 |
+ echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root |
126 |
+ python_optimize /usr/$(get_libdir)/root |
127 |
+ fi |
128 |
use ruby && echo "RUBYLIB=${EPREFIX}/usr/$(get_libdir)/root" >> 99root |
129 |
doenvd 99root |
130 |
|
131 |
@@ -370,10 +374,8 @@ src_install() { |
132 |
|
133 |
pkg_postinst() { |
134 |
fdo-mime_desktop_database_update |
135 |
- use python && python_mod_optimize /usr/$(get_libdir)/root |
136 |
} |
137 |
|
138 |
pkg_postrm() { |
139 |
fdo-mime_desktop_database_update |
140 |
- use python && python_mod_cleanup /usr/$(get_libdir)/root |
141 |
} |