summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2007-02-25 15:39:21 +0000
committerTristan Heaven <nyhm@gentoo.org>2007-02-25 15:39:21 +0000
commit85339d11ea20fd77a5543e0a57438c46387b870a (patch)
tree69b3bd77a6685c9b1870632fd79e7013d71b9780 /games-puzzle/mirrormagic/mirrormagic-2.0.2.ebuild
parentRemove virtual/x11 usage wrt bug 166370. (diff)
downloadgentoo-2-85339d11ea20fd77a5543e0a57438c46387b870a.tar.gz
gentoo-2-85339d11ea20fd77a5543e0a57438c46387b870a.tar.bz2
gentoo-2-85339d11ea20fd77a5543e0a57438c46387b870a.zip
use doins
(Portage version: 2.1.2-r11)
Diffstat (limited to 'games-puzzle/mirrormagic/mirrormagic-2.0.2.ebuild')
-rw-r--r--games-puzzle/mirrormagic/mirrormagic-2.0.2.ebuild24
1 files changed, 11 insertions, 13 deletions
diff --git a/games-puzzle/mirrormagic/mirrormagic-2.0.2.ebuild b/games-puzzle/mirrormagic/mirrormagic-2.0.2.ebuild
index 4c0cf745efee..883f5f122ecd 100644
--- a/games-puzzle/mirrormagic/mirrormagic-2.0.2.ebuild
+++ b/games-puzzle/mirrormagic/mirrormagic-2.0.2.ebuild
@@ -1,16 +1,16 @@
-# 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/mirrormagic/mirrormagic-2.0.2.ebuild,v 1.17 2006/12/06 17:13:18 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/mirrormagic/mirrormagic-2.0.2.ebuild,v 1.18 2007/02/25 15:39:21 nyhm Exp $
-inherit eutils flag-o-matic games
+inherit eutils games
DESCRIPTION="a game like Deflektor (C 64) or Mindbender (Amiga)"
HOMEPAGE="http://www.artsoft.org/mirrormagic/"
-SRC_URI="http://www.artsoft.org/RELEASES/unix/mirrormagic/${P}.tar.gz"
+SRC_URI="http://www.artsoft.org/RELEASES/unix/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="x86 ~amd64 ppc"
+KEYWORDS="~amd64 ppc x86"
IUSE="sdl"
RDEPEND="!sdl? ( x11-libs/libX11 )
@@ -28,21 +28,19 @@ src_unpack() {
}
src_compile() {
- replace-flags -march=k6 -march=i586
-
local makeopts="X11_PATH=/usr/X11R6 RO_GAME_DIR=${GAMES_DATADIR}/${PN} RW_GAME_DIR=${GAMES_STATEDIR}/${PN}"
- make clean || die
+ emake clean || die
if use sdl ; then
- make ${makeopts} OPTIONS="${CFLAGS}" sdl || die
+ emake ${makeopts} OPTIONS="${CFLAGS}" sdl || die
else
- make ${makeopts} OPTIONS="${CFLAGS}" x11 || die
+ emake ${makeopts} OPTIONS="${CFLAGS}" x11 || die
fi
}
src_install() {
- dogamesbin mirrormagic || die "dogamesbin failed"
- dodir "${GAMES_DATADIR}/${PN}"
- cp -R graphics levels music sounds "${D}/${GAMES_DATADIR}/${PN}/"
+ dogamesbin ${PN} || die "dogamesbin failed"
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r graphics levels music sounds || die "doins failed"
dodoc CHANGES CREDITS README TODO
prepgamesdirs
}