Files
sablink-distro/app-admin/system-config-printer/system-config-printer-1.1.6.ebuild
T
lxnay 6e98564831 port several ebuilds from kde-testing overlay:
kde-base/printer-applet
kde-base/system-config-printer-kde
dev-python-pycups
app-admin/system-config-printer
app-misc/hal-cups-utils


git-svn-id: http://svn.sabayonlinux.org/overlay@2910 d7aec97c-591d-0410-af39-a8856400b30a
2009-03-29 20:44:36 +00:00

67 lines
1.5 KiB
Bash

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit python
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="~amd64 ~x86"
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}
dev-libs/libxml2[python]
dev-python/dbus-python
dev-python/libgnome-python
dev-python/notify-python
dev-python/pycups
>=dev-python/pygtk-2.4
dev-python/pyxml
net-print/cups[dbus]
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
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"
}
pkg_postrm() {
python_mod_cleanup "/usr/share/${PN}"
}