summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-12-31 06:13:07 +0000
committerMike Frysinger <vapier@gentoo.org>2004-12-31 06:13:07 +0000
commit6f9641b997df6f7058dc165deca6010b01dba496 (patch)
tree0992496f8d17dfe98db73a60a8cf6bea917e455d /games-kids/pytraffic/pytraffic-1.2.1.ebuild
parentAdded ~sparc keyword. (diff)
downloadhistorical-6f9641b997df6f7058dc165deca6010b01dba496.tar.gz
historical-6f9641b997df6f7058dc165deca6010b01dba496.tar.bz2
historical-6f9641b997df6f7058dc165deca6010b01dba496.zip
merge fixes from #76204
Diffstat (limited to 'games-kids/pytraffic/pytraffic-1.2.1.ebuild')
-rw-r--r--games-kids/pytraffic/pytraffic-1.2.1.ebuild18
1 files changed, 13 insertions, 5 deletions
diff --git a/games-kids/pytraffic/pytraffic-1.2.1.ebuild b/games-kids/pytraffic/pytraffic-1.2.1.ebuild
index 24a0dd9c60f6..0327e7134286 100644
--- a/games-kids/pytraffic/pytraffic-1.2.1.ebuild
+++ b/games-kids/pytraffic/pytraffic-1.2.1.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/games-kids/pytraffic/pytraffic-1.2.1.ebuild,v 1.1 2004/12/30 11:06:00 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-kids/pytraffic/pytraffic-1.2.1.ebuild,v 1.2 2004/12/31 06:13:07 vapier Exp $
-inherit games distutils
+inherit distutils games
DESCRIPTION="Python version of the board game Rush Hour"
HOMEPAGE="http://alpha.luc.ac.be/Research/Algebra/Members/pytraffic"
@@ -22,7 +22,7 @@ S="${WORKDIR}/PyTraffic-${PV}"
src_unpack() {
unpack ${A}
cd ${S}
- epatch ${FILESDIR}/1.2-gentoo-dirs.patch
+ epatch ${FILESDIR}/${PV}-gentoo-dirs.patch
}
src_compile() {
@@ -31,8 +31,16 @@ src_compile() {
}
src_install() {
- DDOCS="AUTHORS.txt CHANGELOG.txt PKG-INFO"
+ DOCS="AUTHORS.txt CHANGELOG.txt PKG-INFO"
distutils_src_install
dohtml DOCS/*
prepgamesdirs
}
+
+pkg_postinst() {
+ if has_version ">=dev-lang/python-2.3"; then
+ python_version
+ python_mod_optimize ${ROOT}usr/share/games/${PN}12
+ fi
+ games_pkg_postinst
+}