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

Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Thomas Bracht Laumann Jespersen
2022-04-21 20:54:29 +01:00
committed by Sam James
parent 0cbc3ec0b9
commit c4a5fe089e
2 changed files with 56 additions and 0 deletions
@@ -0,0 +1,25 @@
From 47a80a178b4ab0225ff0540376be5b5c740530a7 Mon Sep 17 00:00:00 2001
From: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
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
@@ -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
}