summaryrefslogtreecommitdiff
path: root/x11-plugins/gkrellm-trayicons
diff options
context:
space:
mode:
Diffstat (limited to 'x11-plugins/gkrellm-trayicons')
-rw-r--r--x11-plugins/gkrellm-trayicons/Manifest2
-rw-r--r--x11-plugins/gkrellm-trayicons/files/gkrellm-trayicons-1.03-pkgconfig.patch18
-rw-r--r--x11-plugins/gkrellm-trayicons/gkrellm-trayicons-1.03-r2.ebuild33
3 files changed, 53 insertions, 0 deletions
diff --git a/x11-plugins/gkrellm-trayicons/Manifest b/x11-plugins/gkrellm-trayicons/Manifest
index 9f4effc97f45..acdc6f0bd1ca 100644
--- a/x11-plugins/gkrellm-trayicons/Manifest
+++ b/x11-plugins/gkrellm-trayicons/Manifest
@@ -1,4 +1,6 @@
AUX gkrellm-trayicons-1.03-ldflags.patch 743 BLAKE2B 078ee5216b432592b136f812e24282c4e001d2399a11ce6768cf2122f24b0a90e169f51a7b4aa0b44b4e3b02b28669f0008df0177e1b0aedbd58deeb19318b1e SHA512 e122db6d9ae37a17d58c3a065f4b2210bf7e8f6832f8687c60efc54145fddf2e1f6898927b699f64194382dadd035710c7e3540221c3e229ec26d2ca8e01e785
+AUX gkrellm-trayicons-1.03-pkgconfig.patch 574 BLAKE2B 40208feccf98cba8682bfad297117a71d33ecfa613ba00c3a52233a6845dd5065c109c93ea5ff31e0c3dff51ace4eadef9e80fbe2d8f7b433771db84b3fc199e SHA512 87f246a1e8265ba8c8a33d9675fd91f8b1b18b5f299bc17e9dc6c7e9a062a8e7e542aac089faec7d6a671880cf0df054e102b5f49ca19bbde17ba837bfe17ca4
DIST gkrellm-trayicons-1.03.tar.gz 185474 BLAKE2B b291c13785e7c42e3e14ef987b4c29f47d91f993653653215afb254415827c437be32aec55b2c1465a8c6de9f08bd575c4b394b1d72fa46f5573ff29b57fe31f SHA512 2f80c7b18453b3cd9694dbd9854ab88fa94f4b4de52e779bc2fb7c13633deec096d0ed0146da3d52567569df9466aa64512f870b6e142a784779444a3e6a4a4b
EBUILD gkrellm-trayicons-1.03-r1.ebuild 590 BLAKE2B 56d71333d4ab869c6be03c5408ea39a75df95616420efc33501c8796a02cd648f5c88483317ffdb3cb15aac50255347d4fcb52c3b56f26c13ef061d39eda8a1f SHA512 0d5c176e1ff1450ee303eca6dd28b614bb47cd5b1e01475d3abcbcde7b4634399fbd3460dfbf85244b37bc9dc2e971c62a57a1012bbcf41457d937247c392401
+EBUILD gkrellm-trayicons-1.03-r2.ebuild 672 BLAKE2B 6d3225c78922c928ba72047d313bf8aa6f7a1fa88bf257ab479b3b1b18f55488416bb960603eb8461208d07256812f61af726836e79d46154159970cc5304b4d SHA512 cc302e0b82eea1daff5924d62aacd3056b8670addc61b7897545af34cbd88c7afe3cd0374f341f3d68453807dbdbc2f93d8740bfbf01d1218639702a66266f50
MISC metadata.xml 167 BLAKE2B 868e3b584722eaacf68273db062bb773d8c7e5d7ab2b81ca7e8397643bf7cc106c3a1033594401c99c54f667bb45d6b73f9048fc335580bbd44b4589ad26a832 SHA512 30caadd1496c3b9969136038239a1d8e01f236726b4022c2d7e19ca7575f25f735e556835e581afbf44fbd3e4104c40f2b5ef5fa70118d75c881fdf871962d0a
diff --git a/x11-plugins/gkrellm-trayicons/files/gkrellm-trayicons-1.03-pkgconfig.patch b/x11-plugins/gkrellm-trayicons/files/gkrellm-trayicons-1.03-pkgconfig.patch
new file mode 100644
index 000000000000..02d4c150dd3e
--- /dev/null
+++ b/x11-plugins/gkrellm-trayicons/files/gkrellm-trayicons-1.03-pkgconfig.patch
@@ -0,0 +1,18 @@
+Have Makefile respect user-configured pkg-config
+--- a/Makefile
++++ b/Makefile
+@@ -1,11 +1,11 @@
+
+ VERSION = `cat VERSION`
+ PREFIX ?= /usr/local
+-GTK_CONFIG = pkg-config gtk+-2.0
++PKG_CONFIG ?= pkg-config
+ PLUGIN_DIR ?= $(PREFIX)/lib/gkrellm2/plugins
+ GKRELLM_INCLUDE = -I$(PREFIX)/include
+-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)
+ FLAGS = -fPIC $(GTK_CFLAGS) $(GKRELLM_INCLUDE)
+ CFLAGS += $(FLAGS)
+ CFLAGS += -DVERSION=\"$(VERSION)\"
diff --git a/x11-plugins/gkrellm-trayicons/gkrellm-trayicons-1.03-r2.ebuild b/x11-plugins/gkrellm-trayicons/gkrellm-trayicons-1.03-r2.ebuild
new file mode 100644
index 000000000000..7cd6220fe5a7
--- /dev/null
+++ b/x11-plugins/gkrellm-trayicons/gkrellm-trayicons-1.03-r2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit gkrellm-plugin toolchain-funcs
+
+DESCRIPTION="Configurable Tray Icons for GKrellM"
+HOMEPAGE="http://gkrellm.srcbox.net/Plugins.html"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+RDEPEND="app-admin/gkrellm:2[X]"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-ldflags.patch
+ "${FILESDIR}"/${P}-pkgconfig.patch
+)
+
+src_configure() {
+ PLUGIN_SO=( trayicons$(get_modname) )
+ default
+}
+
+src_compile() {
+ tc-export PKG_CONFIG
+ emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}"
+}