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
commit32d671377ac5450c01a679470ffe686cb0c502a9 (patch)
tree904dfca19fc561dc83be6783a38bc8dc80e80573 /games-puzzle/brainworkshop
parentVersion bump. Remove old. (diff)
downloadhistorical-32d671377ac5450c01a679470ffe686cb0c502a9.tar.gz
historical-32d671377ac5450c01a679470ffe686cb0c502a9.tar.bz2
historical-32d671377ac5450c01a679470ffe686cb0c502a9.zip
initial commit - ebuild submissions by Cyp via bug #248393
Package-Manager: portage-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/Manifest5
-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
5 files changed, 77 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/Manifest b/games-puzzle/brainworkshop/Manifest
new file mode 100644
index 000000000000..9a702489f218
--- /dev/null
+++ b/games-puzzle/brainworkshop/Manifest
@@ -0,0 +1,5 @@
+AUX brainworkshop-4.8.1-fix-paths.patch 476 RMD160 18538b82b50e3c29c1ecba5ccc06c172299cb682 SHA1 8a0ad99d31d58317a51b72d3a10bdd78e92d1290 SHA256 455648638f47f7b428f1bf0aea85fb7167d9aa959fcd4c119dc9fa27bc8752fd
+DIST brainworkshop-4.8.1.zip 8921750 RMD160 3cc08fac3aa1d18ddd494cab095870d389385bdc SHA1 dee3fce1c82306696072464038d47a0cb33adaab SHA256 6413a71c02b435c52f799b3fbb73bb6fdc6669dd680c3f9418ce7d8ab1e55f40
+EBUILD brainworkshop-4.8.1.ebuild 1074 RMD160 a8b45b20fb16c8df7d327586f812d5c8c3d63ab7 SHA1 10be35e7c27c2a5f012567d3b96e746754a7575d SHA256 0bb3e1ddbffc7fd3bd05d9203e40d11ceb9eae2621b83d50e8f232d5d6757ea1
+MISC ChangeLog 473 RMD160 e9391b4b83c24a073ca570229f96fb8457484074 SHA1 f06718c4b9012e7bb92ac2da825990e3112276f1 SHA256 3ebbb1d80c0766f700b43f14c0d8bd0d1793a0a7e904a51c3a2461539a94c4e0
+MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
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>