* [gentoo-commits] gentoo-x86 commit in games-action/rafkill: rafkill-1.2.3.ebuild
@ 2009-11-23 1:40 Michael Sterrett (mr_bones_)
0 siblings, 0 replies; only message in thread
From: Michael Sterrett (mr_bones_) @ 2009-11-23 1:40 UTC (permalink / raw
To: gentoo-commits
mr_bones_ 09/11/23 01:40:57
Modified: rafkill-1.2.3.ebuild
Log:
just pass -j to scons from MAKEOPTS
(Portage version: 2.1.6.13/cvs/Linux i686)
Revision Changes Path
1.4 games-action/rafkill/rafkill-1.2.3.ebuild
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/rafkill/rafkill-1.2.3.ebuild?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/rafkill/rafkill-1.2.3.ebuild?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/rafkill/rafkill-1.2.3.ebuild?r1=1.3&r2=1.4
Index: rafkill-1.2.3.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/games-action/rafkill/rafkill-1.2.3.ebuild,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- rafkill-1.2.3.ebuild 30 Apr 2008 16:46:31 -0000 1.3
+++ rafkill-1.2.3.ebuild 23 Nov 2009 01:40:57 -0000 1.4
@@ -1,7 +1,8 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/rafkill/rafkill-1.2.3.ebuild,v 1.3 2008/04/30 16:46:31 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-action/rafkill/rafkill-1.2.3.ebuild,v 1.4 2009/11/23 01:40:57 mr_bones_ Exp $
+EAPI=2
inherit eutils toolchain-funcs games
DESCRIPTION="space shoot-em-up game"
@@ -18,20 +19,21 @@
DEPEND="${RDEPEND}
dev-util/scons"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+src_prepare() {
rm -f {data,music}/.sconsign
epatch \
"${FILESDIR}"/${P}-build.patch \
"${FILESDIR}"/${P}-gcc43.patch
- sed -i "/^#define INSTALL_DIR/s:\.:${GAMES_DATADIR}:" \
- src/defs.cpp || die "sed failed"
+ sed -i \
+ -e "/^#define INSTALL_DIR/s:\.:${GAMES_DATADIR}:" \
+ src/defs.cpp \
+ || die "sed failed"
}
src_compile() {
- tc-export CXX
- scons || die "scons failed"
+ local sconsopts=$(echo "${MAKEOPTS}" | sed -ne "/-j/ { s/.*\(-j[[:space:]]*[0-9]\+\).*/\1/; p }")
+
+ scons ${sconsopts} || die "scons failed"
}
src_install() {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-11-23 1:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-23 1:40 [gentoo-commits] gentoo-x86 commit in games-action/rafkill: rafkill-1.2.3.ebuild Michael Sterrett (mr_bones_)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox