| # Copyright 1999-2014 Gentoo Foundation |
| # Distributed under the terms of the GNU General Public License v2 |
| # $Id$ |
| |
| EAPI=5 |
| inherit eutils |
| |
| DESCRIPTION="PolicyKit helper to configure cups with fine-grained privileges" |
| HOMEPAGE="http://www.freedesktop.org/wiki/Software/cups-pk-helper" |
| SRC_URI="http://www.freedesktop.org/software/${PN}/releases/${P}.tar.xz" |
| |
| LICENSE="GPL-2+" |
| SLOT="0" |
| KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86" |
| IUSE="" |
| |
| # Require {glib,gdbus-codegen}-2.30.0 due to GDBus changes between 2.29.92 |
| # and 2.30.0 |
| COMMON_DEPEND=">=dev-libs/glib-2.30.0:2 |
| net-print/cups |
| >=sys-auth/polkit-0.97" |
| RDEPEND="${COMMON_DEPEND} |
| sys-apps/dbus" |
| DEPEND="${COMMON_DEPEND} |
| app-arch/xz-utils |
| >=dev-util/gdbus-codegen-2.30.0 |
| >=dev-util/intltool-0.40.6 |
| virtual/pkgconfig |
| sys-devel/gettext" |
| |
| src_prepare() { |
| DOCS="AUTHORS HACKING NEWS README" |
| |
| # Revert "Be stricter when validating printer names", bug #459596 |
| epatch "${FILESDIR}/${P}-revert-stricter.patch" |
| |
| # Regenerate dbus-codegen files to fix build with glib-2.30.x; bug #410773 |
| rm -v src/cph-iface-mechanism.{c,h} || die |
| } |