Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/packagekit-base/files/, app-admin/packagekit-base/
Date: Wed, 12 Dec 2018 14:17:42
Message-Id: 1544624250.07bdf34d44f4414410f79d275a1be4e9a905ac40.eva@gentoo
1 commit: 07bdf34d44f4414410f79d275a1be4e9a905ac40
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 12 14:05:57 2018 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 12 14:17:30 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07bdf34d
7
8 app-admin/packagekit-base: 1.1.7-r2 → 1.1.12
9
10 Prepare ebuild to receive python3 targets. Code is almost compatible so
11 just make sure we only need to touch PYTHON_TARGETS when the time
12 comes.
13
14 Package-Manager: Portage-2.3.52, Repoman-2.3.12
15 Signed-off-by: Gilles Dartiguelongue <eva <AT> gentoo.org>
16
17 app-admin/packagekit-base/Manifest | 1 +
18 .../files/1.1.12-add-missing-config.h.patch | 25 +++
19 .../packagekit-base/files/1.1.12-cache-qafix.patch | 38 ++++
20 .../files/1.1.12-elogind-support.patch | 196 +++++++++++++++++++++
21 .../files/1.1.12-use-autotool-python.patch | 28 +++
22 .../packagekit-base/packagekit-base-1.1.12.ebuild | 140 +++++++++++++++
23 6 files changed, 428 insertions(+)
24
25 diff --git a/app-admin/packagekit-base/Manifest b/app-admin/packagekit-base/Manifest
26 index f4cb2740e6b..f6a17578381 100644
27 --- a/app-admin/packagekit-base/Manifest
28 +++ b/app-admin/packagekit-base/Manifest
29 @@ -1 +1,2 @@
30 +DIST PackageKit-1.1.12.tar.xz 1439024 BLAKE2B 458cb7a9a47941214ec58846fb840f852851555dbd94ed5113745f9e375cd28edaa8475db30fb889b1722ea01bce5200a5ea7a5f52e45b424703228bff59d689 SHA512 a7428416ae85df0c8e7dbe017396921e9214612c8eb7c91020523457d0feaff86ad50d595f702d255e4091364cb10b8d9506b603b9d0e449c39fced07180840b
31 DIST PackageKit-1.1.7.tar.xz 1431648 BLAKE2B 0cc64e7ac38d6641a1fbd98ffad2e7920eb7b3c86ea36d3ad036541886191c38deeeb7241f81ec3d29f8268b1c84ec500511895312c29c706403607215117d5e SHA512 0d0277e24feb63e94aeb5fec2c4306ccdf5935c2f62d5eef3be8db9f534eb302eff09ea0e020db48b2dd0af9ba6b31f7960d661d1040774dccf650ebf04c4f83
32
33 diff --git a/app-admin/packagekit-base/files/1.1.12-add-missing-config.h.patch b/app-admin/packagekit-base/files/1.1.12-add-missing-config.h.patch
34 new file mode 100644
35 index 00000000000..eb8c192e882
36 --- /dev/null
37 +++ b/app-admin/packagekit-base/files/1.1.12-add-missing-config.h.patch
38 @@ -0,0 +1,25 @@
39 +From 3620f182745db77b5bf4552a9e8d8cb38fdc0268 Mon Sep 17 00:00:00 2001
40 +From: Kalev Lember <klember@××××××.com>
41 +Date: Tue, 4 Dec 2018 22:15:49 +0100
42 +Subject: [PATCH 2/2] trivial: Add missing config.h include
43 +
44 +---
45 + lib/packagekit-glib2/pk-progress-bar.c | 2 ++
46 + 1 file changed, 2 insertions(+)
47 +
48 +diff --git a/lib/packagekit-glib2/pk-progress-bar.c b/lib/packagekit-glib2/pk-progress-bar.c
49 +index e75f319e4..28d8f5ac2 100644
50 +--- a/lib/packagekit-glib2/pk-progress-bar.c
51 ++++ b/lib/packagekit-glib2/pk-progress-bar.c
52 +@@ -19,6 +19,8 @@
53 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
54 + */
55 +
56 ++#include "config.h"
57 ++
58 + #include <glib.h>
59 + #include <string.h>
60 + #include <unistd.h>
61 +--
62 +2.19.2
63 +
64
65 diff --git a/app-admin/packagekit-base/files/1.1.12-cache-qafix.patch b/app-admin/packagekit-base/files/1.1.12-cache-qafix.patch
66 new file mode 100644
67 index 00000000000..4e747616c06
68 --- /dev/null
69 +++ b/app-admin/packagekit-base/files/1.1.12-cache-qafix.patch
70 @@ -0,0 +1,38 @@
71 +From d64070f1782ed06f83be7783e22cf86f4098f34e Mon Sep 17 00:00:00 2001
72 +From: Ettore Di Giacinto <mudler@g.o>
73 +Date: Tue, 11 Dec 2018 16:54:42 +0100
74 +Subject: [PATCH 1/2] Drop $(localstatedir)/cache rules
75 +
76 +This directory can be flushed any moment and pre-existence of folders
77 +in it cannot be assumed.
78 +
79 +pk-transaction creates the downloads directory as needed. If backends
80 +need metadata folder they should create it if not found.
81 +
82 +Closes: https://github.com/gentoo/gentoo/pull/1760
83 +References: https://github.com/hughsie/PackageKit/issues/143
84 +---
85 + src/Makefile.am | 7 -------
86 + 1 file changed, 7 deletions(-)
87 +
88 +diff --git a/src/Makefile.am b/src/Makefile.am
89 +index 830aaf873..24c9a0b9a 100644
90 +--- a/src/Makefile.am
91 ++++ b/src/Makefile.am
92 +@@ -166,13 +166,6 @@ pk_self_test_CFLAGS = \
93 +
94 + TESTS = pk-self-test
95 +
96 +-install-data-hook:
97 +- if test -w $(DESTDIR)$(prefix)/; then \
98 +- mkdir -p $(DESTDIR)$(localstatedir)/cache/PackageKit/downloads; \
99 +- mkdir -p $(DESTDIR)$(localstatedir)/cache/PackageKit/metadata; \
100 +- mkdir -p $(DESTDIR)$(localstatedir)/log; \
101 +- fi
102 +-
103 + clean-local:
104 + rm -f *~
105 +
106 +--
107 +2.19.2
108 +
109
110 diff --git a/app-admin/packagekit-base/files/1.1.12-elogind-support.patch b/app-admin/packagekit-base/files/1.1.12-elogind-support.patch
111 new file mode 100644
112 index 00000000000..8be115bbc71
113 --- /dev/null
114 +++ b/app-admin/packagekit-base/files/1.1.12-elogind-support.patch
115 @@ -0,0 +1,196 @@
116 +From ee8a65b3fd7636a60f8a2b2e509376cbbd8326cb Mon Sep 17 00:00:00 2001
117 +From: Sven Eden <yamakuzure@×××.net>
118 +Date: Tue, 11 Dec 2018 16:59:28 +0100
119 +Subject: [PATCH 2/2] Add elogind support
120 +
121 +Closes: https://bugs.gentoo.org/620948
122 +Signed-off-by: Ettore Di Giacinto <mudler@g.o>
123 +---
124 + configure.ac | 20 +++++++++++++++++++-
125 + src/Makefile.am | 4 ++++
126 + src/pk-dbus.c | 8 ++++----
127 + src/pk-engine.c | 12 ++++++------
128 + 4 files changed, 33 insertions(+), 11 deletions(-)
129 +
130 +diff --git a/configure.ac b/configure.ac
131 +index 737c1d4dc..0778c57d3 100644
132 +--- a/configure.ac
133 ++++ b/configure.ac
134 +@@ -216,7 +216,6 @@ if test x$enable_systemd = xyes; then
135 + AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
136 + [has_systemdsystemunitdir=$with_systemdsystemunitdir],
137 + [has_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
138 +- AC_DEFINE(HAVE_SYSTEMD,1,[Build systemd code])
139 + AC_SUBST([systemdsystemunitdir], [$has_systemdsystemunitdir])
140 + fi
141 + AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$has_systemdsystemunitdir"])
142 +@@ -228,6 +227,24 @@ AC_ARG_ENABLE(offline-update, AS_HELP_STRING([--enable-offline-update],[enable o
143 + enable_offline_update=$enableval,enable_offline_update=yes)
144 + AM_CONDITIONAL(ENABLE_OFFLINE_UPDATE, [test x$enable_systemd = xyes -a x$enable_offline_update = xyes])
145 +
146 ++dnl ---------------------------------------------------------------------------
147 ++dnl - Use elogind instead of systemd-login
148 ++dnl ---------------------------------------------------------------------------
149 ++AC_ARG_ENABLE(elogind, AS_HELP_STRING([--enable-elogind],[enable elogind session tracker]),
150 ++ enable_elogind=$enableval,enable_elogind=no)
151 ++if test x$enable_elogind = xyes; then
152 ++ PKG_CHECK_MODULES(ELOGIND, [libelogind >= 229.4], [have_elogind=yes], [have_elogind=no])
153 ++else
154 ++ have_elogind=no
155 ++fi
156 ++
157 ++dnl ---------------------------------------------------------------------------
158 ++dnl --- Is systemd/sd-login.h, either from systemd or elogind, available?
159 ++dnl ---------------------------------------------------------------------------
160 ++if test -n "$has_systemdsystemunitdir" -o "x$have_elogind" != "xno" ; then
161 ++ AC_DEFINE(HAVE_SYSTEMD_SD_LOGIN_H,1,[Build systemd-login code])
162 ++fi
163 ++
164 + dnl ---------------------------------------------------------------------------
165 + dnl - Generate man pages ? (default enabled)
166 + dnl ---------------------------------------------------------------------------
167 +@@ -590,6 +607,7 @@ echo "
168 + cflags: ${CFLAGS}
169 + cppflags: ${CPPFLAGS}
170 + Able to run locally: ${enable_local}
171 ++ Use elogind: ${enable_elogind}
172 + Use systemd: ${enable_systemd}
173 + Enable offline update: ${enable_offline_update}
174 + GStreamer plugin: ${build_gstreamer_plugin}
175 +diff --git a/src/Makefile.am b/src/Makefile.am
176 +index 24c9a0b9a..468f31d04 100644
177 +--- a/src/Makefile.am
178 ++++ b/src/Makefile.am
179 +@@ -9,6 +9,7 @@ AM_CPPFLAGS = \
180 + $(SQLITE_CFLAGS) \
181 + $(POLKIT_CFLAGS) \
182 + $(PYTHON_CFLAGS) \
183 ++ $(ELOGIND_CFLAGS) \
184 + $(SYSTEMD_CFLAGS) \
185 + -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
186 + -DBINDIR=\"$(bindir)\" \
187 +@@ -100,6 +101,7 @@ packagekit_direct_LDADD = \
188 + $(POLKIT_LIBS) \
189 + $(GIO_LIBS) \
190 + $(ARCHIVE_LIBS) \
191 ++ $(ELOGIND_LIBS) \
192 + $(SYSTEMD_LIBS)
193 +
194 + packagekit_direct_LDFLAGS = \
195 +@@ -128,6 +130,7 @@ packagekitd_LDADD = \
196 + $(POLKIT_LIBS) \
197 + $(GIO_LIBS) \
198 + $(ARCHIVE_LIBS) \
199 ++ $(ELOGIND_LIBS) \
200 + $(SYSTEMD_LIBS)
201 +
202 + packagekitd_LDFLAGS = \
203 +@@ -153,6 +156,7 @@ pk_self_test_LDADD = \
204 + $(POLKIT_LIBS) \
205 + $(GIO_LIBS) \
206 + $(ARCHIVE_LIBS) \
207 ++ $(ELOGIND_LIBS) \
208 + $(SYSTEMD_LIBS)
209 +
210 + pk_self_test_CPPFLAGS = \
211 +diff --git a/src/pk-dbus.c b/src/pk-dbus.c
212 +index 0cf512f38..37cc1d83c 100644
213 +--- a/src/pk-dbus.c
214 ++++ b/src/pk-dbus.c
215 +@@ -27,7 +27,7 @@
216 + #include <glib.h>
217 + #include <gio/gio.h>
218 +
219 +-#ifdef HAVE_SYSTEMD
220 ++#ifdef HAVE_SYSTEMD_SD_LOGIN_H
221 + #include <systemd/sd-login.h>
222 + #endif
223 +
224 +@@ -177,7 +177,7 @@ pk_dbus_get_cmdline (PkDbus *dbus, const gchar *sender)
225 + return cmdline;
226 + }
227 +
228 +-#ifdef HAVE_SYSTEMD
229 ++#ifdef HAVE_SYSTEMD_SD_LOGIN_H
230 + static gchar *
231 + pk_dbus_make_logind_session_id (const gchar *session)
232 + {
233 +@@ -218,7 +218,7 @@ gchar *
234 + pk_dbus_get_session (PkDbus *dbus, const gchar *sender)
235 + {
236 + gchar *session = NULL;
237 +-#ifndef HAVE_SYSTEMD
238 ++#ifndef HAVE_SYSTEMD_SD_LOGIN_H
239 + g_autoptr(GError) error = NULL;
240 + #endif
241 + guint pid;
242 +@@ -248,7 +248,7 @@ pk_dbus_get_session (PkDbus *dbus, const gchar *sender)
243 + }
244 +
245 + /* get session from systemd or ConsoleKit */
246 +-#ifdef HAVE_SYSTEMD
247 ++#ifdef HAVE_SYSTEMD_SD_LOGIN_H
248 + session = pk_dbus_get_session_systemd (pid);
249 + if (session == NULL)
250 + g_warning ("failed to get session for pid %u", pid);
251 +diff --git a/src/pk-engine.c b/src/pk-engine.c
252 +index f63058fbc..7ea87a448 100644
253 +--- a/src/pk-engine.c
254 ++++ b/src/pk-engine.c
255 +@@ -98,7 +98,7 @@ struct PkEnginePrivate
256 + guint owner_id;
257 + GDBusNodeInfo *introspection;
258 + GDBusConnection *connection;
259 +-#ifdef HAVE_SYSTEMD
260 ++#ifdef HAVE_SYSTEMD_SD_LOGIN_H
261 + GDBusProxy *logind_proxy;
262 + gint logind_fd;
263 + #endif
264 +@@ -256,7 +256,7 @@ pk_engine_emit_offline_property_changed (PkEngine *engine,
265 + static void
266 + pk_engine_inhibit (PkEngine *engine)
267 + {
268 +-#ifdef HAVE_SYSTEMD
269 ++#ifdef HAVE_SYSTEMD_SD_LOGIN_H
270 + g_autoptr(GError) error = NULL;
271 + g_autoptr(GUnixFDList) out_fd_list = NULL;
272 + g_autoptr(GVariant) res = NULL;
273 +@@ -303,7 +303,7 @@ pk_engine_inhibit (PkEngine *engine)
274 + static void
275 + pk_engine_uninhibit (PkEngine *engine)
276 + {
277 +-#ifdef HAVE_SYSTEMD
278 ++#ifdef HAVE_SYSTEMD_SD_LOGIN_H
279 + if (engine->priv->logind_fd == 0)
280 + return;
281 + g_debug ("closed logind fd %i", engine->priv->logind_fd);
282 +@@ -1701,7 +1701,7 @@ pk_engine_offline_method_call (GDBusConnection *connection_, const gchar *sender
283 + }
284 + }
285 +
286 +-#ifdef HAVE_SYSTEMD
287 ++#ifdef HAVE_SYSTEMD_SD_LOGIN_H
288 + static void
289 + pk_engine_proxy_logind_cb (GObject *source_object,
290 + GAsyncResult *res,
291 +@@ -1737,7 +1737,7 @@ pk_engine_on_bus_acquired_cb (GDBusConnection *connection,
292 + /* save copy for emitting signals */
293 + engine->priv->connection = g_object_ref (connection);
294 +
295 +-#ifdef HAVE_SYSTEMD
296 ++#ifdef HAVE_SYSTEMD_SD_LOGIN_H
297 + /* connect to logind */
298 + g_dbus_proxy_new (connection,
299 + G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
300 +@@ -1883,7 +1883,7 @@ pk_engine_finalize (GObject *object)
301 + if (engine->priv->connection != NULL)
302 + g_object_unref (engine->priv->connection);
303 +
304 +-#ifdef HAVE_SYSTEMD
305 ++#ifdef HAVE_SYSTEMD_SD_LOGIN_H
306 + /* uninhibit */
307 + if (engine->priv->logind_fd != 0)
308 + close (engine->priv->logind_fd);
309 +--
310 +2.19.2
311 +
312
313 diff --git a/app-admin/packagekit-base/files/1.1.12-use-autotool-python.patch b/app-admin/packagekit-base/files/1.1.12-use-autotool-python.patch
314 new file mode 100644
315 index 00000000000..542abd5e566
316 --- /dev/null
317 +++ b/app-admin/packagekit-base/files/1.1.12-use-autotool-python.patch
318 @@ -0,0 +1,28 @@
319 +From f664bbc43d12f4b30431dfe2ecee4c9ebfaf00e5 Mon Sep 17 00:00:00 2001
320 +From: =?UTF-8?q?Javier=20Jard=C3=B3n?= <jjardon@×××××.org>
321 +Date: Sat, 1 Dec 2018 18:55:37 +0000
322 +Subject: [PATCH 1/2] lib/python/packagekit/Makefile.am: Use the detected
323 + PYTHON version
324 +
325 +This will fix compilation in system where only the "python3"
326 +executable exists
327 +---
328 + lib/python/packagekit/Makefile.am | 2 +-
329 + 1 file changed, 1 insertion(+), 1 deletion(-)
330 +
331 +diff --git a/lib/python/packagekit/Makefile.am b/lib/python/packagekit/Makefile.am
332 +index 617006647..a589cde17 100644
333 +--- a/lib/python/packagekit/Makefile.am
334 ++++ b/lib/python/packagekit/Makefile.am
335 +@@ -1,7 +1,7 @@
336 + BUILT_SOURCES = enums.py
337 +
338 + enums.py: $(top_srcdir)/lib/python/enum-convertor.py $(top_srcdir)/lib/packagekit-glib2/pk-enum.c
339 +- python $(top_srcdir)/lib/python/enum-convertor.py $(top_srcdir)/lib/packagekit-glib2/pk-enum.c > enums.py
340 ++ $(PYTHON) $(top_srcdir)/lib/python/enum-convertor.py $(top_srcdir)/lib/packagekit-glib2/pk-enum.c > enums.py
341 +
342 + if HAVE_PYTHON_BACKEND
343 + packagekitpythondir = ${PYTHON_PACKAGE_DIR}
344 +--
345 +2.19.2
346 +
347
348 diff --git a/app-admin/packagekit-base/packagekit-base-1.1.12.ebuild b/app-admin/packagekit-base/packagekit-base-1.1.12.ebuild
349 new file mode 100644
350 index 00000000000..e2b3295f8a7
351 --- /dev/null
352 +++ b/app-admin/packagekit-base/packagekit-base-1.1.12.ebuild
353 @@ -0,0 +1,140 @@
354 +# Copyright 1999-2018 Gentoo Authors
355 +# Distributed under the terms of the GNU General Public License v2
356 +
357 +EAPI="6"
358 +
359 +# PackageKit supports 3.2+, but entropy and portage backends are untested
360 +PYTHON_COMPAT=( python2_7 )
361 +VALA_USE_DEPEND="vapigen"
362 +
363 +inherit autotools bash-completion-r1 multilib python-single-r1 systemd vala xdg
364 +
365 +MY_PN="PackageKit"
366 +MY_P=${MY_PN}-${PV}
367 +
368 +DESCRIPTION="Manage packages in a secure way using a cross-distro and cross-architecture API"
369 +HOMEPAGE="https://www.freedesktop.org/software/PackageKit/"
370 +SRC_URI="https://www.freedesktop.org/software/${MY_PN}/releases/${MY_P}.tar.xz"
371 +
372 +LICENSE="GPL-2"
373 +SLOT="0/18"
374 +KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
375 +IUSE="cron command-not-found elogind +introspection entropy systemd test vala"
376 +REQUIRED_USE="
377 + ${PYTHON_REQUIRED_USE}
378 + ?? ( elogind systemd )
379 + vala? ( introspection )
380 + entropy? ( $(python_gen_useflags 'python2*' ) )
381 +"
382 +
383 +# While not strictly needed, consolekit is the alternative to systemd-login
384 +# or elogind to get current session's user.
385 +COMMON_DEPEND="
386 + >=app-shells/bash-completion-2
387 + dev-db/sqlite:3
388 + >=dev-libs/dbus-glib-0.74
389 + >=dev-libs/glib-2.54.0:2
390 + >=sys-auth/polkit-0.114
391 + >=sys-apps/dbus-1.3.0
392 + ${PYTHON_DEPS}
393 + elogind? ( >=sys-auth/elogind-229.4 )
394 + introspection? ( >=dev-libs/gobject-introspection-0.9.9:= )
395 + systemd? ( >=sys-apps/systemd-213 )
396 +"
397 +# vala-common needed for eautoreconf
398 +DEPEND="${COMMON_DEPEND}
399 + app-text/docbook-xsl-stylesheets
400 + >=dev-cpp/glibmm-2.4
401 + dev-libs/libxml2:2
402 + dev-libs/libxslt
403 + dev-libs/vala-common
404 + dev-util/glib-utils
405 + >=dev-util/gtk-doc-am-1.11
406 + >=dev-util/intltool-0.35.0
407 + sys-devel/gettext
408 + virtual/pkgconfig
409 + vala? ( $(vala_depend) )
410 +"
411 +RDEPEND="${COMMON_DEPEND}
412 + >=app-portage/layman-2[${PYTHON_USEDEP}]
413 + || (
414 + >=sys-apps/portage-2.2[${PYTHON_USEDEP}]
415 + sys-apps/portage-mgorny[${PYTHON_USEDEP}]
416 + )
417 + entropy? ( >=sys-apps/entropy-234[${PYTHON_USEDEP}] )
418 + !systemd? ( !elogind? ( sys-auth/consolekit ) )
419 +"
420 +
421 +PATCHES=(
422 + # Fixes QA Notices:
423 + # - https://github.com/gentoo/gentoo/pull/1760
424 + # - https://github.com/hughsie/PackageKit/issues/143
425 + "${FILESDIR}"/${PV}-cache-qafix.patch
426 +
427 + # Adds elogind support:
428 + # - https://bugs.gentoo.org/show_bug.cgi?id=620948
429 + # - https://github.com/hughsie/PackageKit/pull/299
430 + "${FILESDIR}"/${PV}-elogind-support.patch
431 +
432 + # From master
433 + "${FILESDIR}"/${PV}-use-autotool-python.patch
434 + "${FILESDIR}"/${PV}-add-missing-config.h.patch
435 +)
436 +
437 +S="${WORKDIR}/${MY_P}"
438 +
439 +src_prepare() {
440 + # Disable unittests not working with portage backend
441 + # console: requires terminal input
442 + sed -e 's:^\(.*/packagekit-glib2/control\)://\1:' \
443 + -e 's:^\(.*/packagekit-glib2/transaction-list\)://\1:' \
444 + -e 's:^\(.*/packagekit-glib2/client"\)://\1:' \
445 + -e 's:^\(.*/packagekit-glib2/package-sack\)://\1:' \
446 + -e 's:^\(.*/packagekit-glib2/task\)://\1:' \
447 + -e 's:^\(.*/packagekit-glib2/console\)://\1:' \
448 + -i lib/packagekit-glib2/pk-test-daemon.c || die
449 + sed -e 's:^\(.*/packagekit/spawn\)://\1:' \
450 + -e 's:^\(.*/packagekit/transaction-db\)://\1:' \
451 + -e 's:^\(.*/packagekit/backend\)://\1:' \
452 + -i src/pk-self-test.c || die
453 +
454 + eapply_user
455 + use vala && vala_src_prepare
456 + xdg_src_prepare
457 +
458 + # Needed by elogind patch
459 + eautoreconf
460 +}
461 +
462 +src_configure() {
463 + econf \
464 + --disable-gstreamer-plugin \
465 + --disable-gtk-doc \
466 + --disable-gtk-module \
467 + --disable-schemas-compile \
468 + --disable-static \
469 + --enable-bash-completion \
470 + --enable-man-pages \
471 + --enable-nls \
472 + --enable-portage \
473 + --localstatedir=/var \
474 + $(use_enable command-not-found) \
475 + $(use_enable cron) \
476 + $(use_enable elogind) \
477 + $(use_enable entropy) \
478 + $(use_enable introspection) \
479 + $(use_enable systemd) \
480 + $(use_enable test daemon-tests) \
481 + $(use_enable test local) \
482 + $(use_enable vala) \
483 + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
484 +}
485 +
486 +src_install() {
487 + python_fix_shebang backends/portage/portageBackend.py
488 +
489 + emake DESTDIR="${D}" install
490 + find "${D}" -name '*.la' -delete || die
491 +
492 + dodoc AUTHORS ChangeLog MAINTAINERS NEWS README
493 +}