diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-01-07 18:05:50 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-01-07 18:06:12 +0100 |
commit | 4ed58ffd0c2609b9a48d318d304eb7a2eb3af5da (patch) | |
tree | 4c01ea498fb88ab3ce5065e3586e6f7508dffd56 /app-admin/system-config-printer | |
parent | dev-python/huawei-lte-api: Bump to 1.8.1 (diff) | |
download | gentoo-4ed58ffd0c2609b9a48d318d304eb7a2eb3af5da.tar.gz gentoo-4ed58ffd0c2609b9a48d318d304eb7a2eb3af5da.tar.bz2 gentoo-4ed58ffd0c2609b9a48d318d304eb7a2eb3af5da.zip |
app-admin/system-config-printer: Fix python install
Closes: https://bugs.gentoo.org/918457
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-admin/system-config-printer')
-rw-r--r-- | app-admin/system-config-printer/system-config-printer-1.5.18-r2.ebuild | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/app-admin/system-config-printer/system-config-printer-1.5.18-r2.ebuild b/app-admin/system-config-printer/system-config-printer-1.5.18-r2.ebuild new file mode 100644 index 000000000000..6df5fa717fd3 --- /dev/null +++ b/app-admin/system-config-printer/system-config-printer-1.5.18-r2.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 systemd udev xdg + +DESCRIPTION="Graphical user interface for CUPS administration" +HOMEPAGE="https://github.com/OpenPrinting/system-config-printer/" +SRC_URI=" + https://github.com/OpenPrinting/${PN}/releases/download/v${PV}/${P}.tar.xz +" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="keyring policykit" +# Needs cups running, bug 284005 +RESTRICT="test" + +# Additional unhandled dependencies +# gnome-extra/gnome-packagekit[${PYTHON_USEDEP}] with pygobject:2 ? +# python samba client: smbc +# selinux: needed for troubleshooting +DEPEND=" + dev-libs/glib:2 + net-print/cups[dbus] + virtual/libusb:1 + >=virtual/udev-172 + x11-libs/gtk+:3[introspection] + x11-libs/libnotify[introspection] + x11-libs/pango[introspection] +" +BDEPEND=" + app-text/docbook-xml-dtd:4.1.2 + >=app-text/xmlto-0.0.22 + dev-perl/XML-Parser + dev-util/desktop-file-utils + >=sys-devel/gettext-0.20 + virtual/pkgconfig +" +RDEPEND=" + ${DEPEND} + $(python_gen_cond_dep ' + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/pycairo[${PYTHON_USEDEP}] + dev-python/pycups[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] + ') + keyring? ( app-crypt/libsecret[introspection] ) + policykit? ( net-print/cups-pk-helper ) +" + +PATCHES=( + # git master (1.5.19) + "${FILESDIR}/${P}-fix-debugprint-exception.patch" +) + +src_configure() { + local myeconfargs=( + --with-xmlto + --enable-nls + --with-desktop-vendor=Gentoo + --with-udev-rules + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" + ) + econf "${myeconfargs[@]}" +} + +src_compile() { + emake PYTHON=: + distutils-r1_src_compile +} + +src_install() { + emake DESTDIR="${D}" PYTHON=: install + python_fix_shebang "${ED}" + distutils-r1_src_install +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +} |