blob: d892fd372a6540cb11cbf29f0dfebc6c4e650a60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/system-config-printer-common/system-config-printer-common-1.3.9-r2.ebuild,v 1.5 2012/12/02 22:56:02 ssuominen Exp $
EAPI="3"
PYTHON_DEPEND="2"
WANT_AUTOMAKE="1.11"
inherit eutils python autotools udev
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/system-config-printer/1.3/${MY_P}.tar.xz"
LICENSE="GPL-2"
KEYWORDS="alpha amd64 arm ~hppa ia64 ppc ppc64 sh sparc x86"
SLOT="0"
IUSE="doc policykit"
# Needs cups running, bug 284005
RESTRICT="test"
# system-config-printer split since 1.1.3
COMMON_DEPEND="
dev-libs/glib:2
dev-libs/libxml2[python]
dev-python/dbus-python
>=dev-python/pycups-1.9.60
dev-python/pycurl
>=dev-python/pygobject-2.21.5:2
<net-print/cups-1.6.0[dbus]
>=virtual/udev-171
virtual/libusb:0
"
DEPEND="${COMMON_DEPEND}
dev-util/intltool
virtual/pkgconfig
doc? ( dev-python/epydoc )
"
RDEPEND="${COMMON_DEPEND}
!<app-admin/system-config-printer-gnome-${PV}
policykit? ( sys-auth/polkit )
"
S="${WORKDIR}/${MY_P}"
pkg_setup() {
python_set_active_version 2
}
src_prepare() {
epatch "${FILESDIR}/${PN}-1.3.9-split.patch"
epatch "${FILESDIR}/${PN}-1.3.9-cups_filters_path.patch"
eautoreconf
}
src_configure() {
econf \
--disable-nls \
--with-udev-rules
}
src_compile() {
emake || die "emake failed"
if use doc; then
emake html || die "emake html failed"
fi
}
src_install() {
dodoc AUTHORS ChangeLog README || die "dodoc failed"
if use doc; then
dohtml -r html/ || die "installing html docs failed"
fi
emake DESTDIR="${ED}" install \
udevrulesdir="$(udev_get_udevdir)/rules.d" \
udevhelperdir="$(udev_get_udevdir)" \
|| die "emake install failed"
python_convert_shebangs -q -r $(python_get_version) "${ED}"
}
pkg_postinst() {
python_mod_optimize cupshelpers
}
pkg_postrm() {
python_mod_cleanup cupshelpers /usr/share/system-config-printer
}
|