From 12c00150130c3b91e443d7ada3a009d1146c2be6 Mon Sep 17 00:00:00 2001 From: Michael Mair-Keimberger Date: Sat, 23 Jun 2018 20:04:44 +0200 Subject: 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(-) create mode 100644 x11-plugins/cputnik/cputnik-0.2.0-r1.ebuild (limited to 'x11-plugins') 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 000000000000..5c123773ab90 --- /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 1eb1279b3bb3..b0c39ef2898b 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 -- cgit v1.2.3