summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2010-06-06 07:30:50 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2010-06-06 07:30:50 +0000
commit0c43e48201b61be187f938dadd1a4d26da647486 (patch)
tree5305a151365e5350e15f506ca842cd0c2016c99b /games-board
parentNew package, ebuild written by me (diff)
downloadgentoo-2-0c43e48201b61be187f938dadd1a4d26da647486.tar.gz
gentoo-2-0c43e48201b61be187f938dadd1a4d26da647486.tar.bz2
gentoo-2-0c43e48201b61be187f938dadd1a4d26da647486.zip
initial commit - ebuild and patch submitted by kirin yuri via bug #314767
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'games-board')
-rw-r--r--games-board/pasang-emas/ChangeLog11
-rw-r--r--games-board/pasang-emas/files/pasang-emas-2.1.0-build.patch37
-rw-r--r--games-board/pasang-emas/metadata.xml8
-rw-r--r--games-board/pasang-emas/pasang-emas-2.1.0.ebuild50
4 files changed, 106 insertions, 0 deletions
diff --git a/games-board/pasang-emas/ChangeLog b/games-board/pasang-emas/ChangeLog
new file mode 100644
index 000000000000..8da89f1917e9
--- /dev/null
+++ b/games-board/pasang-emas/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for games-board/pasang-emas
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/pasang-emas/ChangeLog,v 1.1 2010/06/06 07:30:50 mr_bones_ Exp $
+
+*pasang-emas-2.1.0 (06 Jun 2010)
+
+ 06 Jun 2010; Michael Sterrett <mr_bones_@gentoo.org>
+ +pasang-emas-2.1.0.ebuild, +files/pasang-emas-2.1.0-build.patch,
+ +metadata.xml:
+ initial commit - ebuild and patch submitted by kirin yuri via bug #314767
+
diff --git a/games-board/pasang-emas/files/pasang-emas-2.1.0-build.patch b/games-board/pasang-emas/files/pasang-emas-2.1.0-build.patch
new file mode 100644
index 000000000000..503eb20d99bb
--- /dev/null
+++ b/games-board/pasang-emas/files/pasang-emas-2.1.0-build.patch
@@ -0,0 +1,37 @@
+--- pasang-emas-2.1.0-orig/src/Makefile.in 2010-05-04 13:12:45.000000000 +0600
++++ pasang-emas-2.1.0/src/Makefile.in 2010-05-20 15:48:56.000000000 +0600
+@@ -196,7 +196,7 @@
+ 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 2010-05-04 13:12:45.000000000 +0600
++++ pasang-emas-2.1.0/data/Makefile.in 2010-05-20 16:19:12.000000000 +0600
+@@ -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 2010-04-22 08:00:31.000000000 +0600
++++ pasang-emas-2.1.0/po/Makefile.in.in 2010-06-03 14:31:18.000000000 +0600
+@@ -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..2b47b9a8dac5
--- /dev/null
+++ b/games-board/pasang-emas/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</pkgmetadata>
diff --git a/games-board/pasang-emas/pasang-emas-2.1.0.ebuild b/games-board/pasang-emas/pasang-emas-2.1.0.ebuild
new file mode 100644
index 000000000000..66717c1309c0
--- /dev/null
+++ b/games-board/pasang-emas/pasang-emas-2.1.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/pasang-emas/pasang-emas-2.1.0.ebuild,v 1.1 2010/06/06 07:30:50 mr_bones_ Exp $
+
+EAPI=2
+inherit games
+
+DESCRIPTION="A traditional game of Brunei"
+HOMEPAGE="http://pasang-emas.sourceforge.net/"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="extras nls"
+
+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 )"
+
+RDEPEND="app-text/gnome-doc-utils
+ >=x11-libs/gtk+-2.18.2:2
+ virtual/libintl
+ app-text/scrollkeeper"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-build.patch
+}
+
+src_configure() {
+ egamesconf \
+ --disable-dependency-tracking \
+ --localedir=/usr/share/locale \
+ --with-omf-dir=/usr/share/omf \
+ --with-help-dir=/usr/share/gnome/help \
+ $(use_enable nls)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ if use extras; then
+ insinto "${GAMES_DATADIR}/${PN}"/themes
+ doins -r \
+ "${WORKDIR}"/marble \
+ "${WORKDIR}"/pasang-emas-themes-1.0/{conteng,kaca} || die
+ fi
+ use nls || rm -rf "${D}"usr/share/locale
+ prepgamesdirs
+}