public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Johannes Huber" <johu@gmx.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/kde:master commit in: kde-misc/plasma-emergelog/files/, kde-misc/plasma-emergelog/
Date: Sat, 19 Nov 2011 21:47:12 +0000 (UTC)	[thread overview]
Message-ID: <d60c008b361706c71d07aec349a0a94158f7a199.johu@gentoo> (raw)

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>"
+}



                 reply	other threads:[~2011-11-19 22:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d60c008b361706c71d07aec349a0a94158f7a199.johu@gentoo \
    --to=johu@gmx.de \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox