ChangeLog

# ChangeLog for games-strategy/uqm
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/uqm/ChangeLog,v 1.23 2007/09/23 15:56:04 josejx Exp $

23 Sep 2007; Joseph Jezak uqm-0.6.2.ebuild:
Marked ppc64 stable.

23 Jul 2007; Joseph Jezak uqm-0.6.2.ebuild:
Marked ~ppc64.

05 Apr 2007; Tristan Heaven uqm-0.6.2.ebuild:
Wrapper sed fix by Alex Karshakevich, bug #173485

12 Mar 2007; Marius Mauch uqm-0.5.0.ebuild,
uqm-0.6.2.ebuild:
Replacing einfo with elog

08 Feb 2007; Michael Sterrett uqm-0.6.2.ebuild:
fix dep for bug #165902

04 Feb 2007; Simon Stelling uqm-0.6.2.ebuild:
mark ~amd64 after minor changes; credit to Amit Kotlovski; bug 165101

*uqm-0.6.2 (26 Jan 2007)

26 Jan 2007; Michael Sterrett +uqm-0.6.2.ebuild:
version bump (patch from nedrandersoff@yahoo.com) - bug #158640

12 Dec 2006; Chris Gianelloni uqm-0.5.0.ebuild:
Fixed compilation on amd64 with a patch from Lukasz Demianiuk
. Closing bug #157696.

*uqm-0.5.0 (07 Feb 2006)

07 Feb 2006; Michael Sterrett +uqm-0.5.0.ebuild:
version bump

29 Jan 2006; Michael Sterrett uqm-0.4.0.ebuild:
X is implicit

06 Oct 2005; Michael Sterrett -uqm-0.3-r2.ebuild:
clean older version

27 May 2005; Chris Gianelloni
files/digest-uqm-0.4.0, Manifest:
Fixing diget for bug #94165.

*uqm-0.4.0 (27 May 2005)

27 May 2005; Michael Sterrett +uqm-0.4.0.ebuild:
version bump (bug #93491) - ebuild patch from Robert Zaleski

09 Feb 2005; Michael Sterrett uqm-0.3-r2.ebuild:
more use flag knobs to support specific content install (bug #67045) -
ebuild mods from John Croisant

25 Nov 2004; Joseph Jezak uqm-0.3-r2.ebuild:
Markked ppc stable.

*uqm-0.3-r2 (06 Mar 2004)

06 Mar 2004; Michael Sterrett uqm-0.3-r2.ebuild:
Addition of remixed addon music. patch from Eldad Zack via bug #43875

*uqm-0.3-r1 (26 Feb 2004)

26 Feb 2004; Michael Sterrett uqm-0.3-r1.ebuild:
fix up data directory location (/usr/games/share -> /usr/share/games)

16 Sep 2003; Michael Sterrett uqm-0.3.ebuild:
Mark stable

*uqm-0.3 (15 Sep 2003)

15 Sep 2003; Michael Sterrett uqm-0.2.ebuild,
uqm-0.3.ebuild:
sys-apps/textutils -> coreutils

11 Sep 2003; Michael Sterrett :
version bump; change last entry to be more correct

*uqm-0.2 (09 Jul 2003)

09 Jul 2003; Michael Sterrett uqm-0.2.ebuild:
initial commit. ebuild based on the one provided by Martti Rannanjarvi
in bug 12153 and vapier's continued work on it as well.

Manifest

DIST uqm-0.6.0-3domusic.uqm 18980071 RMD160 68056bac27534e6db49c1e34922d38c5f368dbb9 SHA1 9e4777c89d17f8b1c9ae2ea343c4497f0f181a5a SHA256 c3e72569720d1e17ab2d08301d9dc90f2c4ab272811c488e18f878f38b84cac8
DIST uqm-0.6.0-content.uqm 11580000 RMD160 d56d06c377e44288d5bd41f8d68d59c87b58ccdb SHA1 f4b374d2029f0e2d26c0eaf5ed97fd157b53e4f5 SHA256 727679a66351d435c1a3c53ca3d2e87079f1f05c09fa0748035ed68fff1cd63d
DIST uqm-0.6.0-voice.uqm 114823409 RMD160 3a6f2404d7bfeeb2bcb156c8010402579a0c58ab SHA1 57d80fa068e812e8c5a415251000e870ff87d215 SHA256 ee84c90873a996771ddfa2154640620e374366fffb51e18dfdfb4236050bc27a
DIST uqm-0.6.2-source.tgz 1497342 RMD160 3f36fdc750607fddb68d52195f079e31860020a7 SHA1 79e393ba8ad2c786d4e633ba855859dc039bacd2 SHA256 d8d5e15b8eae2b4859eeee82edfca811fadef204c8c6e2112b8fe6aa4a396ea1
DIST uqm-remix-pack1.zip 50188123 RMD160 1c0cf233d6377918b676bcd591f4304b8da85aa1 SHA1 7cbdc87887ebebae5439c689fc5bd2ffa9460fc8 SHA256 1b9ccc799e531f50580952af92b342fb6684ae97b7bdc434f3b7e22d0c230644
DIST uqm-remix-pack2.zip 60281175 RMD160 441edc71e3006e43629ee262fef8ef8676573832 SHA1 f1ebca44ff105f968d6fcf65df935926523b1c97 SHA256 1dff1792a558a52eb5cbdf24e0c1b8b7ec85aff75a00ddb403ec988607f51dd0
DIST uqm-remix-pack3.zip 39923803 RMD160 786e8dfd7924abf6ef886e7223c1d57b0740d524 SHA1 f55d198c56a0963a6bb2f9c2fe04c4c475b25086 SHA256 4e347d52279785eba4ba5355beae63048ce3b550db3181d4d55df6a20361682d
EBUILD uqm-0.6.2.ebuild 3616 RMD160 68402941b29c306f813c67dba768315f349d4a2f SHA1 db8adc6b593eeefcd11abe09548a51e481728ed1 SHA256 f8df95e1686e6f2d30e62f7dfa92cd785f6290d936e122b418e675bef53f2b66
MISC ChangeLog 2988 RMD160 890697a8787862cd8d97ddf67e8712f64086aa71 SHA1 44e06c256caddbc3d694a94d55ea423e17427a7b SHA256 617a69ab254ff0658b494c3a4a84e6457fb93d9c0eabdf5993c5c9a0c6367a99
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3

metadata.xml




games

uqm-0.6.2.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/uqm/uqm-0.6.2.ebuild,v 1.8 2007/09/23 15:56:04 josejx Exp $

inherit eutils multilib games

DESCRIPTION="The Ur-Quan Masters: Port of Star Control 2"
HOMEPAGE="http://sc2.sourceforge.net/"
SRC_URI="mirror://sourceforge/sc2/${P}-source.tgz
mirror://sourceforge/sc2/${PN}-0.6.0-content.uqm
music? ( mirror://sourceforge/sc2/${PN}-0.6.0-3domusic.uqm )
voice? ( mirror://sourceforge/sc2/${PN}-0.6.0-voice.uqm )
remix? ( mirror://sourceforge/sc2/${PN}-remix-pack1.zip \
mirror://sourceforge/sc2/${PN}-remix-pack2.zip \
mirror://sourceforge/sc2/${PN}-remix-pack3.zip )"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc ppc64 x86"
IUSE="music opengl remix voice"

RDEPEND="media-libs/libvorbis
media-libs/jpeg
media-libs/libpng
media-libs/libsdl
media-libs/sdl-image
media-libs/libogg
media-libs/libvorbis
media-libs/libmikmod"
DEPEND="${RDEPEND}
app-arch/unzip"

src_unpack() {
local myopengl

unpack ${P}-source.tgz
cd "${S}"

# Because the new 0.6.* source archives have
# everything in a subdir called "sc2". This,
# I have found, is the simplest way to get
# around that problem. (That doesn't change
# the fact that the rest of this ebuild is
# very nasty. I was not able to clean it up.)
mv ./sc2/* ./

use opengl \
&& myopengl=opengl \
|| myopengl=pure

cat <<-EOF > config.state
CHOICE_debug_VALUE='nodebug'
CHOICE_graphics_VALUE='${myopengl}'
CHOICE_sound_VALUE='mixsdl'
CHOICE_accel_VALUE='plainc'
INPUT_install_prefix_VALUE='${GAMES_PREFIX}'
INPUT_install_bindir_VALUE='\$prefix/bin'
INPUT_install_libdir_VALUE='\$prefix/lib'
INPUT_install_sharedir_VALUE='${GAMES_DATADIR}/'
EOF

# Take out the read so we can be non-interactive.
sed -i \
-e '/read CHOICE/d' build/unix/menu_functions \
|| die "sed menu_functions failed"

# support the user's CFLAGS.
sed -i \
-e "s/-O3/${CFLAGS}/" build/unix/build.config \
|| die "sed build.config failed"

sed -i \
-e "s:@INSTALL_LIBDIR@:$(games_get_libdir)/:g" build/unix/uqm-wrapper.in \
|| die "sed uqm-wrapper.in failed"
}

src_compile() {
./build.sh uqm || die "build failed"
}

src_install() {
# Using the included install scripts seems quite painful.
# This manual install is totally fragile but maybe they'll
# use a sane build system for the next release.
newgamesbin uqm-wrapper uqm || die "newgamesbin failed"
exeinto "$(games_get_libdir)"/${PN}
doexe uqm || die "doexe failed"

insinto "${GAMES_DATADIR}"/${PN}/content/packages
doins "${DISTDIR}"/${PN}-0.6.0-content.uqm || die "doins failed"
echo ${P} > "${D}${GAMES_DATADIR}"/${PN}/content/version \
|| die "creating version file failed"

insinto "${GAMES_DATADIR}"/${PN}/content/packages
if use music; then
doins "${DISTDIR}"/${PN}-0.6.0-3domusic.uqm || die "doins failed"
fi

if use voice; then
doins "${DISTDIR}"/${PN}-0.6.0-voice.uqm || die "doins failed"
fi

if use remix; then
insinto "${GAMES_DATADIR}"/${PN}/content/packages/addons/uqmremix
doins "${DISTDIR}"/${PN}-remix-pack{1,2,3}.zip || die "doins failed"
fi

dodoc AUTHORS ChangeLog Contributing README WhatsNew doc/users/manual.txt
docinto devel
dodoc doc/devel/*
make_desktop_entry uqm "The Ur-Quan Masters"
prepgamesdirs

}

pkg_postinst() {
games_pkg_postinst
if use remix ; then
echo
elog "To hear all the remixed music made by the The Ur-Quan Masters"
elog "project's Precursors Team instead of the original ones,"
elog "start the game with:"
elog " --addon uqmremix"
echo
fi
}