summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2009-01-08 21:56:40 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2009-01-08 21:56:40 +0000
commit66bb96e6e03be9f2ee21a2bfcebf51069f4e57b0 (patch)
treedd2f31d858287ba745e7a0158bed18fd4c5b3101 /games-rpg
parentFix dependency on tuxonice-userui-0.7.2 for TOI 3.0-rc7 based kernels. (diff)
downloadgentoo-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')
-rw-r--r--games-rpg/xu4/ChangeLog7
-rw-r--r--games-rpg/xu4/xu4-0.9.ebuild20
2 files changed, 12 insertions, 15 deletions
diff --git a/games-rpg/xu4/ChangeLog b/games-rpg/xu4/ChangeLog
index 15be8ab6be74..04e46554fa45 100644
--- a/games-rpg/xu4/ChangeLog
+++ b/games-rpg/xu4/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for games-rpg/xu4
-# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/xu4/ChangeLog,v 1.5 2006/12/21 23:29:29 tupone Exp $
+# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/xu4/ChangeLog,v 1.6 2009/01/08 21:56:40 mr_bones_ Exp $
+
+ 08 Jan 2009; Michael Sterrett <mr_bones_@gentoo.org> xu4-0.9.ebuild:
+ EAPI=2; add use-based dep for media-libs/sdl-mixer
21 Dec 2006; <tupone@gentoo.org> xu4-0.9.ebuild:
Detect timidity enabled sdl-mixer. Fix bug #68259 by Marc Benstein
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 \