diff options
author | Julian Ospald <hasufell@gentoo.org> | 2012-10-21 00:37:24 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2012-10-21 00:37:24 +0000 |
commit | a33225f05e3735ec42054d7bd7f9c348157954e9 (patch) | |
tree | d325264f0898ecf594f47de20a90c574a301e996 /games-fps/warsow | |
parent | Updates; drop 3.2.21, 3.3.8, and 3.4.4. Replace with 3.4.14, 3.5.7, and 3.6.2. (diff) | |
download | gentoo-2-a33225f05e3735ec42054d7bd7f9c348157954e9.tar.gz gentoo-2-a33225f05e3735ec42054d7bd7f9c348157954e9.tar.bz2 gentoo-2-a33225f05e3735ec42054d7bd7f9c348157954e9.zip |
version bump
(Portage version: 2.2.0_alpha140/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-fps/warsow')
-rw-r--r-- | games-fps/warsow/ChangeLog | 7 | ||||
-rw-r--r-- | games-fps/warsow/warsow-1.02.ebuild | 176 |
2 files changed, 182 insertions, 1 deletions
diff --git a/games-fps/warsow/ChangeLog b/games-fps/warsow/ChangeLog index a8145bd1dc73..0b31ec35ac8f 100644 --- a/games-fps/warsow/ChangeLog +++ b/games-fps/warsow/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-fps/warsow # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/ChangeLog,v 1.42 2012/10/17 03:07:16 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/ChangeLog,v 1.43 2012/10/21 00:37:24 hasufell Exp $ + +*warsow-1.02 (21 Oct 2012) + + 21 Oct 2012; Julian Ospald <hasufell@gentoo.org> +warsow-1.02.ebuild: + version bump 17 Oct 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> warsow-1.0.ebuild: x86 stable wrt bug #436808 diff --git a/games-fps/warsow/warsow-1.02.ebuild b/games-fps/warsow/warsow-1.02.ebuild new file mode 100644 index 000000000000..fefcc65c521a --- /dev/null +++ b/games-fps/warsow/warsow-1.02.ebuild @@ -0,0 +1,176 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/warsow-1.02.ebuild,v 1.1 2012/10/21 00:37:24 hasufell Exp $ + +EAPI=4 +inherit eutils check-reqs gnome2-utils games + +MY_P=${PN}_${PV} +DESCRIPTION="Multiplayer FPS based on the QFusion engine (evolved from Quake 2)" +HOMEPAGE="http://www.warsow.net/" +SRC_URI="http://funpark.warsow-esport.net/~${PN}/1.0/${PN}_1.0_unified.tar.gz + http://funpark.warsow-esport.net/~${PN}/${PV}/${MY_P}_sdk.tar.gz + http://funpark.warsow-esport.net/~${PN}/${PV}/${MY_P}_update.zip + mirror://gentoo/${PN}.png" + +LICENSE="GPL-2 warsow" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+angelscript debug dedicated irc openal server" + +RDEPEND="media-libs/freetype + net-misc/curl + sys-libs/zlib + !dedicated? ( + media-libs/libpng:0 + media-libs/libsdl + media-libs/libtheora + media-libs/libvorbis + x11-libs/libX11 + x11-libs/libXinerama + x11-libs/libXrandr + x11-libs/libXxf86dga + x11-libs/libXxf86vm + virtual/jpeg + virtual/opengl + openal? ( media-libs/openal ) + )" +DEPEND="${RDEPEND} + app-arch/unzip + x11-misc/makedepend + !dedicated? ( + x11-proto/xineramaproto + x11-proto/xf86dgaproto + x11-proto/xf86vidmodeproto + ) + openal? ( virtual/pkgconfig )" + +S=${WORKDIR}/${MY_P}_sdk/source +S_U=${WORKDIR}/${PN}_1.0 +S_UPDATE=${WORKDIR}/${MY_P}_update + +CHECKREQS_DISK_BUILD="1G" +CHECKREQS_DISK_USR="500M" + +src_unpack() { + unpack ${PN}_1.0_unified.tar.gz ${MY_P}_sdk.tar.gz + mkdir "${S_UPDATE}" || die + cd "${S_UPDATE}" || die + unpack ${MY_P}_update.zip +} + +src_prepare() { + sed -i \ + -e "/fs_basepath =/ s:\.:${GAMES_DATADIR}/${PN}:" \ + qcommon/files.c \ + || die "sed files.c failed" + + sed -i \ + -e "s:q_jpeg_mem_src:_&:" \ + ref_gl/r_image.c || die "sed r_image.c failed" + + rm -r "${S_U}"/docs/old* || die + + cd "${WORKDIR}"/${MY_P}_sdk || die + epatch "${FILESDIR}"/${P}-build.patch \ + "${FILESDIR}"/${PN}-0.5-pic.patch + epatch_user +} + +src_compile() { + yesno() { use ${1} && echo YES || echo NO ; } + + use angelscript && + emake -C ../libsrcs/angelscript/angelSVN/sdk/angelscript/projects/gnuc + + local arch + if use amd64 ; then + arch=x86_64 + elif use x86 ; then + arch=i386 + fi + + local myconf + if use dedicated ; then + myconf=( + BUILD_CLIENT=NO + BUILD_IRC=NO + BUILD_SND_OPENAL=NO + BUILD_SND_QF=NO + BUILD_CIN=NO + BUILD_SERVER=YES + BUILD_TV_SERVER=YES + ) + else + myconf=( + BUILD_CLIENT=YES + BUILD_IRC=$(yesno irc) + BUILD_SND_OPENAL=$(yesno openal) + BUILD_SND_QF=YES + BUILD_CIN=YES + BUILD_SERVER=$(yesno server) + BUILD_TV_SERVER=$(yesno server) + ) + fi + + emake \ + BASE_ARCH=${arch} \ + BINDIR=lib \ + BUILD_ANGELWRAP=$(yesno angelscript) \ + DEBUG_BUILD=$(yesno debug) \ + ${myconf[@]} +} + +src_install() { + cd lib + + if ! use dedicated ; then + newgamesbin ${PN}.* ${PN} + doicon -s 48 "${DISTDIR}"/${PN}.png + make_desktop_entry ${PN} Warsow + fi + + if use dedicated || use server ; then + newgamesbin wsw_server.* ${PN}-ded + newgamesbin wswtv_server.* ${PN}-tv + fi + + exeinto "$(games_get_libdir)"/${PN} + doexe */*.so + + insinto "${GAMES_DATADIR}"/${PN} + doins -r "${S_U}"/basewsw + doins -r "${S_UPDATE}"/basewsw + + local so + for so in basewsw/*.so ; do + dosym "$(games_get_libdir)"/${PN}/${so##*/} \ + "${GAMES_DATADIR}"/${PN}/${so} + done + + if [[ -e libs ]] ; then + dodir "${GAMES_DATADIR}"/${PN}/libs + for so in libs/*.so ; do + dosym "$(games_get_libdir)"/${PN}/${so##*/} \ + "${GAMES_DATADIR}"/${PN}/${so} + done + fi + + dodoc "${S_U}"/docs/* + dodoc "${S_UPDATE}"/docs/* + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |