# ChangeLog for games-action/heroes
-# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/heroes/ChangeLog,v 1.4 2003/11/04 22:27:00 weeve Exp $
+# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/heroes/ChangeLog,v 1.5 2004/06/03 06:17:35 mr_bones_ Exp $
+
+ 02 Jun 2004; Michael Sterrett <mr_bones_@gentoo.org> heroes-0.21.ebuild:
+ fix up use invocation
04 Nov 2003; Jason Wever <weeve@gentoo.org> heroes-0.21.ebuild:
Added ggi to IUSE, thanks to ciaranm from #gentoo-sparc for pointing it out.
-MD5 629b186fe097d16cc43e4748d648acf0 files/digest-heroes-0.21 286
-MD5 668f037dabf211c579350cfb1fa627c3 ChangeLog 1951
-MD5 66153816c6a5da17723e2e8535248b63 heroes-0.21.ebuild 1592
+MD5 c11bcd36d2a507447bea4e41888d65f8 ChangeLog 2054
+MD5 ba080882455ae67f2072eb915bb3825a heroes-0.21.ebuild 1587
MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
+MD5 629b186fe097d16cc43e4748d648acf0 files/digest-heroes-0.21 286
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/heroes/heroes-0.21.ebuild,v 1.5 2004/03/14 18:26:04 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-action/heroes/heroes-0.21.ebuild,v 1.6 2004/06/03 06:17:35 mr_bones_ Exp $
inherit games
sdl? ( media-libs/libsdl media-libs/sdl-mixer )
ggi? ( media-libs/libggi media-libs/libgii media-libs/libmikmod )"
-S=${WORKDIR}
+S="${WORKDIR}"
pkg_setup() {
- [ -z "`use sdl``use ggi`" ] \
- && die "You must have sdl or ggi in your USE variable" \
- || return 0
+ if use !sdl && use !ggi ; then
+ die "You must have sdl or ggi in your USE variable"
+ fi
+ return 0
}
src_compile() {
- local myconf="--disable-heroes-debug `use_enable nls`"
+ local myconf="--disable-heroes-debug $(use_enable nls)"
- if [ `use sdl` ] ; then
+ if use sdl ; then
myconf="${myconf} --with-sdl --with-sdl-mixer"
else
myconf="${myconf} --with-ggi --with-mikmod"