1 |
commit: fb5aac044d88c8312e4c835890670e29c841656e |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 2 13:13:15 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 2 13:24:33 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb5aac04 |
7 |
|
8 |
app-admin/system-config-printer: Fix dependencies |
9 |
|
10 |
Closes: https://bugs.gentoo.org/574630 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
13 |
|
14 |
.../system-config-printer-1.5.11-r1.ebuild | 91 ++++++++++++++++++++++ |
15 |
1 file changed, 91 insertions(+) |
16 |
|
17 |
diff --git a/app-admin/system-config-printer/system-config-printer-1.5.11-r1.ebuild b/app-admin/system-config-printer/system-config-printer-1.5.11-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..418b870b267 |
20 |
--- /dev/null |
21 |
+++ b/app-admin/system-config-printer/system-config-printer-1.5.11-r1.ebuild |
22 |
@@ -0,0 +1,91 @@ |
23 |
+# Copyright 1999-2018 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+ |
28 |
+PYTHON_COMPAT=( python3_{5,6} ) |
29 |
+PYTHON_REQ_USE="xml" |
30 |
+inherit gnome2 python-single-r1 systemd |
31 |
+ |
32 |
+DESCRIPTION="Graphical user interface for CUPS administration" |
33 |
+HOMEPAGE="https://github.com/zdohnal/system-config-printer" |
34 |
+SRC_URI="https://github.com/zdohnal/${PN}/releases/download/${PV}/${P}.tar.xz |
35 |
+ https://dev.gentoo.org/~asturm/distfiles/${P}-patchset-01.tar.xz" |
36 |
+ |
37 |
+LICENSE="GPL-2+" |
38 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86" |
39 |
+SLOT="0" |
40 |
+ |
41 |
+IUSE="doc gnome-keyring policykit" |
42 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
43 |
+ |
44 |
+# Needs cups running, bug 284005 |
45 |
+RESTRICT="test" |
46 |
+ |
47 |
+# Additional unhandled dependencies |
48 |
+# gnome-extra/gnome-packagekit[${PYTHON_USEDEP}] with pygobject:2 ? |
49 |
+# python samba client: smbc |
50 |
+# selinux: needed for troubleshooting |
51 |
+COMMON_DEPEND="${PYTHON_DEPS} |
52 |
+ dev-libs/glib:2 |
53 |
+ net-print/cups[dbus] |
54 |
+ virtual/libusb:1 |
55 |
+ >=virtual/udev-172 |
56 |
+ x11-libs/gtk+:3[introspection] |
57 |
+ x11-libs/libnotify[introspection] |
58 |
+ x11-libs/pango[introspection] |
59 |
+" |
60 |
+DEPEND="${COMMON_DEPEND} |
61 |
+ app-text/docbook-xml-dtd:4.1.2 |
62 |
+ >=app-text/xmlto-0.0.22 |
63 |
+ dev-util/desktop-file-utils |
64 |
+ dev-util/intltool |
65 |
+ sys-devel/gettext |
66 |
+ virtual/pkgconfig |
67 |
+ doc? ( dev-python/epydoc ) |
68 |
+" |
69 |
+RDEPEND="${COMMON_DEPEND} |
70 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
71 |
+ dev-python/pycairo[${PYTHON_USEDEP}] |
72 |
+ dev-python/pycups[${PYTHON_USEDEP}] |
73 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
74 |
+ dev-python/requests[${PYTHON_USEDEP}] |
75 |
+ dev-python/urllib3[${PYTHON_USEDEP}] |
76 |
+ gnome-keyring? ( app-crypt/libsecret[introspection] ) |
77 |
+ policykit? ( net-print/cups-pk-helper ) |
78 |
+" |
79 |
+ |
80 |
+PATCHES=( |
81 |
+ "${WORKDIR}"/${P}-auth-dialog.patch |
82 |
+ "${WORKDIR}"/${P}-libsecret-optional-{1,2}.patch |
83 |
+ "${WORKDIR}"/${P}-scp-dbus-service-{1,2}.patch |
84 |
+ "${WORKDIR}"/${P}-typo.patch |
85 |
+ "${WORKDIR}"/${P}-appdata.patch |
86 |
+ "${WORKDIR}"/${P}-empty-LC_MESSAGES.patch |
87 |
+ "${WORKDIR}"/${P}-fdopen-utf8.patch |
88 |
+ "${WORKDIR}"/${P}-typeerror.patch |
89 |
+ "${WORKDIR}"/${P}-debugprint-typo.patch |
90 |
+) |
91 |
+ |
92 |
+pkg_setup() { |
93 |
+ python-single-r1_pkg_setup |
94 |
+} |
95 |
+ |
96 |
+src_configure() { |
97 |
+ gnome2_src_configure \ |
98 |
+ --enable-nls \ |
99 |
+ --with-desktop-vendor=Gentoo \ |
100 |
+ --with-udev-rules \ |
101 |
+ --with-systemdsystemunitdir=$(systemd_get_systemunitdir) |
102 |
+} |
103 |
+ |
104 |
+src_compile() { |
105 |
+ gnome2_src_compile |
106 |
+ use doc && emake html |
107 |
+} |
108 |
+ |
109 |
+src_install() { |
110 |
+ use doc && local HTML_DOCS=( html/. ) |
111 |
+ gnome2_src_install |
112 |
+ python_fix_shebang "${ED}" |
113 |
+} |