1 |
commit: dfeaf2888e0b5dd40a220dd8c49f54c88ab0b287 |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 8 15:47:40 2011 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 8 15:47:40 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=dfeaf288 |
7 |
|
8 |
app-portage/packagekit: 0.6.13 → 0.6.13 |
9 |
|
10 |
--- |
11 |
...gekit-0.6.8.ebuild => packagekit-0.6.14.ebuild} | 98 +++++++++----------- |
12 |
app-portage/packagekit/packagekit-9999.ebuild | 14 ++-- |
13 |
2 files changed, 51 insertions(+), 61 deletions(-) |
14 |
|
15 |
diff --git a/app-portage/packagekit/packagekit-0.6.8.ebuild b/app-portage/packagekit/packagekit-0.6.14.ebuild |
16 |
similarity index 61% |
17 |
rename from app-portage/packagekit/packagekit-0.6.8.ebuild |
18 |
rename to app-portage/packagekit/packagekit-0.6.14.ebuild |
19 |
index 8e8cadf..8047d99 100644 |
20 |
--- a/app-portage/packagekit/packagekit-0.6.8.ebuild |
21 |
+++ b/app-portage/packagekit/packagekit-0.6.14.ebuild |
22 |
@@ -5,33 +5,49 @@ |
23 |
EAPI="2" |
24 |
|
25 |
inherit eutils multilib python nsplugins |
26 |
+if [[ ${PV} = 9999 ]]; then |
27 |
+ inherit autotools git |
28 |
+fi |
29 |
|
30 |
MY_PN="PackageKit" |
31 |
-MY_P=${MY_PN}-${PV} |
32 |
|
33 |
DESCRIPTION="Manage packages in a secure way using a cross-distro and cross-architecture API" |
34 |
HOMEPAGE="http://www.packagekit.org/" |
35 |
-SRC_URI="http://www.packagekit.org/releases/${MY_P}.tar.gz" |
36 |
+ |
37 |
+if [[ ${PV} = 9999 ]]; then |
38 |
+ EGIT_REPO_URI="git://anongit.freedesktop.org/git/${PN}/${MY_PN}" |
39 |
+ KEYWORDS="" |
40 |
+ DEPEND=">=dev-util/gtk-doc-1.9" |
41 |
+ RESTRICT="test" # tests are failing atm |
42 |
+ DOCS="AUTHORS MAINTAINERS NEWS README TODO" |
43 |
+else |
44 |
+ MY_P=${MY_PN}-${PV} |
45 |
+ SRC_URI="http://www.packagekit.org/releases/${MY_P}.tar.gz" |
46 |
+ KEYWORDS="~amd64 ~ppc ~x86" |
47 |
+ S="${WORKDIR}/${MY_P}" |
48 |
+ DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README TODO" |
49 |
+fi |
50 |
|
51 |
LICENSE="GPL-2" |
52 |
SLOT="0" |
53 |
-KEYWORDS="~amd64 ~ppc ~x86" |
54 |
-IUSE="connman +consolekit cron gtk networkmanager nls nsplugin pm-utils +policykit qt4 static-libs test udev" |
55 |
+IUSE="connman cron gtk +introspection networkmanager nls nsplugin pm-utils qt4 test udev" |
56 |
|
57 |
CDEPEND=" |
58 |
connman? ( net-misc/connman ) |
59 |
gtk? ( dev-libs/dbus-glib |
60 |
media-libs/fontconfig |
61 |
>=x11-libs/gtk+-2.14.0:2 |
62 |
+ >=x11-libs/gtk+-2.91.0:3 |
63 |
x11-libs/pango ) |
64 |
+ introspection? ( >=dev-libs/gobject-introspection-0.9.8 ) |
65 |
networkmanager? ( >=net-misc/networkmanager-0.6.4 ) |
66 |
nsplugin? ( dev-libs/dbus-glib |
67 |
dev-libs/glib:2 |
68 |
dev-libs/nspr |
69 |
x11-libs/cairo |
70 |
>=x11-libs/gtk+-2.14.0:2 |
71 |
+ >=x11-libs/gtk+-2.91.0:3 |
72 |
x11-libs/pango ) |
73 |
- policykit? ( >=sys-auth/polkit-0.97 ) |
74 |
qt4? ( >=x11-libs/qt-core-4.4.0 |
75 |
>=x11-libs/qt-dbus-4.4.0 |
76 |
>=x11-libs/qt-sql-4.4.0 ) |
77 |
@@ -39,12 +55,15 @@ CDEPEND=" |
78 |
dev-db/sqlite:3 |
79 |
>=dev-libs/dbus-glib-0.74 |
80 |
>=dev-libs/glib-2.22:2 |
81 |
- >=sys-apps/dbus-1.1.0" |
82 |
+ >=sys-apps/dbus-1.1.0 |
83 |
+ >=sys-auth/polkit-0.97 |
84 |
+" |
85 |
RDEPEND="${CDEPEND} |
86 |
- consolekit? ( sys-auth/consolekit ) |
87 |
pm-utils? ( sys-power/pm-utils ) |
88 |
>=app-portage/layman-1.2.3 |
89 |
- >=sys-apps/portage-2.2_rc39" |
90 |
+ >=sys-apps/portage-2.2_rc39 |
91 |
+ sys-auth/consolekit |
92 |
+" |
93 |
DEPEND="${CDEPEND} |
94 |
nsplugin? ( >=net-libs/xulrunner-1.9.1 ) |
95 |
test? ( qt4? ( dev-util/cppunit >=x11-libs/qt-gui-4.4.0 ) ) |
96 |
@@ -53,15 +72,8 @@ DEPEND="${CDEPEND} |
97 |
dev-util/pkgconfig |
98 |
sys-devel/gettext" |
99 |
|
100 |
-S="${WORKDIR}/${MY_P}" |
101 |
-RESTRICT="test" # tests are failing atm |
102 |
- |
103 |
# NOTES: |
104 |
-# polkit is in gnome overlay, otherwise, should use policykit |
105 |
-# do not use a specific user, useless and not more secure according to upstream |
106 |
# doc is in the tarball and always installed |
107 |
-# mono doesn't install anything (RDEPEND dev-dotnet/gtk-sharp-gapi:2 |
108 |
-# (R)DEPEND dev-dotnet/glib-sharp:2 dev-lang/mono), upstream bug 23247 |
109 |
# using >=dbus-1.3.0 instead of >=dbus-1.1.1 because of a bug fixed in 1.3.0 |
110 |
|
111 |
# TODO: |
112 |
@@ -73,28 +85,24 @@ RESTRICT="test" # tests are failing atm |
113 |
# documentation/website with --enable-doc-install |
114 |
# failing tests |
115 |
|
116 |
+pkg_setup() { |
117 |
+ python_set_active_version 2 |
118 |
+} |
119 |
+ |
120 |
src_prepare() { |
121 |
- # fix sandbox issue with gapi2-* tools |
122 |
- # TODO: commented because mono is broken but: |
123 |
- # TODO: should be in pkg_setup ? could be done better ? |
124 |
- #if use mono; then |
125 |
- # addwrite "/root/.wapi" |
126 |
- #fi |
127 |
+ if [[ ${PV} = 9999 ]]; then |
128 |
+ gtkdocize || die |
129 |
+ intltoolize --force || die |
130 |
+ eautoreconf |
131 |
+ fi |
132 |
|
133 |
# prevent pyc/pyo generation |
134 |
- rm py-compile || die "rm py-compile failed" |
135 |
- ln -s $(type -P true) py-compile |
136 |
+ ln -sfn $(type -P true) py-compile |
137 |
} |
138 |
|
139 |
src_configure() { |
140 |
local myconf="" |
141 |
|
142 |
- if use policykit; then |
143 |
- myconf="${myconf} --with-security-framework=polkit" |
144 |
- else |
145 |
- myconf="${myconf} --with-security-framework=dummy" |
146 |
- fi |
147 |
- |
148 |
# localstatedir: for gentoo it's /var/lib but for $PN it's /var |
149 |
# dep-tracking,option-check,libtool-lock,strict,local: obvious reasons |
150 |
# gtk-doc: doc already built |
151 |
@@ -104,7 +112,6 @@ src_configure() { |
152 |
${myconf} \ |
153 |
--localstatedir=/var \ |
154 |
--disable-dependency-tracking \ |
155 |
- --enable-option-checking \ |
156 |
--enable-libtool-lock \ |
157 |
--disable-strict \ |
158 |
--disable-local \ |
159 |
@@ -113,21 +120,21 @@ src_configure() { |
160 |
--disable-debuginfo-install \ |
161 |
--disable-gstreamer-plugin \ |
162 |
--disable-service-packs \ |
163 |
- --disable-managed \ |
164 |
+ --disable-static \ |
165 |
--enable-man-pages \ |
166 |
--disable-dummy \ |
167 |
--enable-portage \ |
168 |
--with-default-backend=portage \ |
169 |
- --disable-introspection \ |
170 |
+ --with-security-framework=polkit \ |
171 |
$(use_enable connman) \ |
172 |
$(use_enable cron) \ |
173 |
$(use_enable gtk gtk-module) \ |
174 |
+ $(use_enable introspection) \ |
175 |
$(use_enable networkmanager) \ |
176 |
$(use_enable nls) \ |
177 |
$(use_enable nsplugin browser-plugin) \ |
178 |
$(use_enable pm-utils) \ |
179 |
$(use_enable qt4 qt) \ |
180 |
- $(use_enable static-libs static) \ |
181 |
$(use_enable test tests) \ |
182 |
$(use_enable udev device-rebind) |
183 |
} |
184 |
@@ -135,36 +142,19 @@ src_configure() { |
185 |
src_install() { |
186 |
emake DESTDIR="${D}" install || die "emake install failed" |
187 |
|
188 |
- dodoc AUTHORS ChangeLog MAINTAINERS NEWS README TODO || die "dodoc failed" |
189 |
+ dodoc ${DOCS} || die "dodoc failed" |
190 |
|
191 |
if use nsplugin; then |
192 |
src_mv_plugins /usr/$(get_libdir)/mozilla/plugins |
193 |
fi |
194 |
|
195 |
- if ! use static-libs; then |
196 |
- find "${D}" -name *.la | xargs rm || die "removing .la files failed" |
197 |
- fi |
198 |
+ ebegin "Removing .la files" |
199 |
+ find "${D}" -name '*.la' -exec rm -f '{}' + || die |
200 |
+ eend |
201 |
} |
202 |
|
203 |
pkg_postinst() { |
204 |
python_mod_optimize $(python_get_sitedir)/${PN} |
205 |
- |
206 |
- if ! use policykit; then |
207 |
- ewarn "You are not using policykit, the daemon can't be considered as secure." |
208 |
- ewarn "All users will be able to do anything through ${MY_PN}." |
209 |
- ewarn "Please, consider rebuilding ${MY_PN} with policykit USE flag." |
210 |
- ewarn "THIS IS A SECURITY ISSUE." |
211 |
- ewarn "" |
212 |
- ebeep |
213 |
- epause 5 |
214 |
- fi |
215 |
- |
216 |
- if ! use consolekit; then |
217 |
- ewarn "You have disabled consolekit support." |
218 |
- ewarn "Even if you can run ${MY_PN} without a running ConsoleKit daemon," |
219 |
- ewarn "it is not recommanded nor supported upstream." |
220 |
- ewarn "" |
221 |
- fi |
222 |
} |
223 |
|
224 |
pkg_prerm() { |
225 |
|
226 |
diff --git a/app-portage/packagekit/packagekit-9999.ebuild b/app-portage/packagekit/packagekit-9999.ebuild |
227 |
index 8abafc1..7535da1 100644 |
228 |
--- a/app-portage/packagekit/packagekit-9999.ebuild |
229 |
+++ b/app-portage/packagekit/packagekit-9999.ebuild |
230 |
@@ -30,16 +30,15 @@ fi |
231 |
|
232 |
LICENSE="GPL-2" |
233 |
SLOT="0" |
234 |
-IUSE="connman cron gtk +introspection networkmanager nls nsplugin pm-utils qt4 |
235 |
-test udev" |
236 |
+IUSE="connman cron gtk +introspection networkmanager nls nsplugin pm-utils qt4 test udev" |
237 |
|
238 |
CDEPEND=" |
239 |
connman? ( net-misc/connman ) |
240 |
- introspection? ( >=dev-libs/gobject-introspection-0.9.8 ) |
241 |
gtk? ( dev-libs/dbus-glib |
242 |
media-libs/fontconfig |
243 |
>=x11-libs/gtk+-2.91.0:3 |
244 |
x11-libs/pango ) |
245 |
+ introspection? ( >=dev-libs/gobject-introspection-0.9.8 ) |
246 |
networkmanager? ( >=net-misc/networkmanager-0.6.4 ) |
247 |
nsplugin? ( dev-libs/dbus-glib |
248 |
dev-libs/glib:2 |
249 |
@@ -55,13 +54,15 @@ CDEPEND=" |
250 |
>=dev-libs/dbus-glib-0.74 |
251 |
>=dev-libs/glib-2.22:2 |
252 |
>=sys-apps/dbus-1.1.0 |
253 |
- >=sys-auth/polkit-0.97" |
254 |
+ >=sys-auth/polkit-0.97 |
255 |
+" |
256 |
RDEPEND="${CDEPEND} |
257 |
pm-utils? ( sys-power/pm-utils ) |
258 |
>=app-portage/layman-1.2.3 |
259 |
>=sys-apps/portage-2.2_rc39 |
260 |
- sys-auth/consolekit" |
261 |
-DEPEND="${CDEPEND} ${DEPEND} |
262 |
+ sys-auth/consolekit |
263 |
+" |
264 |
+DEPEND="${CDEPEND} |
265 |
nsplugin? ( >=net-libs/xulrunner-1.9.1 ) |
266 |
test? ( qt4? ( dev-util/cppunit >=x11-libs/qt-gui-4.4.0 ) ) |
267 |
dev-libs/libxslt |
268 |
@@ -105,7 +106,6 @@ src_configure() { |
269 |
${myconf} \ |
270 |
--localstatedir=/var \ |
271 |
--disable-dependency-tracking \ |
272 |
- --enable-option-checking \ |
273 |
--enable-libtool-lock \ |
274 |
--disable-strict \ |
275 |
--disable-local \ |