# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI="5" GCONF_DEBUG="no" PYTHON_COMPAT=( python2_7 ) PYTHON_REQ_USE="xml" inherit gnome2 python-single-r1 systemd versionator MY_V="$(get_version_component_range 1-2)" DESCRIPTION="GNOME frontend for a Red Hat's printer administration tool" HOMEPAGE="http://cyberelk.net/tim/software/system-config-printer/" SRC_URI="http://cyberelk.net/tim/data/system-config-printer/${MY_V}/${P}.tar.xz" LICENSE="GPL-2" KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ppc ppc64 ~sh ~sparc x86" SLOT="0" IUSE="doc gnome-keyring policykit" REQUIRED_USE="${PYTHON_REQUIRED_USE}" # 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 RDEPEND=" ${PYTHON_DEPS} >=dev-libs/glib-2:2 dev-libs/libxml2[python,${PYTHON_USEDEP}] dev-python/dbus-python[${PYTHON_USEDEP}] dev-python/pycairo[${PYTHON_USEDEP}] >=dev-python/pycups-1.9.60[${PYTHON_USEDEP}] dev-python/pycurl[${PYTHON_USEDEP}] dev-python/pygobject:3[${PYTHON_USEDEP}] net-print/cups[dbus] virtual/libusb:1 >=virtual/udev-172 x11-libs/gtk+:3[introspection] x11-libs/libnotify[introspection] x11-libs/pango[introspection] gnome-keyring? ( gnome-base/libgnome-keyring[introspection] ) policykit? ( >=sys-auth/polkit-0.104-r1 ) !app-admin/system-config-printer-common !app-admin/system-config-printer-gnome " DEPEND="${RDEPEND} app-text/docbook-xml-dtd:4.1.2 >=app-text/xmlto-0.0.22 dev-util/desktop-file-utils dev-util/intltool sys-devel/gettext virtual/pkgconfig doc? ( dev-python/epydoc[${PYTHON_USEDEP}] ) " # Bug 471472 MAKEOPTS+=" -j1" pkg_setup() { python-single-r1_pkg_setup } src_configure() { local myconf # Disable installation of translations when LINGUAS not chosen if [[ -z "${LINGUAS}" ]]; then myconf="${myconf} --disable-nls" else myconf="${myconf} --enable-nls" fi gnome2_src_configure \ --with-desktop-vendor=Gentoo \ --with-udev-rules \ $(systemd_with_unitdir) \ ${myconf} } src_compile() { gnome2_src_compile use doc && emake html } src_install() { gnome2_src_install use doc && dohtml -r html/ python_fix_shebang "${ED}" }