commit:     c4a5fe089e964db669c527c85ef106884bca4be7
Author:     Thomas Bracht Laumann Jespersen <t <AT> laumann <DOT> xyz>
AuthorDate: Thu Mar 24 20:22:33 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr 21 19:54:29 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4a5fe08

x11-plugins/gkrellshoot: 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/gkrellshoot-0.4.4-r4-pkgconfig.patch     | 25 +++++++++++++++++
 .../gkrellshoot/gkrellshoot-0.4.4-r4.ebuild        | 31 ++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/x11-plugins/gkrellshoot/files/gkrellshoot-0.4.4-r4-pkgconfig.patch 
b/x11-plugins/gkrellshoot/files/gkrellshoot-0.4.4-r4-pkgconfig.patch
new file mode 100644
index 000000000000..d6dfb54e4354
--- /dev/null
+++ b/x11-plugins/gkrellshoot/files/gkrellshoot-0.4.4-r4-pkgconfig.patch
@@ -0,0 +1,25 @@
+From 47a80a178b4ab0225ff0540376be5b5c740530a7 Mon Sep 17 00:00:00 2001
+From: Thomas Bracht Laumann Jespersen <[email protected]>
+Date: Sat, 26 Mar 2022 10:32:18 +0100
+Subject: [PATCH] pkgconfig
+
+---
+ Makefile | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index e5a4895..296f807 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,5 +1,6 @@
+-GTK_INCLUDE = `pkg-config gtk+-2.0 --cflags`
+-GTK_LIB = `pkg-config gtk+-2.0 --libs`
++PKG_CONFIG ?= pkg-config
++GTK_INCLUDE = $(shell ${PKG_CONFIG} gtk+-2.0 --cflags)
++GTK_LIB = $(shell ${PKG_CONFIG} gtk+-2.0 --libs)
+ 
+ FLAGS = -fPIC $(GTK_INCLUDE) 
+ LIBS = $(GTK_LIB) 
+-- 
+2.34.1
+

diff --git a/x11-plugins/gkrellshoot/gkrellshoot-0.4.4-r4.ebuild 
b/x11-plugins/gkrellshoot/gkrellshoot-0.4.4-r4.ebuild
new file mode 100644
index 000000000000..d5bff5dbad4b
--- /dev/null
+++ b/x11-plugins/gkrellshoot/gkrellshoot-0.4.4-r4.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit gkrellm-plugin toolchain-funcs
+
+DESCRIPTION="GKrellm2 plugin to take screen shots and lock screen"
+HOMEPAGE="http://gkrellshoot.sourceforge.net/";
+SRC_URI="mirror://sourceforge/gkrellshoot/${P}.tar.gz"
+S="${WORKDIR}/${P/s/S}"
+
+LICENSE="GPL-2"
+SLOT="2"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+DEPEND="app-admin/gkrellm:2[X]"
+RDEPEND="
+       ${DEPEND}
+       virtual/imagemagick-tools"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+       "${FILESDIR}"/makefile-respect-flags.patch
+       "${FILESDIR}/${P}"-r4-pkgconfig.patch
+)
+
+src_compile() {
+       tc-export PKG_CONFIG
+       default
+}

Reply via email to