diff options
Diffstat (limited to 'games-board/mah-jong')
-rw-r--r-- | games-board/mah-jong/Manifest | 3 | ||||
-rw-r--r-- | games-board/mah-jong/mah-jong-1.14-r1.ebuild | 47 | ||||
-rw-r--r-- | games-board/mah-jong/metadata.xml | 8 |
3 files changed, 58 insertions, 0 deletions
diff --git a/games-board/mah-jong/Manifest b/games-board/mah-jong/Manifest new file mode 100644 index 000000000000..c873e9d44562 --- /dev/null +++ b/games-board/mah-jong/Manifest @@ -0,0 +1,3 @@ +DIST mj-1.14-src.tar.gz 414414 BLAKE2B 88aa315e629dd6c1155de38897925c99a742054778721f23c4e95b0b82667ad737246a92a1e9e18aa72e8e5b118d7c5bc5e8eb7ac9d0aab51b946a154627a584 SHA512 b4c631ce388041475b877cd4b413fda200932aea19212c00cb606d2ef0bb6a498fe12b7b52b04ef744b296c37c531bc44d9e35f9aed44edf89651580acde91e5 +EBUILD mah-jong-1.14-r1.ebuild 1219 BLAKE2B ba5e9fb1fffb94dd03ffc11d2c2edd281aa78d65d3c86032e7f7d27ad102aeeb13a85ea79144242a3b8f04c832b16f6193d036a1398b0b893c53d8b9575f505a SHA512 283b0885ac17f19f76cc78047f2387c4085c92ee2c6382363f66a6efc87118ec823b7373e59a053fa1951bf17bafb069eab92d6abd2f92e6a386e312b74d72ee +MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-board/mah-jong/mah-jong-1.14-r1.ebuild b/games-board/mah-jong/mah-jong-1.14-r1.ebuild new file mode 100644 index 000000000000..3f7a81b7f8e5 --- /dev/null +++ b/games-board/mah-jong/mah-jong-1.14-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils toolchain-funcs + +MY_P="mj-${PV}-src" +DESCRIPTION="A networked Mah Jong program, together with a computer player" +HOMEPAGE="http://www.stevens-bradfield.com/MahJong/" +SRC_URI="http://mahjong.julianbradfield.org/Source/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="x11-libs/gtk+:2" +DEPEND="${RDEPEND} + dev-lang/perl" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + default + + sed -i -e '/^.TH/ s/1/6/' xmj.man || die + sed -i \ + -e "/^DESTDIR =/ s:=.*:= ${D}:" \ + -e "/^BINDIR =/ s:=.*:= /usr/bin:" \ + -e '/^MANDIR =/ s:man/man1:/usr/share/man/man6:' \ + -e '/^MANSUFFIX =/ s:1:6:' \ + -e "/^CC =/ s:gcc:$(tc-getCC):" \ + -e "/^CFLAGS =/ s:=:= ${CFLAGS}:" \ + -e "/^LDLIBS =/ s:$:${LDFLAGS}:" \ + -e '/^INSTPGMFLAGS =/ s:-s::' \ + -e '/^CDEBUGFLAGS =/d' \ + -e "/^TILESETPATH=/ s:NULL:\"/usr/share/${PN}/\":" Makefile || die +} + +src_install() { + emake 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 +} diff --git a/games-board/mah-jong/metadata.xml b/games-board/mah-jong/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-board/mah-jong/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> |