commit:     12c00150130c3b91e443d7ada3a009d1146c2be6
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Sat Jun 23 18:04:44 2018 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Tue Jun 26 21:53:06 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12c00150

x11-plugins/cputnik: EAPI7, improve ebuild

 x11-plugins/cputnik/cputnik-0.2.0-r1.ebuild        | 34 ++++++++++++++++++++++
 .../cputnik/files/cputnik-0.2.0-makefile.patch     |  4 +--
 2 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/x11-plugins/cputnik/cputnik-0.2.0-r1.ebuild 
b/x11-plugins/cputnik/cputnik-0.2.0-r1.ebuild
new file mode 100644
index 00000000000..5c123773ab9
--- /dev/null
+++ b/x11-plugins/cputnik/cputnik-0.2.0-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="cputnik is a simple cpu monitor dockapp"
+HOMEPAGE="https://www.dockapps.net/cputnik";
+SRC_URI="https://www.dockapps.net/download/${P}.tar.gz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/libX11
+       x11-libs/libXext
+       x11-libs/libXpm"
+DEPEND="${RDEPEND}
+       x11-base/xorg-proto"
+
+S=${WORKDIR}/${P}/src
+
+PATCHES=( "${FILESDIR}"/${P}-makefile.patch )
+
+src_compile() {
+       emake CC="$(tc-getCC)"
+}
+
+src_install() {
+       dobin cputnik
+       dodoc ../{AUTHORS,NEWS,README}
+}

diff --git a/x11-plugins/cputnik/files/cputnik-0.2.0-makefile.patch 
b/x11-plugins/cputnik/files/cputnik-0.2.0-makefile.patch
index 1eb1279b3bb..b0c39ef2898 100644
--- a/x11-plugins/cputnik/files/cputnik-0.2.0-makefile.patch
+++ b/x11-plugins/cputnik/files/cputnik-0.2.0-makefile.patch
@@ -1,5 +1,5 @@
---- Makefile.orig      2005-03-26 22:29:48.000000000 +0100
-+++ Makefile   2008-01-27 19:43:33.000000000 +0100
+--- a/Makefile 2005-03-26 22:29:48.000000000 +0100
++++ b/Makefile 2008-01-27 19:43:33.000000000 +0100
 @@ -1,15 +1,15 @@
  
 -CFLAGS                        = -Wall -Os

Reply via email to