* [gentoo-commits] proj/kde-sunset:master commit in: kde-misc/plasma-emergelog/, kde-misc/plasma-emergelog/files/
@ 2017-01-17 21:12 Johannes Huber
0 siblings, 0 replies; only message in thread
From: Johannes Huber @ 2017-01-17 21:12 UTC (permalink / raw
To: gentoo-commits
commit: cf06e868231917c7ee37644055fde27ed2504c7b
Author: Johannes Huber <johu <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 17 20:27:56 2017 +0000
Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Tue Jan 17 20:27:56 2017 +0000
URL: https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=cf06e868
kde-misc/plasma-emergelog: Import latest from gentoo main tree
Package-Manager: Portage-2.3.3, Repoman-2.3.1
.../files/plasma-emergelog-0.0.2-list.patch | 21 +++++++++++++
kde-misc/plasma-emergelog/metadata.xml | 5 ++++
.../plasma-emergelog-0.0.2-r1.ebuild | 34 ++++++++++++++++++++++
3 files changed, 60 insertions(+)
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/metadata.xml b/kde-misc/plasma-emergelog/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-misc/plasma-emergelog/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+</pkgmetadata>
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..6f6d121
--- /dev/null
+++ b/kde-misc/plasma-emergelog/plasma-emergelog-0.0.2-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit kde4-base
+
+DESCRIPTION="Plasmoid for monitoring emerge progress"
+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-3+"
+# Included LICENSE is GPL-2, but all headers say 3+. hwoarang said
+# that it can be licensed as 3+
+KEYWORDS="~amd64 ~x86"
+SLOT="4"
+IUSE="debug"
+
+RDEPEND="
+ kde-plasma/plasma-workspace:4
+"
+
+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:[~2017-01-17 21:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-17 21:12 [gentoo-commits] proj/kde-sunset:master commit in: kde-misc/plasma-emergelog/, kde-misc/plasma-emergelog/files/ Johannes Huber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox