summaryrefslogtreecommitdiff
path: root/games-puzzle/4stattack
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-puzzle/4stattack
reinit the tree, so we can have metadata
Diffstat (limited to 'games-puzzle/4stattack')
-rw-r--r--games-puzzle/4stattack/4stattack-2.1.4.ebuild38
-rw-r--r--games-puzzle/4stattack/Manifest6
-rw-r--r--games-puzzle/4stattack/files/4stattack-2.1.4-gentoo.diff21
-rw-r--r--games-puzzle/4stattack/metadata.xml11
4 files changed, 76 insertions, 0 deletions
diff --git a/games-puzzle/4stattack/4stattack-2.1.4.ebuild b/games-puzzle/4stattack/4stattack-2.1.4.ebuild
new file mode 100644
index 000000000000..1d178a21445b
--- /dev/null
+++ b/games-puzzle/4stattack/4stattack-2.1.4.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Connect-4 game, single or network multiplayer"
+HOMEPAGE="http://forcedattack.sourceforge.net/"
+SRC_URI="mirror://sourceforge/forcedattack/4stAttack-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 hppa x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="dev-python/pygame"
+
+S=${WORKDIR}/4stAttack-${PV}
+
+src_prepare() {
+ # move the doc files aside so it's easier to install the game files
+ mv README.txt credits.txt changelog.txt ..
+ rm -f GPL version~
+
+ # This patch makes the game save settings in $HOME
+ epatch "${FILESDIR}"/${P}-gentoo.diff
+}
+
+src_install() {
+ games_make_wrapper ${PN} "python ${PN}.py" "${GAMES_DATADIR}"/${PN}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r *
+ newicon kde/icons/48x48/forcedattack2.png ${PN}.png
+ make_desktop_entry ${PN} "4st Attack 2"
+ dodoc ../{README.txt,credits.txt,changelog.txt}
+ prepgamesdirs
+}
diff --git a/games-puzzle/4stattack/Manifest b/games-puzzle/4stattack/Manifest
new file mode 100644
index 000000000000..bfaab763a2a3
--- /dev/null
+++ b/games-puzzle/4stattack/Manifest
@@ -0,0 +1,6 @@
+AUX 4stattack-2.1.4-gentoo.diff 509 SHA256 bcb638ed992288e844db9f4e5fadb9196f20c8e8ae2c1695defc8fdc8fb4cb13 SHA512 f370ae8ce74ffe54f028c8646ea8dce87ae4fc5f4eb7ca8343f5441d3dbc80a487c2dd63ba75d363778b450ab47f432aeddcb93e0b6fc895f54a5fa12380f8c9 WHIRLPOOL 843e8528c2ace6fd6d8b1e13ba12978ec25e4b8d37cc9bd861af7dd8ad4e911c7ead8968384af983291d2e8d3b888b90f274521a6747f1cbaeadf5ac3f391d66
+DIST 4stAttack-2.1.4.tar.gz 1828247 SHA256 196c553fd3dbda8b2c2a07a9b0cbacf4f067712498f909d2823161e7d0b289e6 SHA512 4819c0915bfe47bb965ea39d49fa007fb18cfa965b15e5e72a4b0ac3be8a03c616d9438c8dedd960ee257e44b48f98f75ced6bed5bfc77f3366328c797b30f3c WHIRLPOOL 439d05b5208821d18b6976f055de32521283ee737832bf80c4eeea1f62bb334cc72b43b360b09f9cb0da42e8310e54e078ff097432e24ebd3c5ae74ddad1ac99
+EBUILD 4stattack-2.1.4.ebuild 977 SHA256 5bd909d5d2a7eef79b7c8a91cd2cd39ff550a7f0c76ae4f3b97323912bb0238d SHA512 bfadd95adbcc5df82a9be407a67270ef5e1c96b422600bf1cc0dbb7e588702b58999f042f101f2f00412f4f3048e1b27da3f2ec7792b3ca9a4997a855566e9bb WHIRLPOOL edbce27a065fd47747d3e73a58a8fd3eaa3f722798a2f04fe82975fa7bae796a513b915d9403b7e861fbffa793cc8f9091f1467b8b49d5994a168d94d221ba0c
+MISC ChangeLog 2473 SHA256 5f601186dbff149c0796c741abf62650cdc0d587f5a3585f07fd1412b1df40fc SHA512 93557c8c415308991b16bced627edcc9fe3bec560e1954d53a69660fae075c13e89fa595d26c64b4e62b11ab2f884f460931ebd6dc90374a532648161937609f WHIRLPOOL c688a33dc1bb7e5e70ebba35b14349eaadd39937cdd8a349d549ea247c53c7bdd694d10e19923589d43a5379304acd56303a8132a84ade4381f8f897da02563a
+MISC ChangeLog-2015 1136 SHA256 138d03dc1effbc0097d346b4e0ab1184e74eb4d6ea973e27b1948ba569536dac SHA512 f4d7aee0f5809b9bdf0703218931d1a1fb2e4293f7037bcd8d81ce5707620a13278c676f3c6f3f657b58adfe74984000f8af23b471974497378b3e12e2b27161 WHIRLPOOL e5efbc07f5f612b984faa54a0fa426afd326e47f099626e620bd59809723a6d98b7bb4194fd1c7c338f317d4ad9aa39d460951ac14c1e7c068acaaa70cd6483b
+MISC metadata.xml 335 SHA256 6b27e995020286e65b53e3e658a177319795cb722a728b803851d3ec906dc90f SHA512 eff7c6df19ba9adc535fcc0e33216dcbdad8a04a8a09544263c120ee6185842709c0d08065b64d89be09c37afa270f6736216e78ef779e3a13ac8b82ca0fa299 WHIRLPOOL 5a552342baf34092cabac72f382b3eab3e9da0266d983212da1cf5918c9a585b688004cb0735e68568e150780091af642aab72dfa2ad39a03eacff980337574d
diff --git a/games-puzzle/4stattack/files/4stattack-2.1.4-gentoo.diff b/games-puzzle/4stattack/files/4stattack-2.1.4-gentoo.diff
new file mode 100644
index 000000000000..be7d32ed3ff2
--- /dev/null
+++ b/games-puzzle/4stattack/files/4stattack-2.1.4-gentoo.diff
@@ -0,0 +1,21 @@
+--- 4stattack.py
++++ 4stattack.py
+@@ -28,6 +28,9 @@
+ images = None
+ screen = None
+
++f = os.path.expanduser('~/.4stattackrc')
++if not os.path.exists(f):
++ os.system('cp settings.ini %s' % f)
+
+ def playMusic(datadir):
+ if pygame.mixer.get_init():
+@@ -78,7 +81,7 @@
+ if options.has_key('-ini'):
+ ini_settings = IniSettings(options['-ini'])
+ else:
+- ini_settings = IniSettings('settings.ini')
++ ini_settings = IniSettings(os.path.expanduser('~/.4stattackrc'))
+
+ settings = ini_settings.settings
+
diff --git a/games-puzzle/4stattack/metadata.xml b/games-puzzle/4stattack/metadata.xml
new file mode 100644
index 000000000000..ddef1505ee47
--- /dev/null
+++ b/games-puzzle/4stattack/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+ <upstream>
+ <remote-id type="sourceforge">forcedattack</remote-id>
+ </upstream>
+</pkgmetadata>