Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/mah-jong/
Date: Fri, 05 Aug 2016 00:23:14
Message-Id: 1470356556.b5fb65ce868f67fc0350ed0f10079e1261792576.wizardedit@gentoo
1 commit: b5fb65ce868f67fc0350ed0f10079e1261792576
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 4 19:16:34 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 5 00:22:36 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5fb65ce
7
8 games-board/mah-jong: remove deprecated games eclass
9
10 Also update to EAPI 6
11
12 Gentoo-Bug: https://bugs.gentoo.org/574082
13
14 Package-Manager: portage-2.3.0
15
16 games-board/mah-jong/mah-jong-1.14-r1.ebuild | 48 ++++++++++++++++++++++++++++
17 1 file changed, 48 insertions(+)
18
19 diff --git a/games-board/mah-jong/mah-jong-1.14-r1.ebuild b/games-board/mah-jong/mah-jong-1.14-r1.ebuild
20 new file mode 100644
21 index 0000000..9fc2af0
22 --- /dev/null
23 +++ b/games-board/mah-jong/mah-jong-1.14-r1.ebuild
24 @@ -0,0 +1,48 @@
25 +# Copyright 1999-2016 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +# $Id$
28 +
29 +EAPI=6
30 +inherit eutils toolchain-funcs
31 +
32 +MY_P="mj-${PV}-src"
33 +DESCRIPTION="A networked Mah Jong program, together with a computer player"
34 +HOMEPAGE="http://www.stevens-bradfield.com/MahJong/"
35 +SRC_URI="http://mahjong.julianbradfield.org/Source/${MY_P}.tar.gz"
36 +
37 +LICENSE="GPL-2"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~ppc ~x86"
40 +IUSE=""
41 +
42 +RDEPEND="x11-libs/gtk+:2"
43 +DEPEND="${RDEPEND}
44 + dev-lang/perl"
45 +
46 +S=${WORKDIR}/${MY_P}
47 +
48 +src_prepare() {
49 + default
50 +
51 + sed -i -e '/^.TH/ s/1/6/' xmj.man || die
52 + sed -i \
53 + -e "/^DESTDIR =/ s:=.*:= ${D}:" \
54 + -e "/^BINDIR =/ s:=.*:= /usr/bin:" \
55 + -e '/^MANDIR =/ s:man/man1:/usr/share/man/man6:' \
56 + -e '/^MANSUFFIX =/ s:1:6:' \
57 + -e "/^CC =/ s:gcc:$(tc-getCC):" \
58 + -e "/^CFLAGS =/ s:=:= ${CFLAGS}:" \
59 + -e "/^LDLIBS =/ s:$:${LDFLAGS}:" \
60 + -e '/^INSTPGMFLAGS =/ s:-s::' \
61 + -e '/^CDEBUGFLAGS =/d' \
62 + -e "/^TILESETPATH=/ s:NULL:\"/usr/share/${PN}/\":" Makefile || die
63 +}
64 +
65 +src_install() {
66 + emake install install.man
67 + insinto /usr/share/${PN}
68 + doins -r fallbacktiles/ tiles-numbered/ tiles-small/
69 + newicon tiles-v1/tongE.xpm ${PN}.xpm
70 + make_desktop_entry xmj Mah-Jong ${PN}
71 + dodoc CHANGES ChangeLog *.txt
72 +}