summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2008-02-04 21:45:50 +0000
committerTristan Heaven <nyhm@gentoo.org>2008-02-04 21:45:50 +0000
commit3494f66f5ff39ac7f8083b50d7b69bc04d13afb2 (patch)
tree4d6ecea56a0bac9b02dbebfbe3c56a2acadc8f9d /games-puzzle/pathological
parentMove sh to common kernel ebuilds. (diff)
downloadgentoo-2-3494f66f5ff39ac7f8083b50d7b69bc04d13afb2.tar.gz
gentoo-2-3494f66f5ff39ac7f8083b50d7b69bc04d13afb2.tar.bz2
gentoo-2-3494f66f5ff39ac7f8083b50d7b69bc04d13afb2.zip
Fix Python SyntaxError
(Portage version: 2.1.4.1)
Diffstat (limited to 'games-puzzle/pathological')
-rw-r--r--games-puzzle/pathological/ChangeLog10
-rw-r--r--games-puzzle/pathological/pathological-1.1.3-r2.ebuild70
2 files changed, 78 insertions, 2 deletions
diff --git a/games-puzzle/pathological/ChangeLog b/games-puzzle/pathological/ChangeLog
index 56bbaea597f3..cef066d4c9fc 100644
--- a/games-puzzle/pathological/ChangeLog
+++ b/games-puzzle/pathological/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-puzzle/pathological
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/pathological/ChangeLog,v 1.12 2006/10/20 00:23:05 nyhm Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/pathological/ChangeLog,v 1.13 2008/02/04 21:45:50 nyhm Exp $
+
+*pathological-1.1.3-r2 (04 Feb 2008)
+
+ 04 Feb 2008; Tristan Heaven <nyhm@gentoo.org>
+ +pathological-1.1.3-r2.ebuild:
+ Fix Python SyntaxError
20 Oct 2006; Tristan Heaven <nyhm@gentoo.org>
pathological-1.1.3-r1.ebuild:
diff --git a/games-puzzle/pathological/pathological-1.1.3-r2.ebuild b/games-puzzle/pathological/pathological-1.1.3-r2.ebuild
new file mode 100644
index 000000000000..21323036cd9a
--- /dev/null
+++ b/games-puzzle/pathological/pathological-1.1.3-r2.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/pathological/pathological-1.1.3-r2.ebuild,v 1.1 2008/02/04 21:45:50 nyhm Exp $
+
+inherit eutils games
+
+DESCRIPTION="An enriched clone of the game 'Logical' by Rainbow Arts"
+HOMEPAGE="http://pathological.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
+IUSE="doc"
+
+DEPEND="doc? ( media-libs/netpbm )"
+RDEPEND=">=dev-python/pygame-1.5.5"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ unpack ./${PN}.6.gz
+
+ epatch "${FILESDIR}"/${P}-build.patch
+ epatch "${FILESDIR}"/${P}-music-py.patch
+
+ if use doc ; then
+ sed -i \
+ -e '5,$ s/=/ /g' makehtml \
+ || die "sed makehtml failed"
+ else
+ echo "#!/bin/sh" > makehtml
+ fi
+
+ sed -i \
+ -e "s:/usr/share/games:${GAMES_DATADIR}:" \
+ -e "s:/var/games:${GAMES_STATEDIR}:" \
+ -e "s:exec:exec python:" \
+ ${PN} || die "sed ${PN} failed"
+
+ sed -i \
+ -e 's:\xa9:(C):' \
+ -e "s:/usr/lib/${PN}/bin:$(games_get_libdir)/${PN}:" \
+ ${PN}.py || die "sed ${PN}.py failed"
+}
+
+src_install() {
+ dogamesbin ${PN} || die "dogamesbin failed"
+
+ exeinto "$(games_get_libdir)"/${PN}
+ doexe write-highscores || die "doexe failed"
+
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r circuits graphics music sounds ${PN}.py || die "doins data failed"
+
+ insinto "${GAMES_STATEDIR}"
+ doins ${PN}_scores || die "doins scores failed"
+ fperms 660 "${GAMES_STATEDIR}"/${PN}_scores
+
+ dodoc changelog README TODO
+ doman ${PN}.6
+ use doc && dohtml -r html/*
+
+ doicon ${PN}.xpm
+ make_desktop_entry ${PN} Pathological ${PN}.xpm
+
+ # remove some unneeded resource files
+ rm -f "${D}/${GAMES_DATADIR}"/${PN}/graphics/*.xcf
+ prepgamesdirs
+}