blob: c47ea70eb552252c87622a44d4c2fdac50696664 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/system-config-printer-gnome/system-config-printer-gnome-1.2.4.ebuild,v 1.2 2010/09/19 17:05:56 armin76 Exp $
EAPI="3"
PYTHON_DEPEND="2"
WANT_AUTOMAKE="1.11"
inherit python autotools
MY_P="${PN%-gnome}-${PV}"
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/1.2/${MY_P}.tar.xz"
LICENSE="GPL-2"
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~sh ~sparc ~x86"
SLOT="0"
IUSE="gnome-keyring"
# Needs cups running, bug 284005
RESTRICT="test"
RDEPEND="
>=app-admin/system-config-printer-common-${PV}
dev-python/libgnome-python
dev-python/notify-python
>=dev-python/pygtk-2.4
dev-python/pyxml
gnome-keyring? ( dev-python/gnome-keyring-python )
"
DEPEND="${RDEPEND}
app-text/docbook-xml-dtd:4.1.2
app-text/xmlto
dev-util/intltool
sys-devel/gettext
"
APP_LINGUAS="ar as bg bn_IN bn br bs ca cs cy da de el en_GB es et fa fi fr gu
he hi hr hu hy id is it ja ka kn ko lo lv mai mk ml mr ms nb nl nn or pa pl
pt_BR pt ro ru si sk sl sr@latin sr sv ta te th tr uk vi zh_CN zh_TW"
for X in ${APP_LINGUAS}; do
IUSE="${IUSE} linguas_${X}"
done
S="${WORKDIR}/${MY_P}"
pkg_setup() {
python_set_active_version 2
}
src_prepare() {
epatch "${FILESDIR}/${PN}-1.2.3-split.patch"
eautoreconf
}
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
econf \
--with-desktop-vendor=Gentoo \
--without-udev-rules \
${myconf}
}
src_install() {
dodoc AUTHORS ChangeLog README || die "dodoc failed"
emake DESTDIR="${D}" install || die "emake install failed"
python_convert_shebangs -q -r $(python_get_version) "${D}"
}
pkg_postrm() {
python_mod_cleanup /usr/share/system-config-printer
}
|