commit:     8e5f9cf044af35d05b8a6f4e68efe05d4acd2c37
Author:     Thomas Bracht Laumann Jespersen <t <AT> laumann <DOT> xyz>
AuthorDate: Sat Mar 26 15:00:19 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr 21 19:54:34 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e5f9cf0

x11-plugins/gkrellkam: update EAPI 6 -> 8

Signed-off-by: Thomas Bracht Laumann Jespersen <t <AT> laumann.xyz>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/gkrellkam-2.0.0-r1-pkgconfig.patch       | 13 +++++++
 x11-plugins/gkrellkam/gkrellkam-2.0.0-r1.ebuild    | 40 ++++++++++++++++++++++
 2 files changed, 53 insertions(+)

diff --git a/x11-plugins/gkrellkam/files/gkrellkam-2.0.0-r1-pkgconfig.patch 
b/x11-plugins/gkrellkam/files/gkrellkam-2.0.0-r1-pkgconfig.patch
new file mode 100644
index 000000000000..c5993890fe6e
--- /dev/null
+++ b/x11-plugins/gkrellkam/files/gkrellkam-2.0.0-r1-pkgconfig.patch
@@ -0,0 +1,13 @@
+--- a/Makefile
++++ b/Makefile
+@@ -12,8 +12,9 @@ DESTDIR =
+ # This should point to the GKrellM headers
+ GKRELLM_HDRS = /usr/include
+ 
++PKG_CONFIG ?= pkg-config
+ CC = $(CC)
+-GTKFLAGS := $(shell pkg-config gtk+-2.0 --cflags)
++GTKFLAGS := $(shell ${PKG_CONFIG} gtk+-2.0 --cflags)
+ CFLAGS := $(CFLAGS) -fPIC $(GTKFLAGS) -I$(GKRELLM_HDRS)
+ LFLAGS = -shared
+ INST_DIR := $(DESTDIR)/usr/lib/gkrellm2/plugins

diff --git a/x11-plugins/gkrellkam/gkrellkam-2.0.0-r1.ebuild 
b/x11-plugins/gkrellkam/gkrellkam-2.0.0-r1.ebuild
new file mode 100644
index 000000000000..951eb4818034
--- /dev/null
+++ b/x11-plugins/gkrellkam/gkrellkam-2.0.0-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit gkrellm-plugin toolchain-funcs
+
+MY_P=${P/-/_}
+
+DESCRIPTION="an Image-Watcher-Plugin for GKrellM2"
+HOMEPAGE="http://gkrellkam.sourceforge.net";
+SRC_URI="mirror://sourceforge/gkrellkam/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+RDEPEND="
+       app-admin/gkrellm:2[X]
+       net-misc/wget"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-makefile.patch
+       "${FILESDIR}"/${P}-r1-pkgconfig.patch
+)
+
+src_compile() {
+       tc-export PKG_CONFIG
+       emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+       local PLUGIN_SO=( ${PN}2$(get_modname) )
+       local PLUGIN_DOCS=( example.list )
+
+       gkrellm-plugin_src_install
+       doman gkrellkam-list.5
+}

Reply via email to