summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorband-a-prend <torokhov-s-a@yandex.ru>2020-11-05 18:48:48 +0300
committerJames Le Cuirot <chewi@gentoo.org>2020-11-17 22:39:50 +0000
commit2ed956a56216efa01840dd0d3a13798f98c82843 (patch)
treeaa40e0c9c3d1bfdab942e4576f5841778179230a
parentapp-portage/layman: Add python3_9 to compat bug 745849 (diff)
downloadgentoo-2ed956a56216efa01840dd0d3a13798f98c82843.tar.gz
gentoo-2ed956a56216efa01840dd0d3a13798f98c82843.tar.bz2
gentoo-2ed956a56216efa01840dd0d3a13798f98c82843.zip
games-board/mah-jong: 1.16 version bump
Closes: https://bugs.gentoo.org/751040 Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru> Closes: https://github.com/gentoo/gentoo/pull/18139 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
-rw-r--r--games-board/mah-jong/Manifest1
-rw-r--r--games-board/mah-jong/mah-jong-1.16.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/games-board/mah-jong/Manifest b/games-board/mah-jong/Manifest
index c6b27f6a678..59c3a7f8b8b 100644
--- a/games-board/mah-jong/Manifest
+++ b/games-board/mah-jong/Manifest
@@ -1 +1,2 @@
DIST mj-1.14-src.tar.gz 414414 BLAKE2B 88aa315e629dd6c1155de38897925c99a742054778721f23c4e95b0b82667ad737246a92a1e9e18aa72e8e5b118d7c5bc5e8eb7ac9d0aab51b946a154627a584 SHA512 b4c631ce388041475b877cd4b413fda200932aea19212c00cb606d2ef0bb6a498fe12b7b52b04ef744b296c37c531bc44d9e35f9aed44edf89651580acde91e5
+DIST mj-1.16-src.tar.gz 403981 BLAKE2B fe04caa61c6b2b16be1799903ba222fe4ea6b177fa68c76c66a24fbf3ac8c02420f32a253fc1f7bc7fdb9bd371b294c2debd0492ae1071570f28dc69f22ba5f4 SHA512 9a4a4947670facaea6230aa9b143dab4bc7546b6e8b9c85726ac0b5e4d1f1760736072a27075cf2cce82cd8fdf2eb031f81e604fa0da6c05c7ac68c7da4b497e
diff --git a/games-board/mah-jong/mah-jong-1.16.ebuild b/games-board/mah-jong/mah-jong-1.16.ebuild
new file mode 100644
index 00000000000..0d457c6c2d3
--- /dev/null
+++ b/games-board/mah-jong/mah-jong-1.16.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop 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"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="x11-libs/gtk+:2"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-lang/perl
+ virtual/pkgconfig
+"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ default
+ sed -i -e '/^.TH/ s/1/6/' xmj.man || die
+}
+
+src_compile() {
+ # TILESETPATH value is passed as "char*" into "gui.c"
+ emake \
+ CC="$(tc-getCC)" \
+ EXTRA_CFLAGS="${CFLAGS}" \
+ EXTRA_LDOPTIONS="${LDFLAGS}" \
+ CDEBUGFLAGS= \
+ TILESETPATH="\"${EPREFIX}/usr/share/${PN}/\""
+}
+
+src_install() {
+ emake \
+ DESTDIR="${ED}" \
+ BINDIR="/usr/bin" \
+ MANDIR="/usr/share/man/man6" \
+ MANSUFFIX=6 \
+ INSTPGMFLAGS= \
+ 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
+}