From bbbac0ad8b89ed16a86e36b63e6c0b9645bc01b9 Mon Sep 17 00:00:00 2001 From: Tristan Heaven Date: Tue, 7 Nov 2006 08:06:41 +0000 Subject: Initial commit, bug #98322 by Paul Bredbury Package-Manager: portage-2.1.2_rc1-r4 --- games-fps/warsow/ChangeLog | 10 ++ games-fps/warsow/Manifest | 27 ++++++ games-fps/warsow/files/digest-warsow-0.21 | 6 ++ games-fps/warsow/metadata.xml | 5 + games-fps/warsow/warsow-0.21.ebuild | 150 ++++++++++++++++++++++++++++++ 5 files changed, 198 insertions(+) create mode 100644 games-fps/warsow/ChangeLog create mode 100644 games-fps/warsow/Manifest create mode 100644 games-fps/warsow/files/digest-warsow-0.21 create mode 100644 games-fps/warsow/metadata.xml create mode 100644 games-fps/warsow/warsow-0.21.ebuild (limited to 'games-fps/warsow') diff --git a/games-fps/warsow/ChangeLog b/games-fps/warsow/ChangeLog new file mode 100644 index 000000000000..7866fb7318fa --- /dev/null +++ b/games-fps/warsow/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for games-fps/warsow +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/ChangeLog,v 1.1 2006/11/07 08:06:41 nyhm Exp $ + +*warsow-0.21 (07 Nov 2006) + + 07 Nov 2006; Tristan Heaven +metadata.xml, + +warsow-0.21.ebuild: + Initial commit, bug #98322 by Paul Bredbury + diff --git a/games-fps/warsow/Manifest b/games-fps/warsow/Manifest new file mode 100644 index 000000000000..3c621fe507a2 --- /dev/null +++ b/games-fps/warsow/Manifest @@ -0,0 +1,27 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +DIST warsow_0.21_linux.tar.gz 80219586 RMD160 1d4e5672a79bb38c594e9bcfcad09b6a1a59c47d SHA1 9faf775721ee88c3db98aa186aa8e805ff4edb7b SHA256 fa927e2559620bea8926eed141106815c28099c8fff227f21463ebb1be9748d4 +DIST warsow_0.21_sdk.zip 7469755 RMD160 416e646463fd4a4bc51bf84eebceed725dab1744 SHA1 a79b50dfb7e0ab83337371d9ef1eecc812dd2053 SHA256 81b9fd550d826cb0b466b05106bff1729270ceb7682debb4c0a333b8b8dfa3f7 +EBUILD warsow-0.21.ebuild 3996 RMD160 c1c2029ecde290a49b6a9275d24c076442bb46cd SHA1 909cb7bbc03fad425f533844ad767eb0492c4d75 SHA256 58b6ed7989f3cc2a5f48974f0ef5223f7dc4c649bf8e79be220b3b72dce1a5ba +MD5 76c97ffc3d6dfc11621b25455cb4d7c0 warsow-0.21.ebuild 3996 +RMD160 c1c2029ecde290a49b6a9275d24c076442bb46cd warsow-0.21.ebuild 3996 +SHA256 58b6ed7989f3cc2a5f48974f0ef5223f7dc4c649bf8e79be220b3b72dce1a5ba warsow-0.21.ebuild 3996 +MISC ChangeLog 364 RMD160 abd88bb80c48d730f0203f303e9ef8d9ab509c6d SHA1 7663587a0be815fb0a800ec2f987c8a75d743f67 SHA256 5092796dcc9f568461bc88ef0e97121533cbcfd98bcf453a380e07f4b89ac1f7 +MD5 3c309b21e06f38de77dca992400939dd ChangeLog 364 +RMD160 abd88bb80c48d730f0203f303e9ef8d9ab509c6d ChangeLog 364 +SHA256 5092796dcc9f568461bc88ef0e97121533cbcfd98bcf453a380e07f4b89ac1f7 ChangeLog 364 +MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 +MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 +RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158 +SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 metadata.xml 158 +MD5 49ee91b0d73835723e0df47a505cfd5d files/digest-warsow-0.21 500 +RMD160 c62e208455dea7faa087739cb8a19920edfad6af files/digest-warsow-0.21 500 +SHA256 84f51f0e02d127a3ea3809c0ce12c4ab5932bacacda14d3a22e2d35cdcdafd57 files/digest-warsow-0.21 500 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.5 (GNU/Linux) + +iD8DBQFFUD6Xdz7hIScOURERAiWSAKCTAtNlfIl+eL5QnSNUccGi3OralQCgvkCh +f+ME/eQoA10J2J2YdkumFU0= +=K0FR +-----END PGP SIGNATURE----- diff --git a/games-fps/warsow/files/digest-warsow-0.21 b/games-fps/warsow/files/digest-warsow-0.21 new file mode 100644 index 000000000000..99a42184c662 --- /dev/null +++ b/games-fps/warsow/files/digest-warsow-0.21 @@ -0,0 +1,6 @@ +MD5 0ee0835a1fe9092c9562113253d0f79a warsow_0.21_linux.tar.gz 80219586 +RMD160 1d4e5672a79bb38c594e9bcfcad09b6a1a59c47d warsow_0.21_linux.tar.gz 80219586 +SHA256 fa927e2559620bea8926eed141106815c28099c8fff227f21463ebb1be9748d4 warsow_0.21_linux.tar.gz 80219586 +MD5 ce66288c5d345c8cf3985cbb1e51e199 warsow_0.21_sdk.zip 7469755 +RMD160 416e646463fd4a4bc51bf84eebceed725dab1744 warsow_0.21_sdk.zip 7469755 +SHA256 81b9fd550d826cb0b466b05106bff1729270ceb7682debb4c0a333b8b8dfa3f7 warsow_0.21_sdk.zip 7469755 diff --git a/games-fps/warsow/metadata.xml b/games-fps/warsow/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-fps/warsow/metadata.xml @@ -0,0 +1,5 @@ + + + +games + diff --git a/games-fps/warsow/warsow-0.21.ebuild b/games-fps/warsow/warsow-0.21.ebuild new file mode 100644 index 000000000000..87552094e220 --- /dev/null +++ b/games-fps/warsow/warsow-0.21.ebuild @@ -0,0 +1,150 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/warsow-0.21.ebuild,v 1.1 2006/11/07 08:06:41 nyhm Exp $ + +inherit eutils toolchain-funcs games + +MY_PV=${PV/_/} +F=${PN}_${MY_PV}_linux.tar.gz +SDK=${PN}_${MY_PV}_sdk.zip + +DESCRIPTION="Multiplayer FPS based on the QFusion engine (evolved from Quake 2)" +HOMEPAGE="http://www.warsow.net/" +SRC_URI="ftp://ftp.club-internet.fr/pub/games/nofrag/${PN}/${F} + ftp://ftp.club-internet.fr/pub/games/nofrag/${PN}/${SDK} + http://www.bef-warsow.de/files/${F} + http://www.bef-warsow.de/files/${SDK} + http://wsw.surreal-xenotronic.com/${F} + http://wsw.surreal-xenotronic.com/${SDK} + http://ik.spinther.com/${PN}/${F} + http://warsow.routed-gaming.co.uk/downloads/${F} + http://warsownews.game-server.cc/${F} + http://warsownews.game-server.cc/${SDK}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="debug dedicated irc openal sdl" + +UIRDEPEND="media-libs/jpeg + media-libs/libogg + media-libs/libvorbis + net-misc/curl + virtual/opengl + >=media-libs/libsdl-1.2.8-r1 + >=media-libs/sdl-sound-1.0.1-r1 + openal? ( media-libs/openal ) + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXdmcp + x11-libs/libXext" +UIDEPEND="x11-proto/xf86dgaproto + x11-proto/xf86vidmodeproto" +RDEPEND="sdl? ( ${UIRDEPEND} ) + !sdl? ( !dedicated? ( ${UIRDEPEND} ) )" +DEPEND="${RDEPEND} + sdl? ( ${UIDEPEND} ) + !sdl? ( !dedicated? ( ${UIDEPEND} ) ) + app-arch/unzip" + +S=${WORKDIR}/source +SDATA=${WORKDIR}/${PN} +dir=${GAMES_DATADIR}/${PN} +libdir=${GAMES_LIBDIR}/${PN} + +src_unpack() { + unpack ${A} + cd "${S}" + + # Make fs_usehomedir default to 1, so the game will write to ~/.warsow/ + # Make fs_basepath default to correct path. + # Add libdir as game directory. + sed -i qcommon/files.c \ + -e 's:"fs_usehomedir", "0":"fs_usehomedir", "1":' \ + -e "s:\"fs_basepath\", \"\.\":\"fs_basepath\", \"${dir}\":" \ + || die "sed files.c failed" + + # Remove pre-compiled binaries, because they are compiled in src_compile() + # Also remove the startup scripts. + rm "${SDATA}"/{${PN}*,wsw_server*} + rm -r "${SDATA}"/libs/*.so + + # Remove copy of licence. + rm "${SDATA}"/docs/gnu.txt + + # Move docs to a convenient directory, away from the files to be installed. + mv "${SDATA}"/docs "${S}" + + sed -i Makefile \ + -e '/^CFLAGS_RELEASE/s/=.* \(-fno.* \).* .* /=\1/' \ + -e '/^CFLAGS_DEBUG/s/-O0 -ggdb/-fno-strict-aliasing/' \ + || die "sed Makefile failed" +} + +src_compile() { + yesno() { useq $1 && echo YES || echo NO ; } + + local client="NO" + + if use sdl || ! use dedicated ; then + client="YES" + fi + + emake \ + BUILD_CLIENT=${client} \ + BUILD_SERVER=$(yesno dedicated) \ + BUILD_IRC=$(yesno irc) \ + BUILD_SND_QF=${client} \ + BUILD_SND_OPENAL=$(yesno openal) \ + DEBUG_BUILD=$(yesno debug) \ + BINDIR=release \ + SERVER_EXE=${PN}-ded \ + CLIENT_EXE=${PN} \ + CC="$(tc-getCC)" \ + LD="$(tc-getCC)" \ + || die "emake failed" + + mv -f release/basewsw/*.so "${WORKDIR}" || die "mv *.so failed" + cp -rf release/basewsw "${SDATA}" || die "cp basewsw failed" +} + +src_install() { + cd "${SDATA}" + + if use sdl || use openal || ! use dedicated ; then + # Install client-only components. + dogamesbin "${S}/release/${PN}" \ + || die "dogamesbin ${PN} failed" + make_desktop_entry ${PN} "Warsow" + fi + + if use dedicated ; then + # Install server-only components. + dogamesbin "${S}/release/${PN}-ded" \ + || die "dogamesbin ${PN}-ded failed" + fi + + # Install common components. + insinto "${dir}" + doins -r * || die "doins -r failed" + + # Game libraries. + exeinto "${libdir}"/basewsw + local lib + for lib in $(cd "${WORKDIR}" && ls -A *.so) ; do + doexe "${WORKDIR}/${lib}" || die "doexe ${lib} failed" + dosym "${libdir}/basewsw/${lib}" "${dir}"/basewsw/ + done + + # "Shared" Libraries. + exeinto "${libdir}" + local lib2 + for lib2 in $(cd "${S}"/release/libs/ && ls -A *.so) ; do + doexe "${S}"/release/libs/"${lib2}" || die "doexe ${lib2} failed" + dosym "${libdir}/${lib2}" "${dir}"/libs/ + done + + dodoc "${S}"/docs/* + + prepgamesdirs +} -- cgit v1.2.3-65-gdbad