public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/kde:master commit in: kde-misc/plasma-emergelog/files/, kde-misc/plasma-emergelog/
@ 2011-11-19 21:47 Johannes Huber
  0 siblings, 0 replies; only message in thread
From: Johannes Huber @ 2011-11-19 21:47 UTC (permalink / raw
  To: gentoo-commits

commit:     d60c008b361706c71d07aec349a0a94158f7a199
Author:     Johannes Huber <johu <AT> gmx <DOT> de>
AuthorDate: Sat Nov 19 21:47:25 2011 +0000
Commit:     Johannes Huber <johu <AT> gmx <DOT> de>
CommitDate: Sat Nov 19 21:47:25 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=d60c008b

[kde-misc/plasma-emergelog] Revbump 0.0.2, patch added. Fix bug 391037. Thanks
David E. Narváez <david.narvaez <AT> computer.org>.

(Portage version: 2.2.0_alpha76/git/Linux i686, unsigned Manifest commit)

---
 .../files/plasma-emergelog-0.0.2-list.patch        |   21 +++++++++++++
 .../plasma-emergelog-0.0.2-r1.ebuild               |   32 ++++++++++++++++++++
 2 files changed, 53 insertions(+), 0 deletions(-)

diff --git a/kde-misc/plasma-emergelog/files/plasma-emergelog-0.0.2-list.patch b/kde-misc/plasma-emergelog/files/plasma-emergelog-0.0.2-list.patch
new file mode 100644
index 0000000..732cde2
--- /dev/null
+++ b/kde-misc/plasma-emergelog/files/plasma-emergelog-0.0.2-list.patch
@@ -0,0 +1,21 @@
+diff --git plasma-emergelog.cpp plasma-emergelog.cpp
+index 362eaa3..f3e8ea8 100644
+--- old/plasma-emergelog-0.0.2/plasma-emergelog.cpp
++++ new/plasma-emergelog-0.0.2/plasma-emergelog.cpp
+@@ -35,6 +35,7 @@
+ #include "plasma-emergelog-painter.h"
+ #include <exception>
+ #include <iostream>
++#include <cmath>
+ 
+ 
+ class myexception: public std::exception
+@@ -167,7 +168,7 @@ void emergelog::process_data(){
+ 		/* Create a list . Each element is a line from that file */
+ 		list = data.split('\n', QString::SkipEmptyParts);
+ 		/* read the block BACKWARDS */
+-		for (int i=list.size()-1;i>(list.size()-(document->maximumBlockCount()));i--){
++		for (int i=list.size()-1;i>std::max<int>(0, list.size()-(document->maximumBlockCount()));i--){
+ 			if(cursor.position() != 0){
+ 				cursor.insertBlock();
+ 			}

diff --git a/kde-misc/plasma-emergelog/plasma-emergelog-0.0.2-r1.ebuild b/kde-misc/plasma-emergelog/plasma-emergelog-0.0.2-r1.ebuild
new file mode 100644
index 0000000..5b888de
--- /dev/null
+++ b/kde-misc/plasma-emergelog/plasma-emergelog-0.0.2-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit kde4-base
+
+DESCRIPTION="Kde4 plasmoid for monitoring emerge progress on Gentoo Linux"
+HOMEPAGE="http://www.kde-look.org/content/show.php?content=103928"
+SRC_URI="http://dev.gentooexperimental.org/~hwoarang/projects/plasma-emergelog/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="debug"
+
+RDEPEND="
+	$(add_kdebase_dep plasma-workspace)
+"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-0.0.2-list.patch
+)
+
+pkg_postinst() {
+	kde4-base_pkg_postinst
+	einfo "You need to add your user to 'portage' group"
+	einfo "in order to use this plasmoid. To do that, use"
+	einfo "the following command:"
+	einfo "usermod -a -G portage <your_user_here>"
+}



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-11-19 22:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-19 21:47 [gentoo-commits] proj/kde:master commit in: kde-misc/plasma-emergelog/files/, kde-misc/plasma-emergelog/ Johannes Huber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox