From ead8c2b4964caf13602a590438f34053119c33ce Mon Sep 17 00:00:00 2001 From: Tristan Heaven Date: Mon, 11 Jun 2007 16:42:06 +0000 Subject: Don't use egamesinstall (Portage version: 2.1.2.9) --- games-strategy/xconq/xconq-7.4.1.ebuild | 40 ++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 16 deletions(-) (limited to 'games-strategy/xconq/xconq-7.4.1.ebuild') diff --git a/games-strategy/xconq/xconq-7.4.1.ebuild b/games-strategy/xconq/xconq-7.4.1.ebuild index 6f142c508880..573831ea8ac2 100644 --- a/games-strategy/xconq/xconq-7.4.1.ebuild +++ b/games-strategy/xconq/xconq-7.4.1.ebuild @@ -1,6 +1,6 @@ -# 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-strategy/xconq/xconq-7.4.1.ebuild,v 1.10 2006/12/06 21:12:09 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/xconq/xconq-7.4.1.ebuild,v 1.11 2007/06/11 16:42:06 nyhm Exp $ inherit eutils games @@ -10,37 +10,45 @@ SRC_URI="ftp://sources.redhat.com/pub/xconq/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="x86 ppc" +KEYWORDS="ppc x86" IUSE="" +RESTRICT="test" -RDEPEND="x11-libs/libXmu +DEPEND="x11-libs/libXmu + x11-libs/libXaw dev-lang/tk dev-lang/tcl" -DEPEND="${RDEPEND} - x11-libs/libXaw" src_unpack() { unpack ${A} - cd ${S} - epatch ${FILESDIR}/${PN}-gcc-3.4.patch \ - ${FILESDIR}/${PN}-tkconq.patch + cd "${S}" + epatch \ + "${FILESDIR}"/${PN}-gcc-3.4.patch \ + "${FILESDIR}"/${PN}-tkconq.patch } src_compile() { egamesconf \ - --enable-alternate-scoresdir=${GAMES_STATEDIR}/${PN}/scores \ + --enable-alternate-scoresdir="${GAMES_STATEDIR}"/${PN} \ || die emake \ CFLAGS="${CFLAGS}" \ - datadir=${GAMES_DATADIR}/${PN} \ + datadir="${GAMES_DATADIR}"/${PN} \ || die "emake failed" } src_install() { - dodir ${GAMES_STATEDIR}/${PN} ${GAMES_DATADIR}/${PN} - egamesinstall \ - scoresdir=${D}/${GAMES_STATEDIR}/${PN}/scores \ - datadir=${D}/${GAMES_DATADIR}/${PN} \ - || die + dogamesbin x11/{imf2x,x2imf,xconq,ximfapp} || die "dogamesbin failed" + + insinto "${GAMES_DATADIR}"/${PN} + doins -r images lib tcltk/*.tcl || die "doins failed" + rm -f "${D}/${GAMES_DATADIR}"/${PN}/{images,lib}/{m,M}ake* + + dodir "${GAMES_STATEDIR}"/${PN} + touch "${D}/${GAMES_STATEDIR}"/${PN}/scores.xcq + fperms 660 "${GAMES_STATEDIR}"/${PN}/scores.xcq || die + + doman x11/${PN}.6 + dodoc ChangeLog NEWS README prepgamesdirs } -- cgit v1.2.3-65-gdbad