[gentoo-commits] repo/gentoo:master commit in: x11-plugins/cputnik/, x11-plugins/cputnik/files/

2020-05-08 Thread Bernard Cafarelli
commit: 5730709102944de0364de11866c36b9279d27b87
Author: Bernard Cafarelli  gentoo  org>
AuthorDate: Fri May  8 17:24:08 2020 +
Commit: Bernard Cafarelli  gentoo  org>
CommitDate: Fri May  8 22:54:17 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57307091

x11-plugins/cputnik: fix build with -fno-common

Closes: https://bugs.gentoo.org/707716
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Bernard Cafarelli  gentoo.org>

 x11-plugins/cputnik/cputnik-0.2.0-r1.ebuild|  6 +-
 .../cputnik/files/cputnik-0.2.0-fno-common.patch   | 67 ++
 2 files changed, 71 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
index ec561276c8a..eb195d5a676 100644
--- a/x11-plugins/cputnik/cputnik-0.2.0-r1.ebuild
+++ b/x11-plugins/cputnik/cputnik-0.2.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -22,7 +22,9 @@ DEPEND="${RDEPEND}
 
 S=${WORKDIR}/${P}/src
 
-PATCHES=( "${FILESDIR}"/${P}-makefile.patch )
+PATCHES=( "${FILESDIR}"/${P}-makefile.patch
+   "${FILESDIR}"/${P}-fno-common.patch
+   )
 
 src_compile() {
emake CC="$(tc-getCC)"

diff --git a/x11-plugins/cputnik/files/cputnik-0.2.0-fno-common.patch 
b/x11-plugins/cputnik/files/cputnik-0.2.0-fno-common.patch
new file mode 100644
index 000..d774b600a13
--- /dev/null
+++ b/x11-plugins/cputnik/files/cputnik-0.2.0-fno-common.patch
@@ -0,0 +1,67 @@
+diff -Naur src.orig/docklib.c src/docklib.c
+--- src.orig/docklib.c 2005-03-26 22:53:38.0 +0100
 src/docklib.c  2020-05-08 19:21:45.930313064 +0200
+@@ -40,6 +40,29 @@
+ char*Geometry = "";
+ char*fonts_xpm[], *leds_xpm[];
+ 
++enum {  /* don't change the order! */
++GRAY = 0,
++YELLOW,
++GREEN,
++CYAN,
++SKYBLUE,
++ORANGE,
++RED,
++MAGENTA,
++BROWN,
++WHITE   
++} led_colors;
++
++enum {
++F_NOT_AVAILABLE = 0,
++F_REGULAR,
++F_DIRECTORY,
++F_CHAR_DEVICE,
++F_BLOCK_DEVICE,
++F_LINK,
++F_FIFO,
++F_SOCK
++} file_types;
+ 
+ 
/**
+  *
+diff -Naur src.orig/docklib.h src/docklib.h
+--- src.orig/docklib.h 2005-03-26 22:53:50.0 +0100
 src/docklib.h  2020-05-08 19:21:22.600284802 +0200
+@@ -79,30 +79,6 @@
+ 
+ #define NUM_COLORS  10
+ 
+-enum {  /* don't change the order! */
+-GRAY = 0,
+-YELLOW,
+-GREEN,
+-CYAN,
+-SKYBLUE,
+-ORANGE,
+-RED,
+-MAGENTA,
+-BROWN,
+-WHITE   
+-} led_colors;
+-
+-enum {
+-F_NOT_AVAILABLE = 0,
+-F_REGULAR,
+-F_DIRECTORY,
+-F_CHAR_DEVICE,
+-F_BLOCK_DEVICE,
+-F_LINK,
+-F_FIFO,
+-F_SOCK
+-} file_types;
+-
+ 
/*---*/
+ 
+ voiddcl_open_x_window   (int argc, char *argv[], char **, char *, 
int, int);



[gentoo-commits] repo/gentoo:master commit in: x11-plugins/cputnik/, x11-plugins/cputnik/files/

2018-06-26 Thread Bernard Cafarelli
commit: 12c00150130c3b91e443d7ada3a009d1146c2be6
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Sat Jun 23 18:04:44 2018 +
Commit: Bernard Cafarelli  gentoo  org>
CommitDate: Tue Jun 26 21:53:06 2018 +
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 000..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.0 +0100
-+++ Makefile   2008-01-27 19:43:33.0 +0100
+--- a/Makefile 2005-03-26 22:29:48.0 +0100
 b/Makefile 2008-01-27 19:43:33.0 +0100
 @@ -1,15 +1,15 @@
  
 -CFLAGS= -Wall -Os