diff options
-rw-r--r-- | games-puzzle/pathological/pathological-1.1.3-r1.ebuild | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/games-puzzle/pathological/pathological-1.1.3-r1.ebuild b/games-puzzle/pathological/pathological-1.1.3-r1.ebuild index f5ce21baba19..5ed887c8512e 100644 --- a/games-puzzle/pathological/pathological-1.1.3-r1.ebuild +++ b/games-puzzle/pathological/pathological-1.1.3-r1.ebuild @@ -1,12 +1,12 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 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-r1.ebuild,v 1.4 2006/10/20 00:23:05 nyhm Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/pathological/pathological-1.1.3-r1.ebuild,v 1.5 2007/04/04 17:56:32 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/pathological/${P}.tar.gz" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" @@ -34,18 +34,19 @@ src_unpack() { sed -i \ -e "s:/usr/share/games:${GAMES_DATADIR}:" \ - pathological || die "sed pathological failed" + -e "s:/var/games:${GAMES_STATEDIR}:" \ + -e "s:exec:exec python:" \ + ${PN} || die "sed ${PN} failed" sed -i \ - -e "s:/usr/lib/pathological/bin:${GAMES_LIBDIR}/${PN}:" \ - -e "s:/var/games:${GAMES_STATEDIR}:" \ - pathological.py || die "sed pathological.py failed" + -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_LIBDIR}"/${PN} + exeinto "$(games_get_libdir)"/${PN} doexe write-highscores || die "doexe failed" insinto "${GAMES_DATADIR}"/${PN} @@ -53,6 +54,7 @@ src_install() { insinto "${GAMES_STATEDIR}" doins ${PN}_scores || die "doins scores failed" + fperms 660 "${GAMES_STATEDIR}"/${PN}_scores dodoc changelog README TODO doman ${PN}.6 @@ -63,8 +65,5 @@ src_install() { # remove some unneeded resource files rm -f "${D}/${GAMES_DATADIR}"/${PN}/graphics/*.xcf - - fperms 660 "${GAMES_STATEDIR}"/${PN}_scores - fperms 750 "${GAMES_DATADIR}"/${PN}/${PN}.py prepgamesdirs } |