Portage is a package management system used by Gentoo Linux
# 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 $
21 Dec 2006;
Detect timidity enabled sdl-mixer. Fix bug #68259 by Marc Benstein
22 Oct 2004; Simon Stelling
added ~amd64
23 Jun 2004; David Holm
Added to ~ppc.
*xu4-0.9 (22 Jun 2004)
22 Jun 2004; Michael Sterrett
+files/0.9-savegame.patch, +xu4-0.9.ebuild:
Initial commit; ebuild by me to fix bug #45767
AUX 0.9-savegame.patch 1861 RMD160 8246605a0dcf36769d6e4c4c0356a38d21f95728 SHA1 7a61912d20c551c2a5327f1e40340cc906dfb15c SHA256 29f2d391e59f91ce79b07efb036476d1f21cdcf150d9286e094dcdc56e1b575d
DIST u4upgrad.zip 632072 RMD160 863f4626089ad511a1b4dc60f9115c5f8a5b6a70 SHA1 052fb6ef53a689576d7a8148acb3380e859504d2 SHA256 400ac37311f3be74c1b2d7836561b2ead2b146f5162586865b0f4881225cca58
DIST ultima4-1.01.zip 537487 RMD160 9711d2b1041d7d5577fed09d5271bcdeab9f1fdc SHA1 e8b633cefb107caaf618171652c92684261b54c2 SHA256 ec84ef08e9e38156622300065aa62260276fc8f1c1ff2774f7916e7c10db40dc
DIST xu4-0.9.tar.gz 320090 RMD160 2129a2bd7e8789ffa901082c248957335b1e5e9d SHA1 6103c3903aeb771da946af5dfac6d83549de6f01 SHA256 26d7a957411e98474d3a06a0bf63a683208d3c35c0cf7afe90db992a934b0bf3
EBUILD xu4-0.9.ebuild 1997 RMD160 568f8346ba7e6eabc2c0c3b79ad80f084e71d138 SHA1 f42e130a8e22e15498eadc8fbe91b65389c8f19c SHA256 3e8ae41191120fc7ed373384d2975c4f608c142011973d2c137c4a62c09fc6cd
MISC ChangeLog 670 RMD160 a27eda02a0903fdf66a75ec79d6f49e419c4899d SHA1 71ebfda1eec31b50fdf928c102c92e0854a047c3 SHA256 b708c21b1cdf273ede3872a376e9f8c5af576ee29c3107d0d903dd18cb6787b5
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
# Copyright 1999-2007 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 $
inherit eutils games
DESCRIPTION="A remake of the computer game Ultima IV"
HOMEPAGE="http://xu4.sourceforge.net/"
SRC_URI="mirror://sourceforge/xu4/${P}.tar.gz
mirror://sourceforge/xu4/ultima4-1.01.zip
mirror://sourceforge/xu4/u4upgrad.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc ~amd64"
IUSE=""
RDEPEND="dev-libs/libxml2
media-libs/sdl-mixer
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.
unpack ${P}.tar.gz
cp "${DISTDIR}"/{ultima4-1.01.zip,u4upgrad.zip} . \
|| die "cp failed"
cd "${WORKDIR}"
mv ultima4-1.01.zip ultima4.zip
mkdir u4-dos
cd u4-dos
unzip -q ../ultima4.zip || die "unzip failed"
cd "${S}"
epatch "${FILESDIR}/${PV}-savegame.patch"
sed -i \
-e "s:/usr/local/lib/u4:$(games_get_libdir)/u4:" src/u4file.c \
|| die "sed u4file failed"
sed -i \
-e 's:-Wall:$(E_CFLAGS):' src/Makefile \
|| die "sed Makefile failed"
}
src_compile() {
emake -C src \
DEBUGCFLAGS= \
E_CFLAGS="${CFLAGS}" \
bindir="${GAMES_BINDIR}" \
datadir="/usr/share" \
libdir="$(games_get_libdir)" \
|| die "emake failed"
}
src_install() {
emake -C src \
DEBUGCFLAGS= \
E_CFLAGS="${CFLAGS}" \
bindir="${D}${GAMES_BINDIR}" \
datadir="${D}/usr/share" \
libdir="${D}$(games_get_libdir)" \
install || die "make install failed"
dodoc AUTHORS README doc/*txt "${WORKDIR}/u4-dos/ULTIMA4/"*TXT
insinto "$(games_get_libdir)/u4"
doins "${WORKDIR}/"*zip || die "doins failed"
prepgamesdirs
}