games-puzzle/4stattack: Stop using games.eclass
authorPacho Ramos <pacho@gentoo.org>
Tue, 1 May 2018 10:08:57 +0000 (12:08 +0200)
committerPacho Ramos <pacho@gentoo.org>
Tue, 1 May 2018 19:31:50 +0000 (21:31 +0200)
Package-Manager: Portage-2.3.31, Repoman-2.3.9

games-puzzle/4stattack/4stattack-2.1.4-r1.ebuild [new file with mode: 0644]
games-puzzle/4stattack/files/4stattack-2.1.4-gentoo.diff

diff --git a/games-puzzle/4stattack/4stattack-2.1.4-r1.ebuild b/games-puzzle/4stattack/4stattack-2.1.4-r1.ebuild
new file mode 100644 (file)
index 0000000..d04ec26
--- /dev/null
@@ -0,0 +1,45 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1
+
+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=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND=""
+RDEPEND="${PYTHON_DEPS}
+       dev-python/pygame[${PYTHON_USEDEP}]
+"
+
+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
+       eapply "${FILESDIR}"/${P}-gentoo.diff
+}
+
+src_install() {
+       make_wrapper ${PN} "python2 ${PN}.py" /usr/share/${PN}
+       insinto /usr/share/${PN}
+       doins -r *
+       newicon kde/icons/64x64/forcedattack2.png ${PN}.png
+       make_desktop_entry ${PN} "4st Attack 2"
+       dodoc ../{README.txt,credits.txt,changelog.txt}
+}
index be7d32ed3ff29ed54ee6985bf1f8c249cec89dee..9cb5be53b7933a3cb42c0d51324386ba86c193b4 100644 (file)
@@ -1,5 +1,5 @@
---- 4stattack.py
-+++ 4stattack.py
+--- a/4stattack.py
++++ b/4stattack.py
 @@ -28,6 +28,9 @@
  images        = None
  screen        = None