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