diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2009-01-08 21:56:40 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2009-01-08 21:56:40 +0000 |
commit | 66bb96e6e03be9f2ee21a2bfcebf51069f4e57b0 (patch) | |
tree | dd2f31d858287ba745e7a0158bed18fd4c5b3101 /games-rpg/xu4/xu4-0.9.ebuild | |
parent | Fix dependency on tuxonice-userui-0.7.2 for TOI 3.0-rc7 based kernels. (diff) | |
download | gentoo-2-66bb96e6e03be9f2ee21a2bfcebf51069f4e57b0.tar.gz gentoo-2-66bb96e6e03be9f2ee21a2bfcebf51069f4e57b0.tar.bz2 gentoo-2-66bb96e6e03be9f2ee21a2bfcebf51069f4e57b0.zip |
EAPI=2; add use-based dep for media-libs/sdl-mixer
(Portage version: 2.1.6.4/cvs/Linux 2.6.27.8 i686)
Diffstat (limited to 'games-rpg/xu4/xu4-0.9.ebuild')
-rw-r--r-- | games-rpg/xu4/xu4-0.9.ebuild | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/games-rpg/xu4/xu4-0.9.ebuild b/games-rpg/xu4/xu4-0.9.ebuild index 1f9bbd13005a..007f14db36de 100644 --- a/games-rpg/xu4/xu4-0.9.ebuild +++ b/games-rpg/xu4/xu4-0.9.ebuild @@ -1,7 +1,8 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/xu4/xu4-0.9.ebuild,v 1.7 2007/10/30 06:59:17 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-rpg/xu4/xu4-0.9.ebuild,v 1.8 2009/01/08 21:56:40 mr_bones_ Exp $ +EAPI=2 inherit eutils games DESCRIPTION="A remake of the computer game Ultima IV" @@ -12,25 +13,17 @@ SRC_URI="mirror://sourceforge/xu4/${P}.tar.gz LICENSE="GPL-2" SLOT="0" -KEYWORDS="x86 ~ppc ~amd64" +KEYWORDS="~amd64 ~ppc x86" IUSE="" RDEPEND="dev-libs/libxml2 - media-libs/sdl-mixer + media-libs/sdl-mixer[timidity] media-libs/libsdl" DEPEND="${RDEPEND} app-arch/unzip" S=${WORKDIR}/u4 -pkg_setup() { - if ! built_with_use media-libs/sdl-mixer timidity ; then - eerror "${PN} needs sdl-mixer compiled with timidity use-flag enabled!" - die "sdl-mixer without timidity detected" - fi - games_pkg_setup -} - src_unpack() { # xu4 will read the data files right out of the zip files # but we want the docs from the original. @@ -42,7 +35,8 @@ src_unpack() { mkdir u4-dos cd u4-dos unzip -q ../ultima4.zip || die "unzip failed" - cd "${S}" +} +src_prepare() { epatch "${FILESDIR}/${PV}-savegame.patch" sed -i \ -e "s:/usr/local/lib/u4:$(games_get_libdir)/u4:" src/u4file.c \ |