summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2011-10-06 18:11:13 +0000
committerAlexey Shvetsov <alexxy@gentoo.org>2011-10-06 18:11:13 +0000
commit89e71ef45253e6d197ba528112eeae6984651626 (patch)
tree043bfec14e51381244a2ec0e91acb3879eae0a5c /kde-base/printer-applet
parentInitial import. New dependency for forthcoming Rails 3.1 release. (diff)
downloadhistorical-89e71ef45253e6d197ba528112eeae6984651626.tar.gz
historical-89e71ef45253e6d197ba528112eeae6984651626.tar.bz2
historical-89e71ef45253e6d197ba528112eeae6984651626.zip
[kde-base] KDE SC 4.7.2
Package-Manager: portage-2.2.0_alpha61/cvs/Linux x86_64
Diffstat (limited to 'kde-base/printer-applet')
-rw-r--r--kde-base/printer-applet/ChangeLog8
-rw-r--r--kde-base/printer-applet/printer-applet-4.7.2.ebuild54
2 files changed, 61 insertions, 1 deletions
diff --git a/kde-base/printer-applet/ChangeLog b/kde-base/printer-applet/ChangeLog
index c04e9cf08dcb..e21121c6bde0 100644
--- a/kde-base/printer-applet/ChangeLog
+++ b/kde-base/printer-applet/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for kde-base/printer-applet
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/printer-applet/ChangeLog,v 1.56 2011/09/07 20:13:57 alexxy Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/printer-applet/ChangeLog,v 1.57 2011/10/06 18:10:45 alexxy Exp $
+
+*printer-applet-4.7.2 (06 Oct 2011)
+
+ 06 Oct 2011; Alexey Shvetsov <alexxy@gentoo.org>
+ +printer-applet-4.7.2.ebuild:
+ Version bump KDE SC 4.7.2
*printer-applet-4.7.1 (07 Sep 2011)
diff --git a/kde-base/printer-applet/printer-applet-4.7.2.ebuild b/kde-base/printer-applet/printer-applet-4.7.2.ebuild
new file mode 100644
index 000000000000..fea5f97345ef
--- /dev/null
+++ b/kde-base/printer-applet/printer-applet-4.7.2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/printer-applet/printer-applet-4.7.2.ebuild,v 1.1 2011/10/06 18:10:45 alexxy Exp $
+
+EAPI=3
+
+KDE_HANDBOOK="optional"
+PYTHON_DEPEND="2"
+KDE_SCM="git"
+if [[ ${PV} == *9999 ]]; then
+ kde_eclass="kde4-base"
+else
+ KMNAME="kdeutils"
+ kde_eclass="kde4-meta"
+fi
+inherit python ${kde_eclass}
+
+DESCRIPTION="KDE printer system tray utility"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=app-admin/system-config-printer-common-1.2.2
+ $(add_kdebase_dep pykde4)
+"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ ${kde_eclass}_pkg_setup
+ python_set_active_version 2
+}
+
+src_prepare() {
+ ${kde_eclass}_src_prepare
+
+ # Rename printer-applet -> printer-applet-kde
+ local newname="printer-applet-kde"
+ local srcdir=.
+ [[ ${kde_eclass} == "kde4-meta" ]] && srcdir="${KMMODULE}"
+ sed -e "/PYKDE4_ADD_EXECUTABLE/s/ printer-applet[[:space:]]*)/ ${newname})/" \
+ -e "/install/s/)/ RENAME ${newname}.desktop)/" \
+ -i "${srcdir}"/CMakeLists.txt || die "failed to rename printer-applet executable"
+ sed -e "/Exec/s/printer-applet/${newname}/" \
+ -i "${srcdir}"/printer-applet.desktop || die "failed to patch .desktop file"
+}
+
+src_install() {
+ ${kde_eclass}_src_install
+ python_convert_shebangs -q -r $(python_get_version) "${ED}"
+}
+
+pkg_postrm() {
+ python_mod_cleanup "${PREFIX}share/apps/${PN}"
+}