1 |
commit: b92eb1efb6698235d4a000fb8a56254914c53089 |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 20 10:50:30 2018 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 20 10:51:58 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=b92eb1ef |
7 |
|
8 |
gnome-extra/gnome-color-manager: sync with ::gentoo |
9 |
|
10 |
Package-Manager: Portage-2.3.51, Repoman-2.3.12 |
11 |
Manifest-Sign-Key: 0x5A56C8CD0C13248A |
12 |
Signed-off-by: Gilles Dartiguelongue <eva <AT> gentoo.org> |
13 |
|
14 |
.../gnome-color-manager-9999.ebuild | 30 +++++++++++++++++----- |
15 |
1 file changed, 23 insertions(+), 7 deletions(-) |
16 |
|
17 |
diff --git a/gnome-extra/gnome-color-manager/gnome-color-manager-9999.ebuild b/gnome-extra/gnome-color-manager/gnome-color-manager-9999.ebuild |
18 |
index 55635ddf..0c190077 100644 |
19 |
--- a/gnome-extra/gnome-color-manager/gnome-color-manager-9999.ebuild |
20 |
+++ b/gnome-extra/gnome-color-manager/gnome-color-manager-9999.ebuild |
21 |
@@ -1,8 +1,8 @@ |
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 git-r3 gnome-meson virtualx |
28 |
+inherit git-r3 gnome.org gnome2-utils meson virtualx xdg |
29 |
|
30 |
DESCRIPTION="Color profile manager for the GNOME desktop" |
31 |
HOMEPAGE="https://git.gnome.org/browse/gnome-color-manager" |
32 |
@@ -46,12 +46,22 @@ PATCHES=( |
33 |
"${FILESDIR}"/9999-remove-unwanted-check.patch |
34 |
) |
35 |
|
36 |
+src_prepare() { |
37 |
+ xdg_src_prepare |
38 |
+ |
39 |
+ # Fix hard-coded package name |
40 |
+ # https://gitlab.gnome.org/GNOME/gnome-color-manager/issues/3 |
41 |
+ sed 's:argyllcms:media-gfx/argyllcms:' src/gcm-utils.h || die |
42 |
+} |
43 |
+ |
44 |
src_configure() { |
45 |
# Always enable tests since they are check_PROGRAMS anyway |
46 |
- gnome-meson_src_configure \ |
47 |
- $(meson_use raw enable-exiv) \ |
48 |
- $(meson_use packagekit enable-packagekit) \ |
49 |
- $(meson_use test enable-tests) |
50 |
+ local emesonargs=( |
51 |
+ $(meson_use raw exiv) |
52 |
+ $(meson_use packagekit) |
53 |
+ $(meson_use test tests) |
54 |
+ ) |
55 |
+ meson_src_configure |
56 |
} |
57 |
|
58 |
src_test() { |
59 |
@@ -59,10 +69,16 @@ src_test() { |
60 |
} |
61 |
|
62 |
pkg_postinst() { |
63 |
- gnome-meson_pkg_postinst |
64 |
+ xdg_pkg_postinst |
65 |
+ gnome2_icon_cache_update |
66 |
|
67 |
if ! has_version media-gfx/argyllcms ; then |
68 |
elog "If you want to do display or scanner calibration, you will need to" |
69 |
elog "install media-gfx/argyllcms" |
70 |
fi |
71 |
} |
72 |
+ |
73 |
+pkg_postrm() { |
74 |
+ xdg_pkg_postrm |
75 |
+ gnome2_icon_cache_update |
76 |
+} |