summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2005-02-18 02:08:33 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2005-02-18 02:08:33 +0000
commit8d9daf31f0e4f98c2830c8fa50721573e13ffee5 (patch)
treef84d738d23312bd62abade6abf1b6109c233246d /games-arcade
parentAdded global "USE" flag "emboss". (diff)
downloadgentoo-2-8d9daf31f0e4f98c2830c8fa50721573e13ffee5.tar.gz
gentoo-2-8d9daf31f0e4f98c2830c8fa50721573e13ffee5.tar.bz2
gentoo-2-8d9daf31f0e4f98c2830c8fa50721573e13ffee5.zip
sed in unpack; tidy
(Portage version: 2.0.51-r15)
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/xtux/ChangeLog7
-rw-r--r--games-arcade/xtux/xtux-20030306.ebuild32
2 files changed, 22 insertions, 17 deletions
diff --git a/games-arcade/xtux/ChangeLog b/games-arcade/xtux/ChangeLog
index 0d49e1e7611e..7c5ff5a784a6 100644
--- a/games-arcade/xtux/ChangeLog
+++ b/games-arcade/xtux/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for games-arcade/xtux
-# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/xtux/ChangeLog,v 1.6 2004/08/30 23:39:58 dholm Exp $
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/xtux/ChangeLog,v 1.7 2005/02/18 02:08:33 mr_bones_ Exp $
+
+ 17 Feb 2005; Michael Sterrett <mr_bones_@gentoo.org> xtux-20030306.ebuild:
+ sed in unpack; tidy
31 Aug 2004; David Holm <dholm@gentoo.org> xtux-20030306.ebuild:
Added to ~ppc.
diff --git a/games-arcade/xtux/xtux-20030306.ebuild b/games-arcade/xtux/xtux-20030306.ebuild
index d99bbdaab3db..bcf81255e7fe 100644
--- a/games-arcade/xtux/xtux-20030306.ebuild
+++ b/games-arcade/xtux/xtux-20030306.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/xtux/xtux-20030306.ebuild,v 1.8 2004/08/30 23:39:58 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/xtux/xtux-20030306.ebuild,v 1.9 2005/02/18 02:08:33 mr_bones_ Exp $
inherit games
@@ -10,28 +10,30 @@ SRC_URI="mirror://sourceforge/xtux/xtux-src-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="x86 amd64 ~ppc"
+KEYWORDS="amd64 ~ppc x86"
IUSE=""
-RDEPEND="virtual/x11"
-DEPEND="${RDEPEND}
- >=sys-apps/sed-4"
+DEPEND="virtual/x11"
-S="${WORKDIR}/${PN}"
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i \
+ -e "s:-g -Wall -O2:${CFLAGS}:" \
+ src/{client,common,server}/Makefile \
+ || die "sed failed"
+}
src_compile() {
- for f in src/{client,common,server}/Makefile ; do
- sed -i \
- -e "s:-g -Wall -O2:${CFLAGS}:" ${f} \
- || die "sed ${F} failed"
- done
emake DATADIR="${GAMES_DATADIR}/xtux/data" || die "emake failed"
}
src_install () {
- dogamesbin xtux tux_serv
- dodir ${GAMES_DATADIR}/xtux
- cp -r data ${D}/${GAMES_DATADIR}/xtux/
+ dogamesbin xtux tux_serv || die "dogamesbin failed"
+ dodir "${GAMES_DATADIR}/xtux"
+ cp -r data "${D}/${GAMES_DATADIR}/xtux/" || die "cp failed"
dodoc AUTHORS CHANGELOG README README.GGZ doc/*
prepgamesdirs
}