/[gentoo-x86]/app-admin/system-config-printer-gnome/system-config-printer-gnome-1.3.11.ebuild
Gentoo

Contents of /app-admin/system-config-printer-gnome/system-config-printer-gnome-1.3.11.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Nov 7 20:10:25 2012 UTC (20 months, 2 weeks ago) by pacho
Branch: MAIN
Changes since 1.4: +2 -2 lines
x86 stable keyword was dropped by error, bug #442240 by redneb.

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-admin/system-config-printer-gnome/system-config-printer-gnome-1.3.11.ebuild,v 1.4 2012/09/30 17:41:13 armin76 Exp $
4
5 EAPI="3"
6
7 PYTHON_DEPEND="2"
8 PYTHON_USE_WITH="xml"
9 WANT_AUTOMAKE="1.11"
10 inherit eutils python autotools
11
12 MY_P="${PN%-gnome}-${PV}"
13
14 DESCRIPTION="GNOME frontend for a Red Hat's printer administration tool"
15 HOMEPAGE="http://cyberelk.net/tim/software/system-config-printer/"
16 SRC_URI="http://cyberelk.net/tim/data/system-config-printer/1.3/${MY_P}.tar.xz"
17
18 LICENSE="GPL-2"
19 KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sh sparc x86"
20 SLOT="0"
21 IUSE="gnome-keyring"
22
23 # Needs cups running, bug 284005
24 RESTRICT="test"
25
26 RDEPEND="
27 ~app-admin/system-config-printer-common-${PV}
28 dev-python/notify-python
29 >=dev-python/pycups-1.9.60
30 >=dev-python/pygtk-2.4
31 gnome-keyring? ( dev-python/gnome-keyring-python )
32 "
33 DEPEND="${RDEPEND}
34 app-text/docbook-xml-dtd:4.1.2
35 >=app-text/xmlto-0.0.22
36 dev-util/desktop-file-utils
37 dev-util/intltool
38 virtual/pkgconfig
39 sys-devel/gettext
40 "
41
42 APP_LINGUAS="ar as bg bn_IN bn br bs ca cs cy da de el en_GB es et fa fi fr gu
43 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
44 pt_BR pt ro ru si sk sl sr@latin sr sv ta te th tr uk vi zh_CN zh_TW"
45 for X in ${APP_LINGUAS}; do
46 IUSE="${IUSE} linguas_${X}"
47 done
48
49 S="${WORKDIR}/${MY_P}"
50
51 pkg_setup() {
52 python_set_active_version 2
53 }
54
55 src_prepare() {
56 epatch "${FILESDIR}/${PN}-1.3.11-split.patch"
57 eautoreconf
58 }
59
60 src_configure() {
61 local myconf
62
63 # Disable installation of translations when LINGUAS not chosen
64 if [[ -z "${LINGUAS}" ]]; then
65 myconf="${myconf} --disable-nls"
66 else
67 myconf="${myconf} --enable-nls"
68 fi
69
70 econf \
71 --with-desktop-vendor=Gentoo \
72 --without-udev-rules \
73 ${myconf}
74 }
75
76 src_install() {
77 dodoc AUTHORS ChangeLog README || die "dodoc failed"
78
79 emake DESTDIR="${ED}" install || die "emake install failed"
80
81 python_convert_shebangs -q -r $(python_get_version) "${ED}"
82 }
83
84 pkg_postrm() {
85 python_mod_cleanup /usr/share/system-config-printer
86 }

  ViewVC Help
Powered by ViewVC 1.1.20