public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: x11-plugins/gkrellm-countdown/, x11-plugins/gkrellm-countdown/files/
@ 2022-04-21 19:55 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2022-04-21 19:55 UTC (permalink / raw
  To: gentoo-commits

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

x11-plugins/gkrellm-countdown: update EAPI 6 -> 8

Signed-off-by: Thomas Bracht Laumann Jespersen <t <AT> laumann.xyz>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../gkrellm-countdown-0.1.2-r2-pkgconfig.patch     | 16 ++++++++++++
 .../gkrellm-countdown-0.1.2-r2.ebuild              | 29 ++++++++++++++++++++++
 2 files changed, 45 insertions(+)

diff --git a/x11-plugins/gkrellm-countdown/files/gkrellm-countdown-0.1.2-r2-pkgconfig.patch b/x11-plugins/gkrellm-countdown/files/gkrellm-countdown-0.1.2-r2-pkgconfig.patch
new file mode 100644
index 000000000000..a8af1562391c
--- /dev/null
+++ b/x11-plugins/gkrellm-countdown/files/gkrellm-countdown-0.1.2-r2-pkgconfig.patch
@@ -0,0 +1,16 @@
+Have Makefile respect user chosen PKG_CONFIG
+--- a/Makefile
++++ b/Makefile
+@@ -3,8 +3,10 @@
+ # You may want to rename the binary-file.
+ BIN_FILENAME = gkrellm-countdown
+ 
+-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)
+ IMLIB_INCLUDE ?= 
+ IMLIB_LIB ?= 
+ PLUGIN_DIR ?= /usr/local/lib/gkrellm2/plugins

diff --git a/x11-plugins/gkrellm-countdown/gkrellm-countdown-0.1.2-r2.ebuild b/x11-plugins/gkrellm-countdown/gkrellm-countdown-0.1.2-r2.ebuild
new file mode 100644
index 000000000000..29c9fb53247e
--- /dev/null
+++ b/x11-plugins/gkrellm-countdown/gkrellm-countdown-0.1.2-r2.ebuild
@@ -0,0 +1,29 @@
+# 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 simple countdown clock for GKrellM2"
+HOMEPAGE="http://freshmeat.sourceforge.net/projects/gkrellm-countdown"
+SRC_URI="http://oss.pugsplace.net/${P}.tar.gz"
+S="${WORKDIR}/${PN}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+RDEPEND="app-admin/gkrellm:2[X]"
+DEPEND="${RDEPEND}"
+BDPEND="virtual/pkgconfig"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-makefile.patch
+	"${FILESDIR}"/${P}-r2-pkgconfig.patch
+)
+
+src_compile() {
+	tc-export PKG_CONFIG
+	emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}"
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-21 19:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-21 19:55 [gentoo-commits] repo/gentoo:master commit in: x11-plugins/gkrellm-countdown/, x11-plugins/gkrellm-countdown/files/ Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox