summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-kids')
-rw-r--r--games-kids/pytraffic/ChangeLog10
-rw-r--r--games-kids/pytraffic/Manifest34
-rw-r--r--games-kids/pytraffic/files/pytraffic6
-rw-r--r--games-kids/pytraffic/pytraffic-2.5.4-r1.ebuild87
4 files changed, 116 insertions, 21 deletions
diff --git a/games-kids/pytraffic/ChangeLog b/games-kids/pytraffic/ChangeLog
index bed73cd8ea5b..e98dafec22af 100644
--- a/games-kids/pytraffic/ChangeLog
+++ b/games-kids/pytraffic/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-kids/pytraffic
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-kids/pytraffic/ChangeLog,v 1.13 2011/04/06 20:04:12 arfrever Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-kids/pytraffic/ChangeLog,v 1.14 2013/01/12 15:41:34 hasufell Exp $
+
+*pytraffic-2.5.4-r1 (12 Jan 2013)
+
+ 12 Jan 2013; Julian Ospald <hasufell@gentoo.org> +pytraffic-2.5.4-r1.ebuild,
+ +files/pytraffic:
+ migrate to distutils-r1, respect FHS, support multiple ABI
06 Apr 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
pytraffic-2.5.4.ebuild:
diff --git a/games-kids/pytraffic/Manifest b/games-kids/pytraffic/Manifest
index db0c0242150f..18ea8962d830 100644
--- a/games-kids/pytraffic/Manifest
+++ b/games-kids/pytraffic/Manifest
@@ -1,24 +1,20 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA256
-DIST pytraffic-2.5.4.tar.gz 2474006 RMD160 3749068efff7f670463a75d1279bbd157ee63658 SHA1 08077ccf3803f6f4dbb5a7892ae23416f5097350 SHA256 7a3254f5a37d71104a1223d960ce8b5d23d40caa4b2b8b8b6236d6a762c00a2a
-EBUILD pytraffic-2.5.4.ebuild 1643 RMD160 a79205931d95048627f195eda084900886c2b708 SHA1 dbe8855aea59a29cfa940c4275a1b209589ce060 SHA256 24fef8a28d53e865911900b8373181a63c4491be3ea8b60fbabc163148679ee8
-MISC ChangeLog 1822 RMD160 5818aa197d1b0977879712b2e14de320a3402dd5 SHA1 42b165f56f33df6a9be60f78a622ce80f1af0699 SHA256 88a91f5b0ba3aaa14d5b09310d3113a7888681be188d802c328cceaec9e8cbac
-MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
+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 1933 SHA256 0dbd473759435f5b864b1a27692701032ee10a6482cec3706780e6ad2da832cc SHA512 bd89bf491a16180eb770978abae5819babf25276c343acb2fb5c36077b28fd396a7cc4cc060187aba7798a34d8af0f2b1dd9489109c6fc4fc953405cb9c37e7f WHIRLPOOL 5203b3f6ab356a13870d6f3a3d866125a7c742cd31011fbf8f6b031a53e0d6d95d987b2608a32beb9c81cab9ad781ba3041a4e88787796d073ca85759bee5b2b
+EBUILD pytraffic-2.5.4.ebuild 1643 SHA256 24fef8a28d53e865911900b8373181a63c4491be3ea8b60fbabc163148679ee8 SHA512 6c5ca09f2067cdd8e8a074dbfd85a4a5016885a037d9e43cf69d0dc371eeb8739be9a0cb7be0ff997f798929d5d0216fcacbd7b35ebface20c92994c9019042b WHIRLPOOL 95bf8decea8a18b46da5097728c1919e6be320194b4c3a543e1e5fc9e9ae4ec239869051fac43be1d55261ffdbed46474862a9c93a6d7775a29b5ad208d2f893
+MISC ChangeLog 2018 SHA256 91240000628b1ff187a5a3474e2796961b07bef49bd2bd75a47adf7fb3d84b59 SHA512 337a905f1b0efe0431ad4094b1e0914f0212c6606db1bcab35b0e99a58b8be5d3fd624e9098b27df0ccafccf253442429f8d7ff27a0b08296c6b426c0b3ba8ab WHIRLPOOL 76d57b310da2e7dc5d3a410216092b4c012420ae6be14fbc9c116bb4905d450a6ed12c6cf25750463d2f16badee9381f65255aeda0edce7a47d161eefc66bd57
+MISC metadata.xml 158 SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 SHA512 d954564236b67b6ab97846b73f74e715e8f1bec2dba6595e9a5046c2e8c3b93f4879c293f9d1d02d99a533bee56156dae3f31a485697128c51af14cdbfdada8a WHIRLPOOL d03e7293d09d794d61c095a423f945b3644355a247f270a73ca8d30b4dfe9c98244297536bfd1a4bd6c14794aa1152eca20fd83bfdf3e1e74d4f676152d35ada
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.17 (GNU/Linux)
+Version: GnuPG v2.0.19 (GNU/Linux)
-iQIcBAEBAgAGBQJNpIjcAAoJENgZr6v6gHY0+oAP/idsMLmseGpelkV49QILt7Kt
-mpKQOFpkRIL835D+J5sFlEsxEdp0+HHty+XpiT21zU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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/pytraffic-2.5.4-r1.ebuild b/games-kids/pytraffic/pytraffic-2.5.4-r1.ebuild
new file mode 100644
index 000000000000..cd079a0557b8
--- /dev/null
+++ b/games-kids/pytraffic/pytraffic-2.5.4-r1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-kids/pytraffic/pytraffic-2.5.4-r1.ebuild,v 1.1 2013/01/12 15:41:34 hasufell Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_6 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 ~ppc ~x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[audio]
+ 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
+}