summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2015-01-01 21:28:35 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2015-01-01 21:28:35 +0000
commit149ca132f009aa8f40786d2b798752d151792571 (patch)
treece16d584b39d05740d76da6a8d55e1e34d0ff789 /games-arcade/watermelons
parentarm stable, bug #530600 (diff)
downloadgentoo-2-149ca132f009aa8f40786d2b798752d151792571.tar.gz
gentoo-2-149ca132f009aa8f40786d2b798752d151792571.tar.bz2
gentoo-2-149ca132f009aa8f40786d2b798752d151792571.zip
EAPI=5; use python-single-r1
(Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'games-arcade/watermelons')
-rw-r--r--games-arcade/watermelons/ChangeLog10
-rw-r--r--games-arcade/watermelons/watermelons-1.1.1-r1.ebuild57
2 files changed, 65 insertions, 2 deletions
diff --git a/games-arcade/watermelons/ChangeLog b/games-arcade/watermelons/ChangeLog
index dfc812b8e41b..e9660ea6ac67 100644
--- a/games-arcade/watermelons/ChangeLog
+++ b/games-arcade/watermelons/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-arcade/watermelons
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/watermelons/ChangeLog,v 1.5 2014/08/10 21:23:05 slyfox Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/watermelons/ChangeLog,v 1.6 2015/01/01 21:28:35 mr_bones_ Exp $
+
+*watermelons-1.1.1-r1 (01 Jan 2015)
+
+ 01 Jan 2015; Michael Sterrett <mr_bones_@gentoo.org>
+ +watermelons-1.1.1-r1.ebuild:
+ EAPI=5; use python-single-r1
10 Aug 2014; Sergei Trofimovich <slyfox@gentoo.org> watermelons-1.1.1.ebuild:
QA: drop trailing '.' from DESCRIPTION
diff --git a/games-arcade/watermelons/watermelons-1.1.1-r1.ebuild b/games-arcade/watermelons/watermelons-1.1.1-r1.ebuild
new file mode 100644
index 000000000000..47aa1c5148d2
--- /dev/null
+++ b/games-arcade/watermelons/watermelons-1.1.1-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/watermelons/watermelons-1.1.1-r1.ebuild,v 1.1 2015/01/01 21:28:35 mr_bones_ Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-single-r1 games
+
+MY_PN="melons"
+DESCRIPTION="A thrilling watermelon bouncing game"
+HOMEPAGE="http://www.imitationpickles.org/melons/index.html"
+SRC_URI="mirror://gentoo/${MY_PN}-${PV}.tgz"
+# No version upstream
+#SRC_URI="http://www.imitationpickles.org/${MY_PN}/${MY_PN}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="dev-python/pygame[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}"
+RDEPEND=${DEPEND}
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+S=${WORKDIR}/${MY_PN}
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+ games_pkg_setup
+}
+
+src_prepare() {
+ sed -i \
+ -e "s:melons.hs:${GAMES_STATEDIR}/${PN}/&:" \
+ main.py || die
+
+ cat <<-EOF > "${PN}" || die
+ #!/bin/bash
+ cd "${GAMES_DATADIR}/${PN}"
+ exec ${EPYTHON} main.py
+EOF
+}
+
+src_install() {
+ dogamesbin ${PN}
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r data pgu const.py game.py main.py melon.py melons.py menu.py trampoline.py
+ python_optimize "${D}${GAMES_DATADIR}/${PN}"
+ dodoc *.txt
+ dodir "${GAMES_STATEDIR}/${PN}"
+ touch "${D}${GAMES_STATEDIR}"/${PN}/melons.hs
+ fperms 664 "${GAMES_STATEDIR}"/${PN}/melons.hs
+ newicon data/mellon0013.png "${PN}.png"
+ make_desktop_entry ${PN} Watermelons
+ prepgamesdirs
+}