summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAron Griffis <agriffis@gentoo.org>2004-06-07 03:45:54 +0000
committerAron Griffis <agriffis@gentoo.org>2004-06-07 03:45:54 +0000
commitcfedb6c2fb57d1aea43eee61bcf0ea0359af4b74 (patch)
tree74b41904eb6d3db77b9dbe0e4fb7858d90fa7e1e /games-emulation
parent0.7.4 - x86 keyword. Version bump. removed old version (diff)
downloadhistorical-cfedb6c2fb57d1aea43eee61bcf0ea0359af4b74.tar.gz
historical-cfedb6c2fb57d1aea43eee61bcf0ea0359af4b74.tar.bz2
historical-cfedb6c2fb57d1aea43eee61bcf0ea0359af4b74.zip
Fix use invocation
Diffstat (limited to 'games-emulation')
-rw-r--r--games-emulation/darcnes/ChangeLog6
-rw-r--r--games-emulation/darcnes/Manifest6
-rw-r--r--games-emulation/darcnes/darcnes-0401-r1.ebuild8
-rw-r--r--games-emulation/darcnes/darcnes-0401-r2.ebuild13
4 files changed, 22 insertions, 11 deletions
diff --git a/games-emulation/darcnes/ChangeLog b/games-emulation/darcnes/ChangeLog
index 4d7073b94c31..7a4186cf5770 100644
--- a/games-emulation/darcnes/ChangeLog
+++ b/games-emulation/darcnes/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-emulation/darcnes
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/darcnes/ChangeLog,v 1.5 2004/05/11 00:57:01 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/darcnes/ChangeLog,v 1.6 2004/06/07 03:45:54 agriffis Exp $
+
+ 06 Jun 2004; Aron Griffis <agriffis@gentoo.org> darcnes-0401-r1.ebuild,
+ darcnes-0401-r2.ebuild:
+ Fix use invocation
10 May 2004; Michael Sterrett <mr_bones_@gentoo.org> darcnes-0401-r2.ebuild:
again with the use fun and games
diff --git a/games-emulation/darcnes/Manifest b/games-emulation/darcnes/Manifest
index da816c50e78f..f944b70aa316 100644
--- a/games-emulation/darcnes/Manifest
+++ b/games-emulation/darcnes/Manifest
@@ -1,6 +1,6 @@
-MD5 c2610be064fa7a1bb56fdeb971adebc6 ChangeLog 1490
-MD5 7f6155f0786188d3690e0be05de7e745 darcnes-0401-r1.ebuild 1136
+MD5 f3f8c2cfd169d101e7f57821fdd5f3fc darcnes-0401-r2.ebuild 1411
+MD5 f050b7a3fc0fdb9a3ea0dc144e5f38bb darcnes-0401-r1.ebuild 1110
+MD5 9af2f62634955d5a2ceba714410e2e71 ChangeLog 1610
MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
-MD5 7c7c208cfd752958031d5d83c74c9291 darcnes-0401-r2.ebuild 1343
MD5 97092964e106d48cc1b417ed92a14ed7 files/digest-darcnes-0401-r1 57
MD5 97092964e106d48cc1b417ed92a14ed7 files/digest-darcnes-0401-r2 57
diff --git a/games-emulation/darcnes/darcnes-0401-r1.ebuild b/games-emulation/darcnes/darcnes-0401-r1.ebuild
index ede722bb47f1..5f06d50901b6 100644
--- a/games-emulation/darcnes/darcnes-0401-r1.ebuild
+++ b/games-emulation/darcnes/darcnes-0401-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/darcnes/darcnes-0401-r1.ebuild,v 1.2 2004/02/20 06:26:47 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/darcnes/darcnes-0401-r1.ebuild,v 1.3 2004/06/07 03:45:54 agriffis Exp $
DESCRIPTION="A multi-system emulator"
SRC_URI="http://www.dridus.com/~nyef/darcnes/download/dn9b${PV}.tgz"
@@ -23,9 +23,9 @@ src_compile() {
cat cd_unix.c.orig | sed "s:CDROM_DEVICE \"/dev/cdrom\"$:CDROM_DEVICE \"/dev/cdroms/cdrom0\":"\
> cd_unix.c
cp Makefile Makefile.orig
- if [ "`use X`" ]
+ if use X
then
- if [ "`use gtk`" ]
+ if use gtk
then
cat Makefile.orig | sed "s:^TARGET?=Linux_X$:TARGET?=Linux_GTK:" \
> Makefile
@@ -41,7 +41,7 @@ src_compile() {
src_install() {
exeinto /usr/bin
doexe sdarcnes
- if [ "`use X`" ]
+ if use X
then
exeinto /usr/bin
doexe darcnes
diff --git a/games-emulation/darcnes/darcnes-0401-r2.ebuild b/games-emulation/darcnes/darcnes-0401-r2.ebuild
index 759235d1bd12..dbbbd9226744 100644
--- a/games-emulation/darcnes/darcnes-0401-r2.ebuild
+++ b/games-emulation/darcnes/darcnes-0401-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/darcnes/darcnes-0401-r2.ebuild,v 1.3 2004/05/11 00:57:01 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/darcnes/darcnes-0401-r2.ebuild,v 1.4 2004/06/07 03:45:54 agriffis Exp $
inherit games
@@ -22,6 +22,13 @@ DEPEND="svga? ( >=media-libs/svgalib-1.4.2 )
S="${WORKDIR}/${PN}"
+pkg_setup() {
+ export build_X=true
+ use svga && build_X=false
+ use gtk && build_X=false
+ use X && build_X=true
+}
+
src_compile() {
if use svga ; then
emake TARGET=Linux_svgalib OPTFLAGS="${CFLAGS}" || \
@@ -31,7 +38,7 @@ src_compile() {
emake BINFILE=gdarcnes TARGET=Linux_GTK OPTFLAGS="${CFLAGS}" || \
die "compile target Linux_GTK failed"
fi
- if use X || use !svga && use !gtk ; then
+ if $build_X ; then
emake TARGET=Linux_X OPTFLAGS="${CFLAGS}" || \
die "compile target Linux_X failed"
fi
@@ -44,7 +51,7 @@ src_install() {
if use gtk ; then
dogamesbin gdarcnes || die "dogamesbin failed (gtk)"
fi
- if use X || use !svga && use !gtk ; then
+ if $build_X ; then
dogamesbin darcnes || die "dogamesbin failed"
fi
dodoc readme