diff options
author | Tristan Heaven <nyhm@gentoo.org> | 2007-04-25 21:03:41 +0000 |
---|---|---|
committer | Tristan Heaven <nyhm@gentoo.org> | 2007-04-25 21:03:41 +0000 |
commit | 8d6db82b1e7b2e7357f8987879e216ff85ea6639 (patch) | |
tree | f6548011243773a597dd1f61d720d3f39c8142ef /games-kids/pytraffic/pytraffic-2.5.4.ebuild | |
parent | Fix dependencies, tweak style. (diff) | |
download | gentoo-2-8d6db82b1e7b2e7357f8987879e216ff85ea6639.tar.gz gentoo-2-8d6db82b1e7b2e7357f8987879e216ff85ea6639.tar.bz2 gentoo-2-8d6db82b1e7b2e7357f8987879e216ff85ea6639.zip |
Version bump
(Portage version: 2.1.2.4)
Diffstat (limited to 'games-kids/pytraffic/pytraffic-2.5.4.ebuild')
-rw-r--r-- | games-kids/pytraffic/pytraffic-2.5.4.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/games-kids/pytraffic/pytraffic-2.5.4.ebuild b/games-kids/pytraffic/pytraffic-2.5.4.ebuild new file mode 100644 index 000000000000..6f17b5046506 --- /dev/null +++ b/games-kids/pytraffic/pytraffic-2.5.4.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2007 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.ebuild,v 1.1 2007/04/25 21:03:41 nyhm 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/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +RDEPEND="media-libs/sdl-mixer + >=dev-python/pygtk-2.4" + +src_compile() { + distutils_src_compile +} + +src_install() { + insinto "${GAMES_DATADIR}"/${PN} + doins -r doc config.db extra_themes icons libglade music sound_test \ + themes *.py ttraffic.levels || die "doins failed" + + exeinto "$(games_get_libdir)"/${PN} + doexe build/*/{_hint,_sdl_mixer}.so || die "doexe failed" + dosym {"$(games_get_libdir)","${GAMES_DATADIR}"}/${PN}/_hint.so \ + || die "dosym _hint.so failed" + dosym {"$(games_get_libdir)","${GAMES_DATADIR}"}/${PN}/_sdl_mixer.so \ + || die "dosym _sdl_mixer.so failed" + + games_make_wrapper ${PN} "python ./Main.py" "${GAMES_DATADIR}"/${PN} + doicon icons/64x64/${PN}.png + make_desktop_entry ${PN} PyTraffic + + dodoc AUTHORS CHANGELOG README + + rm -f "${D}/${GAMES_DATADIR}"/${PN}/setup.py + prepgamesdirs +} + +pkg_postinst() { + distutils_pkg_postinst + games_pkg_postinst +} |