1 |
commit: 66dbde6fbb68ff99dc5574ac9a0f2b9bc096fc08 |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 11 13:10:42 2018 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 11 13:13:40 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=66dbde6f |
7 |
|
8 |
gnome-extra/gnome-power-manager: sync live ebuild with ::gentoo |
9 |
|
10 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
11 |
Manifest-Sign-Key: 0x5A56C8CD0C13248A |
12 |
Signed-off-by: Gilles Dartiguelongue <eva <AT> gentoo.org> |
13 |
|
14 |
.../gnome-power-manager-9999.ebuild | 34 +++++++++++----------- |
15 |
1 file changed, 17 insertions(+), 17 deletions(-) |
16 |
|
17 |
diff --git a/gnome-extra/gnome-power-manager/gnome-power-manager-9999.ebuild b/gnome-extra/gnome-power-manager/gnome-power-manager-9999.ebuild |
18 |
index cb9924f2..5e7df4b6 100644 |
19 |
--- a/gnome-extra/gnome-power-manager/gnome-power-manager-9999.ebuild |
20 |
+++ b/gnome-extra/gnome-power-manager/gnome-power-manager-9999.ebuild |
21 |
@@ -1,10 +1,9 @@ |
22 |
-# Copyright 1999-2018 Gentoo Foundation |
23 |
+# Copyright 1999-2018 Gentoo Authors |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
|
26 |
EAPI=6 |
27 |
-inherit gnome-meson virtualx |
28 |
+inherit gnome.org gnome2-utils meson virtualx xdg |
29 |
|
30 |
-inherit gnome-meson virtualx |
31 |
if [[ ${PV} = 9999 ]]; then |
32 |
SRC_URI="" |
33 |
EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/gnome-power-manager.git" |
34 |
@@ -32,12 +31,9 @@ COMMON_DEPEND=" |
35 |
RDEPEND="${COMMON_DEPEND} |
36 |
x11-themes/adwaita-icon-theme |
37 |
" |
38 |
-# libxml2 required for glib-compile-resources |
39 |
DEPEND="${COMMON_DEPEND} |
40 |
app-text/docbook-sgml-dtd:4.1 |
41 |
app-text/docbook-sgml-utils |
42 |
- dev-libs/appstream-glib |
43 |
- dev-libs/libxml2:2 |
44 |
>=sys-devel/gettext-0.19.7 |
45 |
x11-base/xorg-proto |
46 |
virtual/pkgconfig |
47 |
@@ -46,22 +42,26 @@ DEPEND="${COMMON_DEPEND} |
48 |
|
49 |
# docbook-sgml-utils and docbook-sgml-dtd-4.1 used for creating man pages |
50 |
# (files under ${S}/man). |
51 |
-# docbook-xml-dtd-4.4 and -4.1.2 are used by the xml files under ${S}/docs. |
52 |
- |
53 |
-src_prepare() { |
54 |
- # Drop debugger CFLAGS from configure |
55 |
- # Touch configure.ac only if running eautoreconf, otherwise |
56 |
- # maintainer mode gets triggered -- even if the order is correct |
57 |
- sed -e 's:^CPPFLAGS="$CPPFLAGS -g"$::g' \ |
58 |
- -i configure || die "debugger sed failed" |
59 |
- gnome2_src_prepare |
60 |
-} |
61 |
|
62 |
src_configure() { |
63 |
- gnome-meson_src_configure \ |
64 |
+ local emesonargs=( |
65 |
$(meson_use test enable-tests) |
66 |
+ ) |
67 |
+ meson_src_configure |
68 |
} |
69 |
|
70 |
src_test() { |
71 |
virtx meson_src_test |
72 |
} |
73 |
+ |
74 |
+pkg_postinst() { |
75 |
+ xdg_pkg_postinst |
76 |
+ gnome2_schemas_update |
77 |
+ gnome2_icon_cache_update |
78 |
+} |
79 |
+ |
80 |
+pkg_postrm() { |
81 |
+ xdg_pkg_postrm |
82 |
+ gnome2_schemas_update |
83 |
+ gnome2_icon_cache_update |
84 |
+} |