summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-board/pasang-emas')
-rw-r--r--games-board/pasang-emas/Manifest4
-rw-r--r--games-board/pasang-emas/files/pasang-emas-3.1.0-build.patch42
-rw-r--r--games-board/pasang-emas/metadata.xml11
-rw-r--r--games-board/pasang-emas/pasang-emas-3.1.0.ebuild69
4 files changed, 126 insertions, 0 deletions
diff --git a/games-board/pasang-emas/Manifest b/games-board/pasang-emas/Manifest
new file mode 100644
index 000000000000..f47a319ec788
--- /dev/null
+++ b/games-board/pasang-emas/Manifest
@@ -0,0 +1,4 @@
+DIST pasang-emas-3.1.0.tar.bz2 3030528 SHA256 a36b63adb496dbe343adac2063164fa1377e2295b0bc78f3dd293f8d946acfe5 SHA512 c1f7dc259100e2fe643ac0a5d766dad10435145b3fd76e698335817bc30b7a55a5816df920fc3c86fb7b533661b1dd179b20ad01586be914bb3a9cad9be29a65 WHIRLPOOL d303d3c7cef997da3ae7d05e53b97e79be4467c4466cbe52bad95575a4a3a2be0ee7aa183702444217f5247879d2b2b5e122a23b0da0b54d4348237b345a95b1
+DIST pasang-emas-themes-1.0.tar.bz2 1190560 SHA256 5be65e641a81109794300b1dda4f78dcbf7287747aaa5b2a0fcadfe2991affe9 SHA512 8b82ce6ba588b83ed4a0d70d8aab256e2dae16143e64ca8a1fc25ffe61f001cdbc71d62d8eb42d9af4aeb63d6584f47b513b0ce1840d9b9f49d9b1b635eb4043 WHIRLPOOL dc05f0c1a096347446cf9272cd8a93f7ea30c70569b49c311fe1352ecf8ed6a304193bea203200696d12c83e1466615dd715a59360157542ab0348228bc7c7e5
+DIST pet-fragrance.tar.bz2 1019437 SHA256 3656277c8ef526f7b668f97567a772a2c2107dc7d46ef02a11d357e5e96b3f46 SHA512 2af8908848cc20962c70ef573156b208dbc33032529035ae6f0b5760f5eb1b718582dc823340587e29b7e66a2d3c89ba113dedbf299c0bef639f28329ff278f2 WHIRLPOOL 84094b4663307d1df73d7bd6fcc213d67b6edc63729362d36c7a2c1cfc85f9eca25a905c1964bf470d7b47234dd213ee2fe576d8b3a2cf8aa158e1dc1eabada1
+DIST pet-marble.tar.bz2 631999 SHA256 221cd4d4030e12d5e51c2f17f26f38ed81aafcad3bbafb07c85f4ebd88f393ce SHA512 3ecaeaddb12e23fbd90e4d158a47dffb73b756bf9f5263d93c5f6aa21d290be3d91885de7200cdd3a45718b49ac19cd7073ed8bf83697af6bff64759f810122e WHIRLPOOL 3f9abac8e111a7d53a9e306cb848d315cc711614c82950b999c6f044344923f1692b774a439f26d2f747b6ff6dd320b7b64d860579c5ca627c4593392c772bdb
diff --git a/games-board/pasang-emas/files/pasang-emas-3.1.0-build.patch b/games-board/pasang-emas/files/pasang-emas-3.1.0-build.patch
new file mode 100644
index 000000000000..93703d8e6d1c
--- /dev/null
+++ b/games-board/pasang-emas/files/pasang-emas-3.1.0-build.patch
@@ -0,0 +1,42 @@
+--- pasang-emas-2.1.0-orig/src/Makefile.in
++++ pasang-emas-2.1.0/src/Makefile.in
+@@ -221,11 +221,11 @@
+ pasang.vapi \
+ pasang.h
+
+-LDADD = libpasang.a $(DEPS_LIBS)
++LDADD = libpasang.a $(DEPS_LIBS) -lm
+ INCLUDES = $(DEPS_CFLAGS) \
+ --include ../config.h \
+ -DLOCALEDIR=\"$(localedir)\" \
+- -DPIXMAPSDIR=\"$(datadir)/pixmaps\" \
++ -DPIXMAPSDIR=\"/usr/share/pixmaps\" \
+ -DDATADIR=\"$(datadir)\" \
+ -DTHEME_ROOT_DIR=\"$(datadir)/$(PACKAGE_TARNAME)/themes\" \
+ -DUSER_THEME_ROOT_DIR=\".$(PACKAGE_TARNAME)/themes\" \
+--- pasang-emas-2.1.0-orig/data/Makefile.in
++++ pasang-emas-2.1.0/data/Makefile.in
+@@ -229,10 +229,10 @@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ SUBDIRS = kayu
+-desktopdir = $(datadir)/applications
++desktopdir = /usr/share/applications
+ desktop_in_files = pasang-emas.desktop.in
+ desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+-appicondir = $(datadir)/pixmaps
++appicondir = /usr/share/pixmaps
+ appicon_DATA = \
+ pasang-emas.png \
+ pasang-emas-flash.png
+--- pasang-emas-2.1.0-orig/po/Makefile.in.in
++++ pasang-emas-2.1.0/po/Makefile.in.in
+@@ -34,7 +34,7 @@
+ datarootdir = @datarootdir@
+ libdir = @libdir@
+ DATADIRNAME = @DATADIRNAME@
+-itlocaledir = $(prefix)/$(DATADIRNAME)/locale
++itlocaledir = /usr/share/locale
+ subdir = po
+ install_sh = @install_sh@
+ # Automake >= 1.8 provides @mkdir_p@.
diff --git a/games-board/pasang-emas/metadata.xml b/games-board/pasang-emas/metadata.xml
new file mode 100644
index 000000000000..96bb4cea5ac1
--- /dev/null
+++ b/games-board/pasang-emas/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <use>
+ <flag name="extras">Install some extra themes</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">pasang-emas</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-board/pasang-emas/pasang-emas-3.1.0.ebuild b/games-board/pasang-emas/pasang-emas-3.1.0.ebuild
new file mode 100644
index 000000000000..6684951c6610
--- /dev/null
+++ b/games-board/pasang-emas/pasang-emas-3.1.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils gnome2-utils games
+
+DESCRIPTION="A traditional game of Brunei"
+HOMEPAGE="http://pasang-emas.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
+ extras? ( mirror://sourceforge/${PN}/pasang-emas-themes-1.0.tar.bz2
+ mirror://sourceforge/${PN}/pet-marble.tar.bz2
+ mirror://sourceforge/${PN}/pet-fragrance.tar.bz2 )"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="extras nls"
+
+RDEPEND="app-text/gnome-doc-utils
+ >=x11-libs/gtk+-2.18.2:2
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ app-text/rarian
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-build.patch
+ sed -i \
+ -e '/Encoding/d' \
+ -e '/Icon/s:\.png::' \
+ data/pasang-emas.desktop.in || die
+ gnome2_omf_fix
+}
+
+src_configure() {
+ egamesconf \
+ --localedir=/usr/share/locale \
+ --with-omf-dir=/usr/share/omf \
+ --with-help-dir=/usr/share/gnome/help \
+ $(use_enable nls)
+}
+
+src_install() {
+ default
+ if use extras; then
+ insinto "${GAMES_DATADIR}/${PN}"/themes
+ doins -r \
+ "${WORKDIR}"/marble \
+ "${WORKDIR}"/pasang-emas-themes-1.0/{conteng,kaca} \
+ "${WORKDIR}"/fragrance
+ fi
+ use nls || rm -rf "${D}"usr/share/locale
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_scrollkeeper_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_scrollkeeper_update
+}
+
+pkg_postrm() {
+ gnome2_scrollkeeper_update
+}