summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Reffett <creffett@gentoo.org>2013-06-22 16:35:59 +0000
committerChris Reffett <creffett@gentoo.org>2013-06-22 16:35:59 +0000
commit6b9c137c65a80f73bb7e156825c65e6800736bc9 (patch)
tree5347e33121197f33ae85be5e825fe41bd776477d /kde-misc/plasma-emergelog
parentFix build with libav9 wrt bug#443424. Even tho the upstream patched it slight... (diff)
downloadgentoo-2-6b9c137c65a80f73bb7e156825c65e6800736bc9.tar.gz
gentoo-2-6b9c137c65a80f73bb7e156825c65e6800736bc9.tar.bz2
gentoo-2-6b9c137c65a80f73bb7e156825c65e6800736bc9.zip
Move to tree from KDE overlay, fix license
(Portage version: 2.2.0_alpha183/cvs/Linux x86_64, signed Manifest commit with key 42618354)
Diffstat (limited to 'kde-misc/plasma-emergelog')
-rw-r--r--kde-misc/plasma-emergelog/ChangeLog10
-rw-r--r--kde-misc/plasma-emergelog/files/plasma-emergelog-0.0.2-list.patch21
-rw-r--r--kde-misc/plasma-emergelog/metadata.xml6
-rw-r--r--kde-misc/plasma-emergelog/plasma-emergelog-0.0.2-r1.ebuild34
4 files changed, 71 insertions, 0 deletions
diff --git a/kde-misc/plasma-emergelog/ChangeLog b/kde-misc/plasma-emergelog/ChangeLog
new file mode 100644
index 000000000000..50387bb31715
--- /dev/null
+++ b/kde-misc/plasma-emergelog/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for kde-misc/plasma-emergelog
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/kde-misc/plasma-emergelog/ChangeLog,v 1.1 2013/06/22 16:35:59 creffett Exp $
+
+*plasma-emergelog-0.0.2-r1 (22 Jun 2013)
+
+ 22 Jun 2013; Chris Reffett <creffett@gentoo.org>
+ +files/plasma-emergelog-0.0.2-list.patch, +metadata.xml,
+ +plasma-emergelog-0.0.2-r1.ebuild:
+ Move to tree from KDE overlay, fix license
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 000000000000..732cde2d7a67
--- /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 000000000000..6222792776c2
--- /dev/null
+++ b/kde-misc/plasma-emergelog/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>kde</herd>
+</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 000000000000..9bed6721785e
--- /dev/null
+++ b/kde-misc/plasma-emergelog/plasma-emergelog-0.0.2-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-misc/plasma-emergelog/plasma-emergelog-0.0.2-r1.ebuild,v 1.1 2013/06/22 16:35:59 creffett Exp $
+
+EAPI=5
+
+inherit kde4-base
+
+DESCRIPTION="KDE4 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="
+ $(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>"
+}