diff options
author | Tristan Heaven <nyhm@gentoo.org> | 2006-11-07 08:06:41 +0000 |
---|---|---|
committer | Tristan Heaven <nyhm@gentoo.org> | 2006-11-07 08:06:41 +0000 |
commit | 9a840724bcf399d7a0a29a43b23e86cf11826e0e (patch) | |
tree | bef6d96ccee74a6efcd81b580b42968fff88b189 /games-fps/warsow | |
parent | KDE frontend to the Portage elogs, see bug #150768 (diff) | |
download | gentoo-2-9a840724bcf399d7a0a29a43b23e86cf11826e0e.tar.gz gentoo-2-9a840724bcf399d7a0a29a43b23e86cf11826e0e.tar.bz2 gentoo-2-9a840724bcf399d7a0a29a43b23e86cf11826e0e.zip |
Initial commit, bug #98322 by Paul Bredbury
(Portage version: 2.1.2_rc1-r4)
Diffstat (limited to 'games-fps/warsow')
-rw-r--r-- | games-fps/warsow/ChangeLog | 10 | ||||
-rw-r--r-- | games-fps/warsow/Manifest | 17 | ||||
-rw-r--r-- | games-fps/warsow/files/digest-warsow-0.21 | 6 | ||||
-rw-r--r-- | games-fps/warsow/metadata.xml | 5 | ||||
-rw-r--r-- | games-fps/warsow/warsow-0.21.ebuild | 150 |
5 files changed, 188 insertions, 0 deletions
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 <nyhm@gentoo.org> +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..48bbbdb1e697 --- /dev/null +++ b/games-fps/warsow/Manifest @@ -0,0 +1,17 @@ +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 3901 RMD160 93d1b89b8e66a7b275f3cd3305321cf35da987a6 SHA1 a79843f579288600533283a606228e33b10c3488 SHA256 4c53277cb91d2b09a8f5bebf86f49bd86a89643ca5830ef28f1489f52cea1756 +MD5 bbacd6fc4d113561955a58f4c5a87c32 warsow-0.21.ebuild 3901 +RMD160 93d1b89b8e66a7b275f3cd3305321cf35da987a6 warsow-0.21.ebuild 3901 +SHA256 4c53277cb91d2b09a8f5bebf86f49bd86a89643ca5830ef28f1489f52cea1756 warsow-0.21.ebuild 3901 +MISC ChangeLog 278 RMD160 32d9c5c2e262d49bfb1d4be07766c0ebfd0c37ea SHA1 a3b02dc4819634d1721fc55366b877d8387ee44f SHA256 899d4602d726578da944e2f8392d4d536e58f77aec95ec781b694be0a9646beb +MD5 d04137ee5576c1688bf61812f24a44cc ChangeLog 278 +RMD160 32d9c5c2e262d49bfb1d4be07766c0ebfd0c37ea ChangeLog 278 +SHA256 899d4602d726578da944e2f8392d4d536e58f77aec95ec781b694be0a9646beb ChangeLog 278 +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 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> 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 +} |