From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-plugins/gkrellmoon/, x11-plugins/gkrellmoon/files/
Date: Thu, 21 Apr 2022 19:55:30 +0000 (UTC) [thread overview]
Message-ID: <1650570875.47613a8b7f202daa0c1cfe1cdb12cbb8a7e5bf98.sam@gentoo> (raw)
commit: 47613a8b7f202daa0c1cfe1cdb12cbb8a7e5bf98
Author: Thomas Bracht Laumann Jespersen <t <AT> laumann <DOT> xyz>
AuthorDate: Thu Mar 31 11:35:22 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr 21 19:54:35 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47613a8b
x11-plugins/gkrellmoon: update EAPI 6 -> 8
Signed-off-by: Thomas Bracht Laumann Jespersen <t <AT> laumann.xyz>
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../files/gkrellmoon-0.6-r3-include-stringh.patch | 14 ++++++++++
.../files/gkrellmoon-0.6-r3-pkgconfig.patch | 12 +++++++++
x11-plugins/gkrellmoon/gkrellmoon-0.6-r3.ebuild | 31 ++++++++++++++++++++++
3 files changed, 57 insertions(+)
diff --git a/x11-plugins/gkrellmoon/files/gkrellmoon-0.6-r3-include-stringh.patch b/x11-plugins/gkrellmoon/files/gkrellmoon-0.6-r3-include-stringh.patch
new file mode 100644
index 000000000000..fc07da13f75b
--- /dev/null
+++ b/x11-plugins/gkrellmoon/files/gkrellmoon-0.6-r3-include-stringh.patch
@@ -0,0 +1,14 @@
+Include string.h
+--- a/CalcEphem.h
++++ b/CalcEphem.h
+@@ -13,6 +13,7 @@
+ #include <glib.h>
+
+ #include <stdio.h>
++#include <string.h>
+ #include <math.h>
+
+ #define DegPerRad 57.29577951308232087680
+--
+2.34.1
+
diff --git a/x11-plugins/gkrellmoon/files/gkrellmoon-0.6-r3-pkgconfig.patch b/x11-plugins/gkrellmoon/files/gkrellmoon-0.6-r3-pkgconfig.patch
new file mode 100644
index 000000000000..80f7fa1a9a3e
--- /dev/null
+++ b/x11-plugins/gkrellmoon/files/gkrellmoon-0.6-r3-pkgconfig.patch
@@ -0,0 +1,12 @@
+Respect user's pkg-config
+--- 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 = $(shel ${PKG_CONFIG} gtk+-2.0 --libs)
+
+ INSTALLDIR = ${DESTDIR}/usr/lib/gkrellm2/plugins
+
diff --git a/x11-plugins/gkrellmoon/gkrellmoon-0.6-r3.ebuild b/x11-plugins/gkrellmoon/gkrellmoon-0.6-r3.ebuild
new file mode 100644
index 000000000000..35005ac0c50a
--- /dev/null
+++ b/x11-plugins/gkrellmoon/gkrellmoon-0.6-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 GKrellM2 plugin of the famous wmMoonClock dockapp"
+HOMEPAGE="http://gkrellmoon.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gkrellmoon/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="2"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+RDEPEND="
+ app-admin/gkrellm:2[X]
+ media-libs/imlib2"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-makefile.patch
+ "${FILESDIR}"/${P}-r3-pkgconfig.patch
+ "${FILESDIR}"/${P}-r3-include-stringh.patch
+)
+
+src_compile() {
+ tc-export PKG_CONFIG
+ emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}"
+}
reply other threads:[~2022-04-21 19:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1650570875.47613a8b7f202daa0c1cfe1cdb12cbb8a7e5bf98.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox