diff options
Diffstat (limited to 'games-arcade/watermelons')
-rw-r--r-- | games-arcade/watermelons/Manifest | 3 | ||||
-rw-r--r-- | games-arcade/watermelons/metadata.xml | 8 | ||||
-rw-r--r-- | games-arcade/watermelons/watermelons-1.1.1-r1.ebuild | 56 |
3 files changed, 67 insertions, 0 deletions
diff --git a/games-arcade/watermelons/Manifest b/games-arcade/watermelons/Manifest new file mode 100644 index 000000000000..239819da8038 --- /dev/null +++ b/games-arcade/watermelons/Manifest @@ -0,0 +1,3 @@ +DIST melons-1.1.1.tgz 318692 BLAKE2B b950e58062f85632cf87a205ede2437ddb9ac573574cb7cd5e73eabd3cbd7af8e2ee9a2dc06a31cb2f322198fb0bcb97b0c292a886711bf4fb868b4f90738a1c SHA512 50bb66de9806fb1bbe946ad5063e68d3327d6184b3e95230573f71053426ed877fc9762ef2b44e6964c9d7b8dc5081e9c3015885800dd6644a1dd88c9c5dc357 +EBUILD watermelons-1.1.1-r1.ebuild 1341 BLAKE2B 8042bdde7e2e08d25d68bae4fe295ee43ec2c98ab5f65169c4da17871a9366b0248a3ea95c57fc9fa85a9c3f0df7b2a5186994c0546fed0526cf7f3cd8d9e2e9 SHA512 3400eec09823777c70f4e9ab9dafa883bfa5cd05f765a9623e04ce75fdd2415ba921827383189737561b766bc8f7fb7d8e4ef306225217e2ffb35132a1e92508 +MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-arcade/watermelons/metadata.xml b/games-arcade/watermelons/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-arcade/watermelons/metadata.xml @@ -0,0 +1,8 @@ +<?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> +</pkgmetadata> 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..72fec90aec30 --- /dev/null +++ b/games-arcade/watermelons/watermelons-1.1.1-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} |