diff options
author | Maciej Mrozowski <reavertm@gentoo.org> | 2011-10-05 22:55:07 +0000 |
---|---|---|
committer | Maciej Mrozowski <reavertm@gentoo.org> | 2011-10-05 22:55:07 +0000 |
commit | df953036dd358ad3f913be3461d832748fde2b10 (patch) | |
tree | ccf345010e4248480a0c11e7b4b0e26880e520f7 /app-admin/system-config-printer-gnome/system-config-printer-gnome-1.3.7.ebuild | |
parent | use qt4-r2.eclass (diff) | |
download | historical-df953036dd358ad3f913be3461d832748fde2b10.tar.gz historical-df953036dd358ad3f913be3461d832748fde2b10.tar.bz2 historical-df953036dd358ad3f913be3461d832748fde2b10.zip |
Version bump
Package-Manager: portage-2.2.0_alpha61/cvs/Linux x86_64
Diffstat (limited to 'app-admin/system-config-printer-gnome/system-config-printer-gnome-1.3.7.ebuild')
-rw-r--r-- | app-admin/system-config-printer-gnome/system-config-printer-gnome-1.3.7.ebuild | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/app-admin/system-config-printer-gnome/system-config-printer-gnome-1.3.7.ebuild b/app-admin/system-config-printer-gnome/system-config-printer-gnome-1.3.7.ebuild new file mode 100644 index 000000000000..cdde178ad450 --- /dev/null +++ b/app-admin/system-config-printer-gnome/system-config-printer-gnome-1.3.7.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2011 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.3.7.ebuild,v 1.1 2011/10/05 22:55:07 reavertm Exp $ + +EAPI="3" + +PYTHON_DEPEND="2" +PYTHON_USE_WITH="xml" +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.3/${MY_P}.tar.xz" + +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~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/notify-python + >=dev-python/pygtk-2.4 + gnome-keyring? ( dev-python/gnome-keyring-python ) +" +DEPEND="${RDEPEND} + app-text/docbook-xml-dtd:4.1.2 + >=app-text/xmlto-0.0.22 + dev-util/intltool + dev-util/pkgconfig + 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.3.5-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="${ED}" install || die "emake install failed" + + python_convert_shebangs -q -r $(python_get_version) "${ED}" +} + +pkg_postrm() { + python_mod_cleanup /usr/share/system-config-printer +} |