blob: c765098f5f47a2de17b972c41378a76e946e5a28 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit python autotools
DESCRIPTION="A printer administration tool"
HOMEPAGE="http://cyberelk.net/tim/software/system-config-printer/"
SRC_URI=
#"http://cyberelk.net/tim/data/system-config-printer/1.1/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="gnome-keyring"
COMMON_DEPEND="
dev-lang/python
"
DEPEND="${COMMON_DEPEND}
app-text/docbook-xml-dtd:4.1.2
app-text/xmlto
dev-util/intltool
virtual/libintl
"
RDEPEND="${COMMON_DEPEND}
app-admin/system-config-printer-common
dev-python/libgnome-python
dev-python/notify-python
>=dev-python/pygtk-2.4
dev-python/pyxml
gnome-keyring? ( dev-python/gnome-keyring-python )
"
APP_LINGUAS="ar bg bn bn_IN 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 mk ml mr ms nb nl nn pa pl pt pt_BR ro ru
si sk sl sr sv ta te tr uk vi zh_CN"
for X in ${APP_LINGUAS}; do
IUSE="${IUSE} linguas_${X}"
done
S="${WORKDIR}/${MY_P}"
src_prepare() {
epatch "${FILESDIR}/${P}-split.patch"
eaclocal
eautomake
eautoconf
}
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 ${myconf} || die "econf failed"
}
src_install() {
dodoc AUTHORS ChangeLog README || die "dodoc failed"
emake DESTDIR="${D}" install || die "emake install failed"
}
|