summaryrefslogtreecommitdiff
path: root/games-kids/pytraffic
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-kids/pytraffic
reinit the tree, so we can have metadata
Diffstat (limited to 'games-kids/pytraffic')
-rw-r--r--games-kids/pytraffic/Manifest7
-rw-r--r--games-kids/pytraffic/files/pytraffic6
-rw-r--r--games-kids/pytraffic/metadata.xml11
-rw-r--r--games-kids/pytraffic/pytraffic-2.5.4-r1.ebuild86
-rw-r--r--games-kids/pytraffic/pytraffic-2.5.4-r2.ebuild82
5 files changed, 192 insertions, 0 deletions
diff --git a/games-kids/pytraffic/Manifest b/games-kids/pytraffic/Manifest
new file mode 100644
index 000000000000..079a6a38cd2a
--- /dev/null
+++ b/games-kids/pytraffic/Manifest
@@ -0,0 +1,7 @@
+AUX pytraffic 84 SHA256 84c86c6994b498a8a68360dbc857d44a3a00bcfc919ae02ed88fdc89c7cb6cd7 SHA512 af94d6fc6402e57b78461e65e8eca0ebdd789540a1b8113ed844bfd8bcc4aeff18683c5b254f20b05427d172ac50be06be9d6f8459cf51396a8b8fdd7cb332d9 WHIRLPOOL 095be914431f6de82b46406bc8d84a73e6e19a3861982680716809e21408b4e37910a7842662452ab056e2245c1bd53f6bdeb91d8269c398ceb74d426f6eb720
+DIST pytraffic-2.5.4.tar.gz 2474006 SHA256 7a3254f5a37d71104a1223d960ce8b5d23d40caa4b2b8b8b6236d6a762c00a2a SHA512 c34a9b783e7de998b8ebc39c2ed2bf1b9a40b090c498773297da455b182aaa5f2047fb541bb11a91e11abdeffee9f02b04a37861135c5fa946fccabfc21b44c1 WHIRLPOOL 0e5c76c3d6b409bb93f9f83218a1fa1705d5f6d38041b161846a5137a1b63497a09891f80d543a058a2fc4748ae3802e9dc8074adf24bba2ac3902abdeb2ec18
+EBUILD pytraffic-2.5.4-r1.ebuild 1795 SHA256 2e631947fcca70adaae3a75d30a38b507fef124a8a746cbc2fc63e9a57127abc SHA512 3abc2bdefa1abe9ef3461a04d3a47109c7b24fe44d4199d88faff5fb747541e85c3694dec187bb213cb34aa938d8c5982fece9fdddfff5dc6be5d4af7f94d6a5 WHIRLPOOL 4ea382bb4f0a9b27978a0d6ea8ceb274429ca2794d57ab3babf5b11139066e12d2dd5d346933fa06888bd205083527275c458eb2839345e00255a2095d4f4249
+EBUILD pytraffic-2.5.4-r2.ebuild 1714 SHA256 c532e95ecc0dbdea581bd6645e920a3b06297a6d30f49712401d72c91bbb0926 SHA512 da9a301719b8f9c41acbe4cc8e5a69123330a164a8c2d1ec7d51e948d0152969af8450950ef4954c3d4039785254d6c9026e0c2c7271f22315ead96a75e01ae9 WHIRLPOOL 1318685213aa7e3f51f66cfc8cdfbc9631d4ba572f08ab76183e95bfa67689af6b0fc8954cb75f1b88c6d2ad87bba7febc5286a10e8dfbaf3c112d251bfedbc3
+MISC ChangeLog 2717 SHA256 8dd32b2cef6c877f5db784a1ecb81985b3a8532b1ec2d0177e3b20c3182a3a69 SHA512 9774ff504641856f361bf3a6a00af6bff95009372af0acc0d97c214d589868355010b842eeb7386ec56f58ed4c4c3cd0123cb71b7a31510566f54843e8052403 WHIRLPOOL 05a358448dd5140f82bad29bb3d9c138499d34c7744b3a87ee2883f7156e21eb8f4a7738ad090f8fdbfc93765646264c478adb37b5ddc3744a9235bd732e9f8e
+MISC ChangeLog-2015 2833 SHA256 7c75594ea38805e6a3b7cbb23a85e60a50a3c8a8a334cfe52f8146385043956c SHA512 e9470e7f90d7955db0211d1c5e40255ad8f6bc2dd1f0cb355cc682dc24d31f2b531aecc4d80666a137901898e3c6d685a2164588304868f28507946f1c4a8ffb WHIRLPOOL 3119a18fedb75920c806f97e5b97efd39127edeb3bd7dad34d1c3522ea5f7cc5dff86f2d758bf42adc5d9dc3fbb5c7dda1786b753d9881f927b3acc6bed056aa
+MISC metadata.xml 329 SHA256 5f55cdbd7ef20c42d6a0b6f82dac6b5246e5a9cfc83dbfe19dde05189793b159 SHA512 9dc7087d6e8f9238e014a01f75ac366608fb881eb8d905412a590c7fe52d931d624a2c07164c861511e27152ca1a7b9e095db30b64cc7733cfd2e7e20abc6c60 WHIRLPOOL 074a66c395a32bbec5974bbd2f8a8aa7462e72dc7002f3712b9026b6f62416ad8ecb99ae1f69bd59fcac20f1990ea158b335b99d4e9e96c81a6e998f4d06521e
diff --git a/games-kids/pytraffic/files/pytraffic b/games-kids/pytraffic/files/pytraffic
new file mode 100644
index 000000000000..30ab25196ce7
--- /dev/null
+++ b/games-kids/pytraffic/files/pytraffic
@@ -0,0 +1,6 @@
+#!/usr/bin/env python
+
+import os
+os.chdir("@GAMES_DATADIR@")
+import pytraffic.Main
+
diff --git a/games-kids/pytraffic/metadata.xml b/games-kids/pytraffic/metadata.xml
new file mode 100644
index 000000000000..9814659ba9cc
--- /dev/null
+++ b/games-kids/pytraffic/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="freecode">pytraffic</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-kids/pytraffic/pytraffic-2.5.4-r1.ebuild b/games-kids/pytraffic/pytraffic-2.5.4-r1.ebuild
new file mode 100644
index 000000000000..6aa5f4fb10e2
--- /dev/null
+++ b/games-kids/pytraffic/pytraffic-2.5.4-r1.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils gnome2-utils python-utils-r1 python-r1 distutils-r1 games
+
+DESCRIPTION="Python version of the board game Rush Hour"
+HOMEPAGE="http://freecode.com/projects/pytraffic"
+SRC_URI="http://alpha.uhasselt.be/Research/Algebra/Members/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl:0[sound]
+ media-libs/sdl-mixer"
+RDEPEND="${DEPEND}
+ dev-python/pygtk"
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+
+ # FHS compliance
+ sed -i \
+ -e 's#return os.path.join(exec_dir,path)#return os.path.join(os.getcwd(),path)#' \
+ Misc.py || die
+
+ sed \
+ -e "s#@GAMES_DATADIR@#${GAMES_DATADIR}/${PN}#" \
+ "${FILESDIR}"/${PN} > "${T}"/${PN} || die
+}
+
+python_install() {
+ # install modules manually, build system broken
+ python_moduleinto ${PN}
+ python_domodule "${BUILD_DIR}"/lib/.
+
+ # allow to import the stuff as module
+ touch "${D}$(python_get_sitedir)"/${PN}/__init__.py || die
+
+ # install python wrapper script to handle multiple ABI properly
+ python_scriptinto "${GAMES_BINDIR}"
+ python_doscript "${T}"/${PN}
+}
+
+python_install_all() {
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r doc config.db extra_themes icons libglade music sound_test themes ttraffic.levels
+
+ doicon -s 64 icons/64x64/${PN}.png
+ make_desktop_entry ${PN} PyTraffic
+
+ dodoc AUTHORS CHANGELOG README
+
+ prepgamesdirs
+}
+
+src_prepare() {
+ distutils-r1_src_prepare
+}
+
+src_compile() {
+ distutils-r1_src_compile
+}
+
+src_install() {
+ distutils-r1_src_install
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-kids/pytraffic/pytraffic-2.5.4-r2.ebuild b/games-kids/pytraffic/pytraffic-2.5.4-r2.ebuild
new file mode 100644
index 000000000000..c3d2b8f0a0c8
--- /dev/null
+++ b/games-kids/pytraffic/pytraffic-2.5.4-r2.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils gnome2-utils python-utils-r1 python-r1 distutils-r1
+
+DESCRIPTION="Python version of the board game Rush Hour"
+HOMEPAGE="http://freecode.com/projects/pytraffic"
+SRC_URI="http://alpha.uhasselt.be/Research/Algebra/Members/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl:0[sound]
+ media-libs/sdl-mixer"
+RDEPEND="${DEPEND}
+ dev-python/pygtk"
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+
+ # FHS compliance
+ sed -i \
+ -e 's#return os.path.join(exec_dir,path)#return os.path.join(os.getcwd(),path)#' \
+ Misc.py || die
+
+ sed \
+ -e "s#@GAMES_DATADIR@#/usr/share/${PN}#" \
+ "${FILESDIR}"/${PN} > "${T}"/${PN} || die
+}
+
+python_install() {
+ # install modules manually, build system broken
+ python_moduleinto ${PN}
+ python_domodule "${BUILD_DIR}"/lib/.
+
+ # allow to import the stuff as module
+ touch "${D}$(python_get_sitedir)"/${PN}/__init__.py || die
+
+ # install python wrapper script to handle multiple ABI properly
+ python_scriptinto /usr/bin
+ python_doscript "${T}"/${PN}
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ insinto /usr/share/${PN}
+ doins -r doc config.db extra_themes icons libglade music sound_test themes ttraffic.levels
+
+ doicon -s 64 icons/64x64/${PN}.png
+ make_desktop_entry ${PN} PyTraffic
+}
+
+src_prepare() {
+ distutils-r1_src_prepare
+}
+
+src_compile() {
+ distutils-r1_src_compile
+}
+
+src_install() {
+ distutils-r1_src_install
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}