1 |
commit: 9240c4b7e3420dc3d16e51b66d1dc545680ad237 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 15 12:44:26 2019 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 15 13:08:18 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9240c4b7 |
7 |
|
8 |
x11-misc/mugshot: add python3_8 support |
9 |
|
10 |
Also fixing QA error by calling python_optimize |
11 |
and adding DISTUTILS_USE_SETUPTOOLS. |
12 |
|
13 |
Updated dependencies, since not all deps are needed in DEPEND. |
14 |
|
15 |
Package-Manager: Portage-2.3.81, Repoman-2.3.20 |
16 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
17 |
|
18 |
x11-misc/mugshot/mugshot-0.4.2-r1.ebuild | 79 ++++++++++++++++++++++++++++++++ |
19 |
1 file changed, 79 insertions(+) |
20 |
|
21 |
diff --git a/x11-misc/mugshot/mugshot-0.4.2-r1.ebuild b/x11-misc/mugshot/mugshot-0.4.2-r1.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..d73d30cc473 |
24 |
--- /dev/null |
25 |
+++ b/x11-misc/mugshot/mugshot-0.4.2-r1.ebuild |
26 |
@@ -0,0 +1,79 @@ |
27 |
+# Copyright 1999-2019 Gentoo Authors |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI=7 |
31 |
+ |
32 |
+DISTUTILS_USE_SETUPTOOLS="no" |
33 |
+PYTHON_COMPAT=( python3_{5,6,7,8} ) |
34 |
+ |
35 |
+inherit distutils-r1 gnome2-utils xdg-utils |
36 |
+ |
37 |
+DESCRIPTION="A lightweight user-configuration application" |
38 |
+HOMEPAGE="https://github.com/bluesabre/mugshot" |
39 |
+SRC_URI="https://github.com/bluesabre/${PN}/archive/${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="GPL-3+" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~x86" |
44 |
+IUSE="gnome libreoffice webcam" |
45 |
+ |
46 |
+COMMON_DEPEND=" |
47 |
+ dev-libs/gobject-introspection |
48 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
49 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
50 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
51 |
+ |
52 |
+" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ ${COMMON_DEPEND} |
56 |
+ dev-python/pycairo[${PYTHON_USEDEP}] |
57 |
+ sys-apps/accountsservice |
58 |
+ sys-apps/shadow |
59 |
+ gnome? ( gnome-base/gnome-control-center ) |
60 |
+ libreoffice? ( |
61 |
+ || ( |
62 |
+ app-office/libreoffice-bin |
63 |
+ app-office/libreoffice |
64 |
+ ) |
65 |
+ ) |
66 |
+ webcam? ( |
67 |
+ media-libs/gstreamer:1.0 |
68 |
+ media-libs/gst-plugins-good:1.0 |
69 |
+ gnome? ( |
70 |
+ media-libs/clutter-gtk[introspection] |
71 |
+ media-video/cheese[introspection] |
72 |
+ ) |
73 |
+ ) |
74 |
+" |
75 |
+ |
76 |
+DEPEND=" |
77 |
+ ${COMMON_DEPEND} |
78 |
+ x11-libs/gtk+:3[introspection] |
79 |
+" |
80 |
+ |
81 |
+BDEPEND=" |
82 |
+ dev-python/python-distutils-extra[${PYTHON_USEDEP}] |
83 |
+ dev-util/intltool |
84 |
+" |
85 |
+ |
86 |
+S="${WORKDIR}/${PN}-${P}" |
87 |
+ |
88 |
+python_install() { |
89 |
+ distutils-r1_python_install |
90 |
+ |
91 |
+ python_optimize |
92 |
+ |
93 |
+ # Since DOCS are installed twice, remove the wrong path |
94 |
+ rm -r "${ED}"/usr/share/doc/mugshot || die |
95 |
+} |
96 |
+ |
97 |
+pkg_postinst() { |
98 |
+ gnome2_schemas_update |
99 |
+ xdg_icon_cache_update |
100 |
+} |
101 |
+ |
102 |
+pkg_postrm() { |
103 |
+ gnome2_schemas_update |
104 |
+ xdg_icon_cache_update |
105 |
+} |