Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/system-config-printer/
Date: Fri, 26 Aug 2022 02:06:10
Message-Id: 1661479520.b7a88c266fee639adbbee7e481e407ed87f9a4e3.mattst88@gentoo
1 commit: b7a88c266fee639adbbee7e481e407ed87f9a4e3
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 26 02:00:20 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 26 02:05:20 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7a88c26
7
8 app-admin/system-config-printer: Version bump to 1.5.17
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 app-admin/system-config-printer/Manifest | 1 +
13 .../system-config-printer-1.5.17.ebuild | 90 ++++++++++++++++++++++
14 2 files changed, 91 insertions(+)
15
16 diff --git a/app-admin/system-config-printer/Manifest b/app-admin/system-config-printer/Manifest
17 index 3c1f5274f4a2..64bc94b0aedc 100644
18 --- a/app-admin/system-config-printer/Manifest
19 +++ b/app-admin/system-config-printer/Manifest
20 @@ -1 +1,2 @@
21 DIST system-config-printer-1.5.16.tar.xz 1382124 BLAKE2B 37548bd470f8e80026e014d4077a79a38ad54258d620654536890b67b688fc790c9a9a269b321f2e12d63ec21f24858866e39b41089195c528ddbdf1351bba5f SHA512 ed20a409def66bdea7de4cd5b397891eca220c841e1b5c8cab98e45f87389ae8ba881d9e24072dd07203141fc34c49c4b67cf099791857c007971e3b7d2e2fc2
22 +DIST system-config-printer-1.5.17.tar.xz 1385792 BLAKE2B c17dce0ef2988028a95e4ad7b9ead18aa13ab07452f5df9a6fb07f4728ce2ed7aa51e8997e7086d517f6965ec1f306fbd6e7f68683e6da66d18bc75408af9220 SHA512 e56fb45e76a93de122bef99774574f77168014b855cd75e1939fb2d6e56ddb27496679a7932cd6255b950599541c3fb3b82386735bfb6dc13eed59f9a259668e
23
24 diff --git a/app-admin/system-config-printer/system-config-printer-1.5.17.ebuild b/app-admin/system-config-printer/system-config-printer-1.5.17.ebuild
25 new file mode 100644
26 index 000000000000..b3d54f6d76b2
27 --- /dev/null
28 +++ b/app-admin/system-config-printer/system-config-printer-1.5.17.ebuild
29 @@ -0,0 +1,90 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +PYTHON_REQ_USE="xml"
37 +inherit python-single-r1 systemd udev xdg
38 +
39 +DESCRIPTION="Graphical user interface for CUPS administration"
40 +HOMEPAGE="https://github.com/OpenPrinting/system-config-printer"
41 +SRC_URI="https://github.com/OpenPrinting/${PN}/releases/download/v${PV}/${P}.tar.xz"
42 +
43 +LICENSE="GPL-2+"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
46 +IUSE="gnome-keyring policykit"
47 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
48 +
49 +# Needs cups running, bug 284005
50 +RESTRICT="test"
51 +
52 +# Additional unhandled dependencies
53 +# gnome-extra/gnome-packagekit[${PYTHON_USEDEP}] with pygobject:2 ?
54 +# python samba client: smbc
55 +# selinux: needed for troubleshooting
56 +COMMON_DEPEND="${PYTHON_DEPS}
57 + dev-libs/glib:2
58 + net-print/cups[dbus]
59 + virtual/libusb:1
60 + >=virtual/udev-172
61 + x11-libs/gtk+:3[introspection]
62 + x11-libs/libnotify[introspection]
63 + x11-libs/pango[introspection]
64 +"
65 +DEPEND="${COMMON_DEPEND}
66 + app-text/docbook-xml-dtd:4.1.2
67 + >=app-text/xmlto-0.0.22
68 + dev-perl/XML-Parser
69 + dev-util/desktop-file-utils
70 + >=sys-devel/gettext-0.20
71 + virtual/pkgconfig
72 +"
73 +RDEPEND="${COMMON_DEPEND}
74 + $(python_gen_cond_dep '
75 + dev-python/dbus-python[${PYTHON_USEDEP}]
76 + dev-python/pycairo[${PYTHON_USEDEP}]
77 + dev-python/pycups[${PYTHON_USEDEP}]
78 + dev-python/pygobject:3[${PYTHON_USEDEP}]
79 + dev-python/requests[${PYTHON_USEDEP}]
80 + dev-python/urllib3[${PYTHON_USEDEP}]
81 + ')
82 + gnome-keyring? ( app-crypt/libsecret[introspection] )
83 + policykit? ( net-print/cups-pk-helper )
84 +"
85 +
86 +pkg_setup() {
87 + python-single-r1_pkg_setup
88 +}
89 +
90 +src_configure() {
91 + local myeconfargs=(
92 + --with-xmlto
93 + --enable-nls
94 + --with-desktop-vendor=Gentoo
95 + --with-udev-rules
96 + --with-systemdsystemunitdir=$(systemd_get_systemunitdir)
97 + )
98 + econf "${myeconfargs[@]}"
99 +}
100 +
101 +src_compile() {
102 + default
103 + python_optimize cupshelpers
104 +}
105 +
106 +src_install() {
107 + default
108 + python_fix_shebang "${ED}"
109 + python_optimize
110 + python_domodule cupshelpers
111 +}
112 +
113 +pkg_postinst() {
114 + udev_reload
115 +}
116 +
117 +pkg_postrm() {
118 + udev_reload
119 +}