summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-06-13 09:59:30 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-06-13 09:59:30 +0000
commit2eda8372dceac494289a701e9de7df5aa6ada62b (patch)
tree21509d292f50c1a91589f98ea4b3bc26b93c670e /games-puzzle
parentVersion bump. (diff)
downloadgentoo-2-2eda8372dceac494289a701e9de7df5aa6ada62b.tar.gz
gentoo-2-2eda8372dceac494289a701e9de7df5aa6ada62b.tar.bz2
gentoo-2-2eda8372dceac494289a701e9de7df5aa6ada62b.zip
fix python handling wrt #473126
(Portage version: 2.2.0_alpha179/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/pathological/ChangeLog10
-rw-r--r--games-puzzle/pathological/pathological-1.1.3-r3.ebuild96
2 files changed, 104 insertions, 2 deletions
diff --git a/games-puzzle/pathological/ChangeLog b/games-puzzle/pathological/ChangeLog
index bc1c3594c81c..e0551a3db3f8 100644
--- a/games-puzzle/pathological/ChangeLog
+++ b/games-puzzle/pathological/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-puzzle/pathological
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/pathological/ChangeLog,v 1.21 2012/09/04 22:05:37 mr_bones_ Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/pathological/ChangeLog,v 1.22 2013/06/13 09:59:30 hasufell Exp $
+
+*pathological-1.1.3-r3 (13 Jun 2013)
+
+ 13 Jun 2013; Julian Ospald <hasufell@gentoo.org>
+ +pathological-1.1.3-r3.ebuild:
+ fix python handling wrt #473126
04 Sep 2012; Michael Sterrett <mr_bones_@gentoo.org>
pathological-1.1.3-r2.ebuild:
diff --git a/games-puzzle/pathological/pathological-1.1.3-r3.ebuild b/games-puzzle/pathological/pathological-1.1.3-r3.ebuild
new file mode 100644
index 000000000000..3079d386fe12
--- /dev/null
+++ b/games-puzzle/pathological/pathological-1.1.3-r3.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2013 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-r3.ebuild,v 1.1 2013/06/13 09:59:30 hasufell Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_5 python2_6 python2_7 )
+inherit eutils python-single-r1 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"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ app-shells/bash
+ >=dev-python/pygame-1.5.5[${PYTHON_USEDEP}]"
+DEPEND="${PYTHON_DEPS}
+ doc? ( media-libs/netpbm )"
+
+pkg_setup() {
+ games_pkg_setup
+ python-single-r1_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}" || die
+ unpack ./${PN}.6.gz
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-build.patch \
+ "${FILESDIR}"/${P}-music-py.patch
+
+ if use doc ; then
+ sed -i -e '5,$ s/=/ /g' makehtml || die
+ 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 ${EPYTHON}:" \
+ ${PN} || die
+
+ sed -i \
+ -e 's:\xa9:(C):' \
+ -e "s:/usr/lib/${PN}/bin:$(games_get_libdir)/${PN}:" \
+ ${PN}.py || die
+
+ python_fix_shebang ${PN}.py
+}
+
+src_install() {
+ dogamesbin ${PN}
+
+ exeinto "$(games_get_libdir)"/${PN}
+ doexe write-highscores
+
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r circuits graphics music sounds ${PN}.py
+
+ insinto "${GAMES_STATEDIR}"
+ doins ${PN}_scores
+ 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}
+
+ # remove some unneeded resource files
+ rm -f "${D}/${GAMES_DATADIR}"/${PN}/graphics/*.xcf
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ if ! has_version "media-libs/sdl-mixer[mod]" ; then
+ echo
+ elog "Since you have turned off the 'mod' use flag for media-libs/sdl-mixer"
+ elog "no background music will be played."
+ echo
+ fi
+
+}