commit:     05aa555af8b77379d1551f62e75d1dc0b511a783
Author:     Michael Mair-Keimberger <mm1ke <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 13 11:46:36 2025 +0000
Commit:     Michael Mair-Keimberger <mm1ke <AT> gentoo <DOT> org>
CommitDate: Sat Jul 26 20:37:35 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05aa555a

games-board/mah-jong: add 1.17, EAPI8 bump, fix #944263

Signed-off-by: Michael Mair-Keimberger <mm1ke <AT> gentoo.org>
Closes: https://bugs.gentoo.org/944263
Part-of: https://github.com/gentoo/gentoo/pull/43108
Closes: https://github.com/gentoo/gentoo/pull/43108
Signed-off-by: Michael Mair-Keimberger <mm1ke <AT> gentoo.org>

 games-board/mah-jong/Manifest             |  1 +
 games-board/mah-jong/mah-jong-1.17.ebuild | 60 +++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+)

diff --git a/games-board/mah-jong/Manifest b/games-board/mah-jong/Manifest
index c96def872312..59a57fcf98fa 100644
--- a/games-board/mah-jong/Manifest
+++ b/games-board/mah-jong/Manifest
@@ -1 +1,2 @@
 DIST mj-1.16-src.tar.gz 403981 BLAKE2B 
fe04caa61c6b2b16be1799903ba222fe4ea6b177fa68c76c66a24fbf3ac8c02420f32a253fc1f7bc7fdb9bd371b294c2debd0492ae1071570f28dc69f22ba5f4
 SHA512 
9a4a4947670facaea6230aa9b143dab4bc7546b6e8b9c85726ac0b5e4d1f1760736072a27075cf2cce82cd8fdf2eb031f81e604fa0da6c05c7ac68c7da4b497e
+DIST mj-1.17-src.tar.gz 414805 BLAKE2B 
cb249b0d166a71d9102296ad004e73d7d25220fbf61915a540ce0886a47219c0419706e0607b51003cdf67604e6ec0933b1f7e254f515b4f5a825e054fb0d719
 SHA512 
3d3baeb2083edd7e6f9ad4957deafca6a1cca65461933f65bd86dbd165c30b199a271aa0c93cf87fc3c20dda580e6861b477d42203b51abb1ecaef983ce010bc

diff --git a/games-board/mah-jong/mah-jong-1.17.ebuild 
b/games-board/mah-jong/mah-jong-1.17.ebuild
new file mode 100644
index 000000000000..67f1e6e0a0d2
--- /dev/null
+++ b/games-board/mah-jong/mah-jong-1.17.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop flag-o-matic toolchain-funcs xdg
+
+MY_P="mj-${PV}-src"
+DESCRIPTION="A networked Mah Jong program, together with a computer player"
+HOMEPAGE="https://mahjong.julianbradfield.org/";
+SRC_URI="https://mahjong.julianbradfield.org/Source/${MY_P}.tar.gz";
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="x11-libs/gtk+:2"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       dev-lang/perl
+       virtual/pkgconfig
+"
+
+src_prepare() {
+       default
+       sed -i -e '/^.TH/ s/1/6/' xmj.man || die
+}
+
+src_compile() {
+       # bug #944263
+       append-cflags -std=gnu99
+
+       local myemakeargs=(
+               CC="$(tc-getCC)"
+               EXTRA_CFLAGS="${CFLAGS}"
+               EXTRA_LDOPTIONS="${LDFLAGS}"
+               CDEBUGFLAGS=
+               # TILESETPATH value is passed as "char*" into "gui.c"
+               TILESETPATH="\"${EPREFIX}/usr/share/${PN}/\""
+       )
+       emake "${myemakeargs[@]}"
+}
+
+src_install() {
+       local myemakeargs=(
+               DESTDIR="${ED}"
+               BINDIR="/usr/bin"
+               MANDIR="/usr/share/man/man6"
+               MANSUFFIX=6
+               INSTPGMFLAGS=
+       )
+       emake "${myemakeargs[@]}" install install.man
+
+       insinto "/usr/share/${PN}"
+       doins -r fallbacktiles/ tiles-numbered/ tiles-small/
+       newicon tiles-v1/tongE.xpm "${PN}.xpm"
+       make_desktop_entry xmj Mah-Jong "${PN}"
+       dodoc CHANGES ChangeLog *.txt
+}

Reply via email to