diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2016-02-17 02:54:42 -0500 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2016-02-17 02:55:19 -0500 |
commit | 5fba591264a7db8ec981271df7a7bc9c040424e6 (patch) | |
tree | 873a5691d7f0a70ad4e17747e9f3300dad8d1b55 /games-strategy/uqm/uqm-0.7.0-r3.ebuild | |
parent | net-libs/nghttp2: Stable for HPPA PPC64 (bug #574780). (diff) | |
download | gentoo-5fba591264a7db8ec981271df7a7bc9c040424e6.tar.gz gentoo-5fba591264a7db8ec981271df7a7bc9c040424e6.tar.bz2 gentoo-5fba591264a7db8ec981271df7a7bc9c040424e6.zip |
games-strategy/uqm: rev bump to add remix disc 4 as reported by Ryan Hill via bug #574930
Package-Manager: portage-2.2.26
Diffstat (limited to 'games-strategy/uqm/uqm-0.7.0-r3.ebuild')
-rw-r--r-- | games-strategy/uqm/uqm-0.7.0-r3.ebuild | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/games-strategy/uqm/uqm-0.7.0-r3.ebuild b/games-strategy/uqm/uqm-0.7.0-r3.ebuild new file mode 100644 index 000000000000..41d994abfc07 --- /dev/null +++ b/games-strategy/uqm/uqm-0.7.0-r3.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils multilib toolchain-funcs 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/${P}-content.uqm + music? ( mirror://sourceforge/sc2/${P}-3domusic.uqm ) + voice? ( mirror://sourceforge/sc2/${P}-voice.uqm ) + remix? ( mirror://sourceforge/sc2/${PN}-remix-disc1.uqm \ + mirror://sourceforge/sc2/${PN}-remix-disc2.uqm \ + mirror://sourceforge/sc2/${PN}-remix-disc3.uqm \ + mirror://sourceforge/sc2/${PN}-remix-disc4.uqm )" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="music opengl remix voice" + +RDEPEND="media-libs/libmikmod + media-libs/libogg + >=media-libs/libpng-1.4:0 + media-libs/libsdl[X,sound,joystick,video] + media-libs/libvorbis + media-libs/sdl-image[png] + sys-libs/zlib + opengl? ( virtual/opengl )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + local myopengl + + 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 + + # respect CFLAGS + sed -i \ + -e "s/-O3//" build/unix/build.config || die + + sed -i \ + -e "s:@INSTALL_LIBDIR@:$(games_get_libdir)/:g" \ + build/unix/uqm-wrapper.in || die + + # respect CC + sed -i \ + -e "s/PROG_gcc_FILE=\"gcc\"/PROG_gcc_FILE=\"$(tc-getCC)\"/" \ + build/unix/config_proginfo_build || die +} + +src_compile() { + MAKE_VERBOSE=1 ./build.sh uqm || die +} + +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 + exeinto "$(games_get_libdir)"/${PN} + doexe uqm + + insinto "${GAMES_DATADIR}"/${PN}/content/packages + doins "${DISTDIR}"/${P}-content.uqm + echo ${P} > "${D}${GAMES_DATADIR}"/${PN}/content/version || die + + insinto "${GAMES_DATADIR}"/${PN}/content/addons + if use music; then + doins "${DISTDIR}"/${P}-3domusic.uqm + fi + + if use voice; then + doins "${DISTDIR}"/${P}-voice.uqm + fi + + if use remix; then + insinto "${GAMES_DATADIR}"/${PN}/content/addons + doins "${DISTDIR}"/${PN}-remix-disc{1,2,3,4}.uqm + fi + + dodoc AUTHORS ChangeLog Contributing README WhatsNew doc/users/manual.txt + docinto devel + dodoc doc/devel/[!n]* + docinto devel/netplay + dodoc doc/devel/netplay/* + make_desktop_entry uqm "The Ur-Quan Masters" + prepgamesdirs +} |