You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
1.9 KiB
84 lines
1.9 KiB
11 years ago
|
# Copyright 1999-2013 Gentoo Foundation
|
||
12 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
11 years ago
|
# $Header: /var/cvsroot/gentoo-x86/app-admin/system-config-printer-common/system-config-printer-common-1.4.2.ebuild,v 1.1 2013/10/20 08:27:13 pacho Exp $
|
||
12 years ago
|
|
||
11 years ago
|
EAPI="5"
|
||
|
PYTHON_COMPAT=( python2_{6,7} )
|
||
|
PYTHON_REQ_USE="xml"
|
||
12 years ago
|
|
||
11 years ago
|
inherit autotools eutils python-single-r1 systemd
|
||
12 years ago
|
|
||
|
MY_P=${PN%-common}-${PV}
|
||
|
|
||
|
DESCRIPTION="Common modules of Red Hat's printer administration tool"
|
||
|
HOMEPAGE="http://cyberelk.net/tim/software/system-config-printer/"
|
||
|
SRC_URI="http://cyberelk.net/tim/data/${PN/-common}/${PV%.*}/${MY_P}.tar.xz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
11 years ago
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
|
||
12 years ago
|
SLOT="0"
|
||
|
IUSE="doc policykit"
|
||
11 years ago
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||
12 years ago
|
|
||
|
# Needs cups running, bug 284005
|
||
|
RESTRICT="test"
|
||
|
|
||
|
# system-config-printer split since 1.1.3
|
||
11 years ago
|
#
|
||
|
# Additional unhandled dependencies:
|
||
|
# net-firewall/firewalld[${PYTHON_USEDEP}]
|
||
|
# gnome-extra/gnome-packagekit[${PYTHON_USEDEP}] with pygobject:2 ?
|
||
12 years ago
|
COMMON_DEPEND="
|
||
11 years ago
|
${PYTHON_DEPS}
|
||
12 years ago
|
>=dev-libs/glib-2
|
||
11 years ago
|
dev-libs/libxml2[python,${PYTHON_USEDEP}]
|
||
|
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||
|
>=dev-python/pycups-1.9.60[${PYTHON_USEDEP}]
|
||
|
dev-python/pycurl[${PYTHON_USEDEP}]
|
||
|
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||
12 years ago
|
net-print/cups[dbus]
|
||
12 years ago
|
virtual/libusb:1
|
||
11 years ago
|
>=virtual/udev-172
|
||
12 years ago
|
"
|
||
|
DEPEND="${COMMON_DEPEND}
|
||
|
dev-util/intltool
|
||
|
virtual/pkgconfig
|
||
11 years ago
|
doc? ( dev-python/epydoc[${PYTHON_USEDEP}] )
|
||
12 years ago
|
"
|
||
|
RDEPEND="${COMMON_DEPEND}
|
||
|
!<app-admin/system-config-printer-gnome-${PV}
|
||
|
policykit? ( >=sys-auth/polkit-0.104-r1 )
|
||
|
"
|
||
|
|
||
|
S=${WORKDIR}/${MY_P}
|
||
|
|
||
|
pkg_setup() {
|
||
11 years ago
|
python-single-r1_pkg_setup
|
||
12 years ago
|
}
|
||
|
|
||
|
src_prepare() {
|
||
11 years ago
|
epatch "${FILESDIR}"/${PN}-1.4.1-split.patch
|
||
12 years ago
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
|
--disable-nls \
|
||
11 years ago
|
--with-udev-rules \
|
||
|
$(systemd_with_unitdir)
|
||
12 years ago
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
emake
|
||
|
use doc && emake html
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
11 years ago
|
emake DESTDIR="${D}" install
|
||
12 years ago
|
|
||
|
dodoc AUTHORS ChangeLog README
|
||
|
use doc && dohtml -r html/
|
||
|
|
||
11 years ago
|
python_fix_shebang "${ED}"
|
||
12 years ago
|
}
|