public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-board/xmahjongg/files/, games-board/xmahjongg/
@ 2023-10-07 22:24 James Le Cuirot
  0 siblings, 0 replies; only message in thread
From: James Le Cuirot @ 2023-10-07 22:24 UTC (permalink / raw
  To: gentoo-commits

commit:     ec4ac81d3dae982c3e081230505f1383c7798bd2
Author:     Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com>
AuthorDate: Tue Oct  3 17:28:49 2023 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Oct  7 22:23:46 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec4ac81d

games-board/xmahjongg: Fix C++17 does not allow register storage class

And update EAPI 7 -> 8

Closes: https://bugs.gentoo.org/895896
Signed-off-by: Brahmajit Das <brahmajit.xyz <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/33169
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 .../xmahjongg-3.7-drop-register-keyword.patch      | 14 +++++++++
 games-board/xmahjongg/xmahjongg-3.7-r2.ebuild      | 36 ++++++++++++++++++++++
 2 files changed, 50 insertions(+)

diff --git a/games-board/xmahjongg/files/xmahjongg-3.7-drop-register-keyword.patch b/games-board/xmahjongg/files/xmahjongg-3.7-drop-register-keyword.patch
new file mode 100644
index 000000000000..6645f6fc5e33
--- /dev/null
+++ b/games-board/xmahjongg/files/xmahjongg-3.7-drop-register-keyword.patch
@@ -0,0 +1,14 @@
+Bug: https://bugs.gentoo.org/895896
+--- a/liblcdf/permstr.cc
++++ b/liblcdf/permstr.cc
+@@ -111,8 +111,8 @@ static int scatter[] = {        /* map characters to random values */
+ void
+ PermString::initialize(const char* s, int length)
+ {
+-    register unsigned char* m = (unsigned char*) s;
+-    register unsigned char* mm;
++    unsigned char* m = (unsigned char*) s;
++    unsigned char* mm;
+ 
+     if (length < 0)
+ 	length = (s ? strlen(s) : 0);

diff --git a/games-board/xmahjongg/xmahjongg-3.7-r2.ebuild b/games-board/xmahjongg/xmahjongg-3.7-r2.ebuild
new file mode 100644
index 000000000000..f1fc4165b4da
--- /dev/null
+++ b/games-board/xmahjongg/xmahjongg-3.7-r2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools desktop
+
+DESCRIPTION="friendly GUI version of xmahjongg"
+HOMEPAGE="http://www.lcdf.org/xmahjongg/"
+SRC_URI="http://www.lcdf.org/xmahjongg/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+
+RDEPEND="x11-libs/libX11"
+DEPEND="${RDEPEND}
+	x11-libs/libXt"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-autotools.patch
+	"${FILESDIR}"/${P}-drop-register-keyword.patch
+)
+
+src_prepare() {
+	default
+	mv configure.{in,ac} || die
+	eautoreconf
+}
+
+src_install() {
+	default
+
+	newicon share/tiles/small.gif ${PN}.gif
+	make_desktop_entry xmahjongg "Xmahjongg" /usr/share/pixmaps/${PN}.gif
+}


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

only message in thread, other threads:[~2023-10-07 22:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-07 22:24 [gentoo-commits] repo/gentoo:master commit in: games-board/xmahjongg/files/, games-board/xmahjongg/ James Le Cuirot

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