x11-plugins/cputnik: EAPI7, improve ebuild
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>
Sat, 23 Jun 2018 18:04:44 +0000 (20:04 +0200)
committerBernard Cafarelli <voyageur@gentoo.org>
Tue, 26 Jun 2018 21:53:06 +0000 (23:53 +0200)
x11-plugins/cputnik/cputnik-0.2.0-r1.ebuild [new file with mode: 0644]
x11-plugins/cputnik/files/cputnik-0.2.0-makefile.patch

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 (file)
index 0000000..5c12377
--- /dev/null
@@ -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}
+}
index 1eb1279b3bb33ed8b935c690a4b8b0e02aeb5616..b0c39ef2898bdf0466d82013f9a9fb9ad0d95f45 100644 (file)
@@ -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