diff options
-rw-r--r-- | games-kids/pytraffic/ChangeLog | 8 | ||||
-rw-r--r-- | games-kids/pytraffic/Manifest | 3 | ||||
-rw-r--r-- | games-kids/pytraffic/files/2.0-gentoo-dirs.patch | 40 | ||||
-rw-r--r-- | games-kids/pytraffic/files/digest-pytraffic-2.0 | 1 | ||||
-rw-r--r-- | games-kids/pytraffic/pytraffic-2.0.ebuild | 41 |
5 files changed, 92 insertions, 1 deletions
diff --git a/games-kids/pytraffic/ChangeLog b/games-kids/pytraffic/ChangeLog index e2ae140de232..57262581d651 100644 --- a/games-kids/pytraffic/ChangeLog +++ b/games-kids/pytraffic/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-kids/pytraffic # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-kids/pytraffic/ChangeLog,v 1.2 2005/02/22 12:12:55 dholm Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-kids/pytraffic/ChangeLog,v 1.3 2005/06/11 18:03:06 fserb Exp $ + +*pytraffic-2.0 (11 Jun 2005) + + 11 Jun 2005; Fernando Serboncini <fserb@gentoo.org> + +files/2.0-gentoo-dirs.patch, +pytraffic-2.0.ebuild: + Version bump. 22 Feb 2005; David Holm <dholm@gentoo.org> pytraffic-1.2.1.ebuild: Added to ~ppc. diff --git a/games-kids/pytraffic/Manifest b/games-kids/pytraffic/Manifest index 1e2329dfccf1..aeec53403a9d 100644 --- a/games-kids/pytraffic/Manifest +++ b/games-kids/pytraffic/Manifest @@ -1,5 +1,8 @@ MD5 d32c588b53d7654c5a55dfabaf1fc426 ChangeLog 453 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 MD5 99d00a17633bbfb2c97ebcd11dec6e9a pytraffic-1.2.1.ebuild 992 +MD5 6b60e4f1979f38836be0bd51bcde4225 pytraffic-2.0.ebuild 824 MD5 435a1b2a65ae7fc35c83fbeb7397d829 files/1.2.1-gentoo-dirs.patch 1730 MD5 23d02af40cdc1e4ebd9234573e05b7c2 files/digest-pytraffic-1.2.1 67 +MD5 7be5b74960df3f7159e4914d8d10d3ba files/digest-pytraffic-2.0 65 +MD5 3a461a8258af9efb5d7772db7e2e8267 files/2.0-gentoo-dirs.patch 1735 diff --git a/games-kids/pytraffic/files/2.0-gentoo-dirs.patch b/games-kids/pytraffic/files/2.0-gentoo-dirs.patch new file mode 100644 index 000000000000..50afc0539e3e --- /dev/null +++ b/games-kids/pytraffic/files/2.0-gentoo-dirs.patch @@ -0,0 +1,40 @@ +diff -u -r pytraffic-2.0-orig/pytraffic pytraffic-2.0/pytraffic +--- pytraffic-2.0-orig/pytraffic 2005-06-11 14:44:32.000000000 -0300 ++++ pytraffic-2.0/pytraffic 2005-06-11 14:44:43.000000000 -0300 +@@ -1 +1 @@ +-exec python /usr/share/pytraffic2/Game.py ++exec python /usr/share/games/pytraffic2/Game.py +diff -u -r pytraffic-2.0-orig/pytraffic.desktop pytraffic-2.0/pytraffic.desktop +--- pytraffic-2.0-orig/pytraffic.desktop 2005-06-11 14:44:32.000000000 -0300 ++++ pytraffic-2.0/pytraffic.desktop 2005-06-11 14:45:04.000000000 -0300 +@@ -4,7 +4,7 @@ + X-Desktop-File-Install-Version=0.2 + Name=PyTraffic + Description=A Python version of the board game Rush Hour created by Binary Arts Coporation. +-Exec=/usr/bin/pytraffic ++Exec=pytraffic + Terminal=0 + Type=Application +-Icon=/usr/share/pytraffic2/ICNS/carNred64x64.png ++Icon=/usr/share/games/pytraffic2/ICNS/carNred64x64.png +diff -u -r pytraffic-2.0-orig/setup.py pytraffic-2.0/setup.py +--- pytraffic-2.0-orig/setup.py 2005-06-11 14:44:32.000000000 -0300 ++++ pytraffic-2.0/setup.py 2005-06-11 14:45:50.000000000 -0300 +@@ -47,7 +47,7 @@ + 'install_lib' : "c:\\"+version.install_leaf}
+ options['build_ext']={'compiler' : 'mingw32'}
+ else:
+- options['install']={'home' : "/usr/share/"+version.install_leaf,
++ options['install']={'home' : "/usr/share/games/"+version.install_leaf,
+ 'install_lib' : '$base',
+ 'install_data' : '$base'}
+ options['build_ext']={'compiler' : 'unix'}
+@@ -60,7 +60,7 @@ +
+ def main_command():
+ if os.name=='posix':
+- return [("/usr/bin",['pytraffic'])]
++ return [("/usr/games/bin",['pytraffic'])]
+ else:
+ return [(".",["WinGame.pyw"])]
+
diff --git a/games-kids/pytraffic/files/digest-pytraffic-2.0 b/games-kids/pytraffic/files/digest-pytraffic-2.0 new file mode 100644 index 000000000000..2e518f640bdf --- /dev/null +++ b/games-kids/pytraffic/files/digest-pytraffic-2.0 @@ -0,0 +1 @@ +MD5 7e07b7e837369ef7c06316e9684aa662 pytraffic-2.0.tar.gz 651455 diff --git a/games-kids/pytraffic/pytraffic-2.0.ebuild b/games-kids/pytraffic/pytraffic-2.0.ebuild new file mode 100644 index 000000000000..c07e111494ae --- /dev/null +++ b/games-kids/pytraffic/pytraffic-2.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-kids/pytraffic/pytraffic-2.0.ebuild,v 1.1 2005/06/11 18:03:06 fserb Exp $ + +inherit distutils eutils games + +DESCRIPTION="Python version of the board game Rush Hour" +HOMEPAGE="http://alpha.uhasselt.be/Research/Algebra/Members/pytraffic/" +SRC_URI="http://alpha.uhasselt.be/Research/Algebra/Members/pytraffic/${P}.tar.gz" + + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +# pytraffic doesn't work with pygtk-2.6 +DEPEND="dev-python/pygame + =dev-python/pygtk-2.4*" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}-gentoo-dirs.patch +} + +src_compile() { + distutils_src_compile +} + +src_install() { + DOCS="AUTHORS.txt CHANGELOG.txt PKG-INFO" + distutils_src_install + dohtml DOCS/* + prepgamesdirs +} + +pkg_postinst() { + distutils_pkg_postinst + games_pkg_postinst +} |