summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2011-01-10 20:33:00 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2011-01-10 20:33:00 +0000
commit84478496f13c4ce54e17c04e1afb1ee514bc2d19 (patch)
treebd83ba2cf605c0a173d34aa768153da524ee0f19 /games-puzzle/brainworkshop
parentVersion bump. Remove old. (diff)
downloadgentoo-2-84478496f13c4ce54e17c04e1afb1ee514bc2d19.tar.gz
gentoo-2-84478496f13c4ce54e17c04e1afb1ee514bc2d19.tar.bz2
gentoo-2-84478496f13c4ce54e17c04e1afb1ee514bc2d19.zip
initial commit - ebuild submissions by Cyp via bug #248393
(Portage version: 2.1.9.25/cvs/Linux i686)
Diffstat (limited to 'games-puzzle/brainworkshop')
-rw-r--r--games-puzzle/brainworkshop/ChangeLog11
-rw-r--r--games-puzzle/brainworkshop/brainworkshop-4.8.1.ebuild41
-rw-r--r--games-puzzle/brainworkshop/files/brainworkshop-4.8.1-fix-paths.patch15
-rw-r--r--games-puzzle/brainworkshop/metadata.xml5
4 files changed, 72 insertions, 0 deletions
diff --git a/games-puzzle/brainworkshop/ChangeLog b/games-puzzle/brainworkshop/ChangeLog
new file mode 100644
index 000000000000..183db0fdf426
--- /dev/null
+++ b/games-puzzle/brainworkshop/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for games-puzzle/brainworkshop
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/brainworkshop/ChangeLog,v 1.1 2011/01/10 20:33:00 mr_bones_ Exp $
+
+*brainworkshop-4.8.1 (10 Jan 2011)
+
+ 10 Jan 2011; Michael Sterrett <mr_bones_@gentoo.org>
+ +brainworkshop-4.8.1.ebuild, +files/brainworkshop-4.8.1-fix-paths.patch,
+ +metadata.xml:
+ initial commit - ebuild submissions by Cyp via bug #248393
+
diff --git a/games-puzzle/brainworkshop/brainworkshop-4.8.1.ebuild b/games-puzzle/brainworkshop/brainworkshop-4.8.1.ebuild
new file mode 100644
index 000000000000..c7c530fed65d
--- /dev/null
+++ b/games-puzzle/brainworkshop/brainworkshop-4.8.1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/brainworkshop/brainworkshop-4.8.1.ebuild,v 1.1 2011/01/10 20:33:00 mr_bones_ Exp $
+
+EAPI=2
+inherit eutils games
+
+DESCRIPTION="Short-term-memory training N-Back game"
+HOMEPAGE="http://brainworkshop.sourceforge.net/"
+SRC_URI="mirror://sourceforge/brainworkshop/${P}.zip"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-python/pyopenal
+ || ( >=dev-python/pyglet-1.1.4[openal]
+ >=dev-python/pyglet-1.1.4[alsa] )
+ dev-python/pyopenal"
+DEPEND="app-arch/unzip"
+
+src_unpack() {
+ unzip -q "${DISTDIR}"/${P}.zip
+ mv ${PN} ${P}
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-fix-paths.patch || die "epatch failed"
+ edos2unix ${PN}.pyw
+}
+
+src_install() {
+ newgamesbin ${PN}.pyw ${PN} || die
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r res/* || die "doins failed"
+ dodoc Readme.txt data/Readme-stats.txt
+ newicon res/misc/brain/brain.png ${PN}.png
+ make_desktop_entry ${PN} "Brain Workshop"
+ prepgamesdirs
+}
diff --git a/games-puzzle/brainworkshop/files/brainworkshop-4.8.1-fix-paths.patch b/games-puzzle/brainworkshop/files/brainworkshop-4.8.1-fix-paths.patch
new file mode 100644
index 000000000000..9897fe0b9612
--- /dev/null
+++ b/games-puzzle/brainworkshop/files/brainworkshop-4.8.1-fix-paths.patch
@@ -0,0 +1,15 @@
+--- a/brainworkshop.pyw 2010-10-15 19:06:16.529006906 +0200
++++ b/brainworkshop.pyw 2010-10-15 19:08:17.095632136 +0200
+@@ -35,8 +35,10 @@
+ NOVBO = True
+ VSYNC = False
+ DEBUG = False
+-FOLDER_RES = 'res'
+-FOLDER_DATA = 'data'
++FOLDER_RES = '/usr/share/games/brainworkshop'
++FOLDER_DATA = os.path.expanduser('~/.brainworkshop')
++if not os.path.isdir(FOLDER_DATA):
++ os.mkdir(FOLDER_DATA)
+ CONFIGFILE = 'config.ini'
+ STATS_BINARY = 'logfile.dat'
+ USER = 'default'
diff --git a/games-puzzle/brainworkshop/metadata.xml b/games-puzzle/brainworkshop/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-puzzle/brainworkshop/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>