diff options
author | Tristan Heaven <tristan@gentoo.org> | 2008-12-05 18:58:43 +0000 |
---|---|---|
committer | Tristan Heaven <tristan@gentoo.org> | 2008-12-05 18:58:43 +0000 |
commit | 5dfbe1a6c7687bf41497d6ed5fc3be7b5f688466 (patch) | |
tree | 9a0b9f609d5b3b797092bb155528161538b9077c /games-arcade/ascii-invaders/ascii-invaders-0.1b.ebuild | |
parent | Respect CC and LDFLAGS, bug #244068 (diff) | |
download | historical-5dfbe1a6c7687bf41497d6ed5fc3be7b5f688466.tar.gz historical-5dfbe1a6c7687bf41497d6ed5fc3be7b5f688466.tar.bz2 historical-5dfbe1a6c7687bf41497d6ed5fc3be7b5f688466.zip |
Respect CC and LDFLAGS, bug #244058
Package-Manager: portage-2.2_rc17/cvs/Linux 2.6.27.7 i686
Diffstat (limited to 'games-arcade/ascii-invaders/ascii-invaders-0.1b.ebuild')
-rw-r--r-- | games-arcade/ascii-invaders/ascii-invaders-0.1b.ebuild | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/games-arcade/ascii-invaders/ascii-invaders-0.1b.ebuild b/games-arcade/ascii-invaders/ascii-invaders-0.1b.ebuild index 434889c400e1..7ba302e20f69 100644 --- a/games-arcade/ascii-invaders/ascii-invaders-0.1b.ebuild +++ b/games-arcade/ascii-invaders/ascii-invaders-0.1b.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-arcade/ascii-invaders/ascii-invaders-0.1b.ebuild,v 1.18 2007/04/09 21:46:38 welp Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-arcade/ascii-invaders/ascii-invaders-0.1b.ebuild,v 1.19 2008/12/05 18:58:43 nyhm Exp $ -inherit games +inherit toolchain-funcs games DESCRIPTION="Space invaders clone, using ncurses library" HOMEPAGE="http://www.ip9.org/munro/invaders/" @@ -20,13 +20,15 @@ S=${WORKDIR}/invaders src_unpack() { unpack ${A} cd "${S}" - sed -i \ - -e 's/-lcurses/-lncurses/g' Makefile \ - || die "sed failed" + rm -f Makefile +} + +src_compile() { + emake CC="$(tc-getCC)" LDLIBS=-lncurses invaders || die "emake failed" } src_install() { - dogamesbin ascii_invaders || die "dogamesbin failed" + newgamesbin invaders ${PN} || die "newgamesbin failed" dodoc TODO prepgamesdirs } |