summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2009-01-25 21:47:00 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2009-01-25 21:47:00 +0000
commit913c4cf028f582d1ba816299cd85e94ed4a1dac9 (patch)
tree589761de3ee06572185c039ef06f65102c55fd0c /games-strategy/castle-combat
parentuse eapi2 functions (diff)
downloadgentoo-2-913c4cf028f582d1ba816299cd85e94ed4a1dac9.tar.gz
gentoo-2-913c4cf028f582d1ba816299cd85e94ed4a1dac9.tar.bz2
gentoo-2-913c4cf028f582d1ba816299cd85e94ed4a1dac9.zip
use src_prepare
(Portage version: 2.1.6.4/cvs/Linux 2.6.28.1 i686)
Diffstat (limited to 'games-strategy/castle-combat')
-rw-r--r--games-strategy/castle-combat/castle-combat-0.8.1.ebuild6
1 files changed, 2 insertions, 4 deletions
diff --git a/games-strategy/castle-combat/castle-combat-0.8.1.ebuild b/games-strategy/castle-combat/castle-combat-0.8.1.ebuild
index c71e4e675b72..31cd058647b1 100644
--- a/games-strategy/castle-combat/castle-combat-0.8.1.ebuild
+++ b/games-strategy/castle-combat/castle-combat-0.8.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/castle-combat/castle-combat-0.8.1.ebuild,v 1.5 2009/01/03 21:50:27 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/castle-combat/castle-combat-0.8.1.ebuild,v 1.6 2009/01/25 21:47:00 mr_bones_ Exp $
EAPI=2
inherit eutils games
@@ -18,9 +18,7 @@ RDEPEND="dev-python/twisted
media-libs/sdl-mixer[mikmod]
dev-python/pygame"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+src_prepare() {
sed -i "s:src:$(games_get_libdir)/${PN}:" ${PN}.py \
|| die "sed ${PN}.py failed"
sed -i "/data_path =/s:\"data:\"${GAMES_DATADIR}/${PN}:" src/common.py \