summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bracht Laumann Jespersen <t@laumann.xyz>2022-04-08 21:42:28 +0200
committerSam James <sam@gentoo.org>2022-04-21 20:54:43 +0100
commitcd7efe7180f14955bb4911edbbcb4a74b580e8b2 (patch)
tree8a4702ab16f15843ad96ba65d666479a30fee804 /x11-plugins
parentx11-plugins/i8krellm: update EAPI 6 -> 8 (diff)
downloadgentoo-cd7efe7180f14955bb4911edbbcb4a74b580e8b2.tar.gz
gentoo-cd7efe7180f14955bb4911edbbcb4a74b580e8b2.tar.bz2
gentoo-cd7efe7180f14955bb4911edbbcb4a74b580e8b2.zip
x11-plugins/gkrellmwireless: update EAPI 6 -> 8
Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz> Closes: https://github.com/gentoo/gentoo/pull/24737 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'x11-plugins')
-rw-r--r--x11-plugins/gkrellmwireless/files/gkrellmwireless-2.0.3-r3-pkgconfig.patch27
-rw-r--r--x11-plugins/gkrellmwireless/gkrellmwireless-2.0.3-r3.ebuild31
2 files changed, 58 insertions, 0 deletions
diff --git a/x11-plugins/gkrellmwireless/files/gkrellmwireless-2.0.3-r3-pkgconfig.patch b/x11-plugins/gkrellmwireless/files/gkrellmwireless-2.0.3-r3-pkgconfig.patch
new file mode 100644
index 000000000000..79e72bf1ba3c
--- /dev/null
+++ b/x11-plugins/gkrellmwireless/files/gkrellmwireless-2.0.3-r3-pkgconfig.patch
@@ -0,0 +1,27 @@
+Respect user's pkg-config
+--- a/Makefile
++++ b/Makefile
+@@ -1,20 +1,10 @@
+ # Depends on gmake..
+ #
+ OS = $(shell uname)
++PKG_CONFIG ?= pkg-config
+
+-ifeq ($(OS),FreeBSD)
+- GTK_CONFIG = pkg-config gtk+-2.0
+- INCLUDE = -I/usr/src/sys
+-elseif eq ($(OS),NetBSD)
+- GTK_CONFIG = pkg-config gtk+-2.0
+-else
+-# default to the linux
+- GTK_CONFIG = pkg-config gtk+-2.0
+-endif
+-
+-
+-GTK_CFLAGS = `$(GTK_CONFIG) --cflags`
+-GTK_LIB = `$(GTK_CONFIG) --libs`
++GTK_CFLAGS = $(shell ${PKG_CONFIG} gtk+-2.0 --cflags)
++GTK_LIB = $(shell ${PKG_CONFIG} gtk+-2.0 --libs)
+
+ CFLAGS += -Wall -fPIC
+ CPPFLAGS += $(GTK_CFLAGS) $(GKRELLM_INCLUDE)
diff --git a/x11-plugins/gkrellmwireless/gkrellmwireless-2.0.3-r3.ebuild b/x11-plugins/gkrellmwireless/gkrellmwireless-2.0.3-r3.ebuild
new file mode 100644
index 000000000000..45819d00691d
--- /dev/null
+++ b/x11-plugins/gkrellmwireless/gkrellmwireless-2.0.3-r3.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="A plugin for GKrellM that monitors your wireless network card"
+HOMEPAGE="http://gkrellm.luon.net/gkrellmwireless.php"
+SRC_URI="http://gkrellm.luon.net/files/${P}.tar.gz"
+S="${WORKDIR}/${PN}"
+
+LICENSE="GPL-2"
+SLOT="2"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+RDEPEND="app-admin/gkrellm:2[X]"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.0.3-fix-build-system.patch
+ "${FILESDIR}"/${PN}-2.0.3-r3-pkgconfig.patch
+)
+
+src_configure() {
+ tc-export CC PKG_CONFIG
+
+ PLUGIN_SO=( wireless$(get_modname) )
+ default
+}