x11-plugins/gkrellkam: 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:34 +01:00
committed by Sam James
parent 3959160228
commit 8e5f9cf044
2 changed files with 53 additions and 0 deletions
@@ -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
@@ -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
}