diff options
author | Maciej Mrozowski <reavertm@gentoo.org> | 2010-03-27 20:33:15 +0000 |
---|---|---|
committer | Maciej Mrozowski <reavertm@gentoo.org> | 2010-03-27 20:33:15 +0000 |
commit | 14bb7579a3c7d93a4b2834f73ac9b09b8614f9fc (patch) | |
tree | 667624208448a9286bfa6db682ee7ade7df00ceb /kde-base | |
parent | Depend on python-2, run cleanup and convert python 'shebangs' (diff) | |
download | gentoo-2-14bb7579a3c7d93a4b2834f73ac9b09b8614f9fc.tar.gz gentoo-2-14bb7579a3c7d93a4b2834f73ac9b09b8614f9fc.tar.bz2 gentoo-2-14bb7579a3c7d93a4b2834f73ac9b09b8614f9fc.zip |
Depend on python-2, run cleanup and convert python 'shebangs'
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'kde-base')
3 files changed, 40 insertions, 5 deletions
diff --git a/kde-base/system-config-printer-kde/ChangeLog b/kde-base/system-config-printer-kde/ChangeLog index 1547d7365b26..f947929f9a34 100644 --- a/kde-base/system-config-printer-kde/ChangeLog +++ b/kde-base/system-config-printer-kde/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for kde-base/system-config-printer-kde # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/system-config-printer-kde/ChangeLog,v 1.19 2010/03/27 00:29:15 reavertm Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/system-config-printer-kde/ChangeLog,v 1.20 2010/03/27 20:33:15 reavertm Exp $ + + 27 Mar 2010; Maciej Mrozowski <reavertm@gentoo.org> + system-config-printer-kde-4.4.0.ebuild, + system-config-printer-kde-4.4.1.ebuild: + Depend on python-2, run cleanup and convert python 'shebangs' 27 Mar 2010; Maciej Mrozowski <reavertm@gentoo.org> system-config-printer-kde-4.4.0.ebuild, diff --git a/kde-base/system-config-printer-kde/system-config-printer-kde-4.4.0.ebuild b/kde-base/system-config-printer-kde/system-config-printer-kde-4.4.0.ebuild index 5b1198e48d7f..700a6b35cdb4 100644 --- a/kde-base/system-config-printer-kde/system-config-printer-kde-4.4.0.ebuild +++ b/kde-base/system-config-printer-kde/system-config-printer-kde-4.4.0.ebuild @@ -1,11 +1,12 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/system-config-printer-kde/system-config-printer-kde-4.4.0.ebuild,v 1.2 2010/03/27 00:29:15 reavertm Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/system-config-printer-kde/system-config-printer-kde-4.4.0.ebuild,v 1.3 2010/03/27 20:33:15 reavertm Exp $ EAPI="2" KMNAME="kdeadmin" -inherit kde4-meta python +PYTHON_DEPEND="2" +inherit python kde4-meta DESCRIPTION="KDE port of Red Hat's Gnome system-config-printer" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" @@ -19,3 +20,17 @@ DEPEND=" RDEPEND="${DEPEND} net-print/cups[dbus] " + +pkg_setup() { + kde4-meta_pkg_setup + python_set_active_version 2 +} + +src_install() { + kde4-meta_src_install + python_convert_shebangs -q -r $(python_get_version) "${ED}${PREFIX}/share/apps/${PN}" +} + +pkg_postrm() { + python_mod_cleanup "${EPREFIX}${PREFIX}share/apps/${PN}" +} diff --git a/kde-base/system-config-printer-kde/system-config-printer-kde-4.4.1.ebuild b/kde-base/system-config-printer-kde/system-config-printer-kde-4.4.1.ebuild index 26fd648ad016..9e7ad390e56c 100644 --- a/kde-base/system-config-printer-kde/system-config-printer-kde-4.4.1.ebuild +++ b/kde-base/system-config-printer-kde/system-config-printer-kde-4.4.1.ebuild @@ -1,11 +1,12 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/system-config-printer-kde/system-config-printer-kde-4.4.1.ebuild,v 1.2 2010/03/27 00:29:15 reavertm Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/system-config-printer-kde/system-config-printer-kde-4.4.1.ebuild,v 1.3 2010/03/27 20:33:15 reavertm Exp $ EAPI="3" KMNAME="kdeadmin" -inherit kde4-meta python +PYTHON_DEPEND="2" +inherit python kde4-meta DESCRIPTION="KDE port of Red Hat's Gnome system-config-printer" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" @@ -19,3 +20,17 @@ DEPEND=" RDEPEND="${DEPEND} net-print/cups[dbus] " + +pkg_setup() { + kde4-meta_pkg_setup + python_set_active_version 2 +} + +src_install() { + kde4-meta_src_install + python_convert_shebangs -q -r $(python_get_version) "${ED}${PREFIX}/share/apps/${PN}" +} + +pkg_postrm() { + python_mod_cleanup "${EPREFIX}${PREFIX}share/apps/${PN}" +} |