summaryrefslogtreecommitdiff
path: root/games-puzzle/4stattack
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-05-02 14:13:35 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-05-02 14:13:35 +0100
commit7c7c2c9727d6b2ff30945b5aea0d575e1c406d8b (patch)
treebac2a67fb24ac0836147fe370d30e1610ae1845d /games-puzzle/4stattack
parent2f8db31405fac68eea6f7257d58529243815033b (diff)
gentoo resync : 02.05.2018
Diffstat (limited to 'games-puzzle/4stattack')
-rw-r--r--games-puzzle/4stattack/4stattack-2.1.4-r1.ebuild (renamed from games-puzzle/4stattack/4stattack-2.1.4.ebuild)27
-rw-r--r--games-puzzle/4stattack/Manifest4
-rw-r--r--games-puzzle/4stattack/files/4stattack-2.1.4-gentoo.diff4
3 files changed, 21 insertions, 14 deletions
diff --git a/games-puzzle/4stattack/4stattack-2.1.4.ebuild b/games-puzzle/4stattack/4stattack-2.1.4-r1.ebuild
index a076f4776e58..d04ec26a8f3f 100644
--- a/games-puzzle/4stattack/4stattack-2.1.4.ebuild
+++ b/games-puzzle/4stattack/4stattack-2.1.4-r1.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit eutils games
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1
DESCRIPTION="Connect-4 game, single or network multiplayer"
HOMEPAGE="http://forcedattack.sourceforge.net/"
@@ -11,28 +13,33 @@ SRC_URI="mirror://sourceforge/forcedattack/4stAttack-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~x86"
+
IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND=""
-RDEPEND="dev-python/pygame"
+RDEPEND="${PYTHON_DEPS}
+ dev-python/pygame[${PYTHON_USEDEP}]
+"
-S=${WORKDIR}/4stAttack-${PV}
+S="${WORKDIR}/4stAttack-${PV}"
src_prepare() {
+ default
+
# 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
+ eapply "${FILESDIR}"/${P}-gentoo.diff
}
src_install() {
- games_make_wrapper ${PN} "python ${PN}.py" "${GAMES_DATADIR}"/${PN}
- insinto "${GAMES_DATADIR}"/${PN}
+ make_wrapper ${PN} "python2 ${PN}.py" /usr/share/${PN}
+ insinto /usr/share/${PN}
doins -r *
- newicon kde/icons/48x48/forcedattack2.png ${PN}.png
+ newicon kde/icons/64x64/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
index 0ee59ca82c15..d16e4839ca28 100644
--- a/games-puzzle/4stattack/Manifest
+++ b/games-puzzle/4stattack/Manifest
@@ -1,4 +1,4 @@
-AUX 4stattack-2.1.4-gentoo.diff 509 BLAKE2B a229056953843cccebaec58dab61db00f075d64c9d54c722c820c8674380e61ffa9bbbe316258709c4f66106f51149c5a67c846a19d238f8e094005d71a3901b SHA512 f370ae8ce74ffe54f028c8646ea8dce87ae4fc5f4eb7ca8343f5441d3dbc80a487c2dd63ba75d363778b450ab47f432aeddcb93e0b6fc895f54a5fa12380f8c9
+AUX 4stattack-2.1.4-gentoo.diff 513 BLAKE2B 9cf9396347fb40d23bf89516653eaca79af24e20137228021a02679dd965a7d6a9db42f4c669cbbfe8da773fa279a3509a7ae3a55b17b57e6ff44d30b0b8d153 SHA512 def42479c82d4a5bce910028b5726602b2d07b97afdabf2cb464ae24bc8d081136c81e437fa8d997e171bda14a0af91e14b8d2f1f1b12d5264ebbb1e96fa727d
DIST 4stAttack-2.1.4.tar.gz 1828247 BLAKE2B 82575adaa8994939f978a0ae796c6a57d64eacf715465ee3ea9614dda28b1543c199d2776408b989e82bf9e4b28cd90cf7b57dc7c21be1329aac2295043f8a57 SHA512 4819c0915bfe47bb965ea39d49fa007fb18cfa965b15e5e72a4b0ac3be8a03c616d9438c8dedd960ee257e44b48f98f75ced6bed5bfc77f3366328c797b30f3c
-EBUILD 4stattack-2.1.4.ebuild 980 BLAKE2B 2ebd942ed5f058674507965825bfa07d339c98b41bc546ee5aef3b738911220280d99c12310b0dece9ffcb9a8be5239224efafbe3e65dfeaf28df2a6cfd6eddc SHA512 926fc12f8827c18f0c6dd338c7ad16d9a508b768c37396a3b9380f113da41b574013018c11e25a055d502202e39b8e5acf1eb5e4f0659996b02a196f87cfa65d
+EBUILD 4stattack-2.1.4-r1.ebuild 1070 BLAKE2B 27bc1a5465bf2191adbf28c2ff6ce29bbfda912e8f68ba594898c4e8c116498d9bcffc65b015b5b167ac4b826976436b5ec48258858df2cd460c1e987f4cb7bc SHA512 dfbad8200b667ac60167305922db97fc1730072f37c059a3857cc0d70371498e8dd76b3641b6e1d5eb3d8d5f85fece3a34ff90045cb92fe67701545b8e7c405a
MISC metadata.xml 335 BLAKE2B 558a9365482fa1fec17fec2f638b22f02bbcdfa90529f0bc1524c611f7f90e192583f344105a9e619b009278f130e0c58a13a74d68860760486486aa84606a74 SHA512 eff7c6df19ba9adc535fcc0e33216dcbdad8a04a8a09544263c120ee6185842709c0d08065b64d89be09c37afa270f6736216e78ef779e3a13ac8b82ca0fa299
diff --git a/games-puzzle/4stattack/files/4stattack-2.1.4-gentoo.diff b/games-puzzle/4stattack/files/4stattack-2.1.4-gentoo.diff
index be7d32ed3ff2..9cb5be53b793 100644
--- a/games-puzzle/4stattack/files/4stattack-2.1.4-gentoo.diff
+++ b/games-puzzle/4stattack/files/4stattack-2.1.4-gentoo.diff
@@ -1,5 +1,5 @@
---- 4stattack.py
-+++ 4stattack.py
+--- a/4stattack.py
++++ b/4stattack.py
@@ -28,6 +28,9 @@
images = None
screen = None