summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2011-12-11 18:52:41 +0000
committerAlexey Shvetsov <alexxy@gentoo.org>2011-12-11 18:52:41 +0000
commit351f7dda3f62817dd3747226a48fb58b92f8e510 (patch)
treed44f25d056ad34656ac0a5ac45ee7fa316af0df4 /kde-base/printer-applet
parentAdd 3.0 documentation (diff)
downloadhistorical-351f7dda3f62817dd3747226a48fb58b92f8e510.tar.gz
historical-351f7dda3f62817dd3747226a48fb58b92f8e510.tar.bz2
historical-351f7dda3f62817dd3747226a48fb58b92f8e510.zip
[kde-base] Add long waiting KDE SC 4.7.4
Package-Manager: portage-2.2.0_alpha79/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.4.ebuild55
2 files changed, 62 insertions, 1 deletions
diff --git a/kde-base/printer-applet/ChangeLog b/kde-base/printer-applet/ChangeLog
index b5cb7c7c7bec..656fdd1ace49 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.63 2011/12/07 23:07:30 dilfridge Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/printer-applet/ChangeLog,v 1.64 2011/12/11 18:52:34 alexxy Exp $
+
+*printer-applet-4.7.4 (11 Dec 2011)
+
+ 11 Dec 2011; Alexey Shvetsov <alexxy@gentoo.org>
+ +printer-applet-4.7.4.ebuild:
+ Version bump KDE SC 4.7.4
07 Dec 2011; Andreas K. Huettel <dilfridge@gentoo.org>
-printer-applet-4.7.2.ebuild:
diff --git a/kde-base/printer-applet/printer-applet-4.7.4.ebuild b/kde-base/printer-applet/printer-applet-4.7.4.ebuild
new file mode 100644
index 000000000000..4866b5d7fa93
--- /dev/null
+++ b/kde-base/printer-applet/printer-applet-4.7.4.ebuild
@@ -0,0 +1,55 @@
+# 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.4.ebuild,v 1.1 2011/12/11 18:52:34 alexxy Exp $
+
+EAPI=4
+
+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
+ python_pkg_setup
+}
+
+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}"
+}