diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-03-17 19:43:18 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-03-17 19:43:18 +0000 |
commit | 6ed9288f443d8ef92ef92098c249998a2f99305b (patch) | |
tree | 5c62ea4f849a5df5a1584c1786b385b702baa5a1 /games-fps | |
parent | Marked ~ppc-macos for progressive users (bug #126363) (diff) | |
download | gentoo-2-6ed9288f443d8ef92ef92098c249998a2f99305b.tar.gz gentoo-2-6ed9288f443d8ef92ef92098c249998a2f99305b.tar.bz2 gentoo-2-6ed9288f443d8ef92ef92098c249998a2f99305b.zip |
Version bumped to 1.5 and closing bug #122838.
(Portage version: 2.1_pre6-r2)
Diffstat (limited to 'games-fps')
-rw-r--r-- | games-fps/nexuiz/ChangeLog | 7 | ||||
-rw-r--r-- | games-fps/nexuiz/files/digest-nexuiz-1.5 | 3 | ||||
-rw-r--r-- | games-fps/nexuiz/nexuiz-1.5.ebuild | 157 |
3 files changed, 166 insertions, 1 deletions
diff --git a/games-fps/nexuiz/ChangeLog b/games-fps/nexuiz/ChangeLog index 1164015cc23d..8e9ac70fa3b5 100644 --- a/games-fps/nexuiz/ChangeLog +++ b/games-fps/nexuiz/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-fps/nexuiz # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/nexuiz/ChangeLog,v 1.4 2006/01/13 21:57:52 dertobi123 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/nexuiz/ChangeLog,v 1.5 2006/03/17 19:43:18 wolf31o2 Exp $ + +*nexuiz-1.5 (17 Mar 2006) + + 17 Mar 2006; Chris Gianelloni <wolf31o2@gentoo.org> +nexuiz-1.5.ebuild: + Version bumped to 1.5 and closing bug #122838. 13 Jan 2006; Tobias Scherbaum <dertobi123@gentoo.org> nexuiz-1.2.1.ebuild: added to ~ppc, bug #118872 diff --git a/games-fps/nexuiz/files/digest-nexuiz-1.5 b/games-fps/nexuiz/files/digest-nexuiz-1.5 new file mode 100644 index 000000000000..7cd3f52e9c10 --- /dev/null +++ b/games-fps/nexuiz/files/digest-nexuiz-1.5 @@ -0,0 +1,3 @@ +MD5 60037b11720d05ee17614dd75b35e51b nexuiz-15.zip 187010881 +RMD160 6efcb9e8ec4abf97094d59b6562af871b454a14b nexuiz-15.zip 187010881 +SHA256 a53b1afbdcbd2cdd3d5417aefffe2512a990035cdc020156a05139d1a2df6006 nexuiz-15.zip 187010881 diff --git a/games-fps/nexuiz/nexuiz-1.5.ebuild b/games-fps/nexuiz/nexuiz-1.5.ebuild new file mode 100644 index 000000000000..8d03e141b4c4 --- /dev/null +++ b/games-fps/nexuiz/nexuiz-1.5.ebuild @@ -0,0 +1,157 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/nexuiz/nexuiz-1.5.ebuild,v 1.1 2006/03/17 19:43:18 wolf31o2 Exp $ + +inherit eutils games + +MY_PV=${PV//./} +MY_PN=${PN/n/N} + +DESCRIPTION="Deathmatch FPS based on the Quake 1 engine" +HOMEPAGE="http://www.nexuiz.com" +SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.zip" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="dedicated opengl sdl" + +UIDEPEND="media-libs/alsa-lib + media-libs/libogg + media-libs/libvorbis + || ( + ( + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXdmcp + x11-libs/libXext ) + virtual/x11 )" +RDEPEND="media-libs/jpeg + sys-libs/glibc + sys-libs/zlib + sdl? ( + media-libs/libsdl + ${UIDEPEND} ) + opengl? ( + virtual/opengl + ${UIDEPEND} ) + !dedicated? ( + !sdl? ( + !opengl? ( + virtual/opengl + ${UIDEPEND} ) ) )" +DEPEND="${RDEPEND} + dev-util/pkgconfig + app-arch/unzip" + +S=${WORKDIR}/${MY_PN}/darkplaces +dir=${GAMES_DATADIR}/${PN} +exe=${PN} + +pkg_setup() { + if ! use dedicated && ! use sdl && ! use opengl + then + einfo "Defaulting to OpenGL client" + fi +} + +src_unpack() { + unpack ${A} + cd ${MY_PN} + unzip $(ls -A ${PN}enginesource*.zip) || die "unzip failed" + + cd "${S}" + sed -i \ + -e '/^CC/d' \ + -e "s:-lasound:$(pkg-config --libs alsa):" \ + makefile.inc \ + || die "sed makefile failed" +} + +src_compile() { + if use opengl + then + emake cl-release \ + CFLAGS_RELEASE="" OPTIM_RELEASE="" \ + CFLAGS_COMMON="${CFLAGS}" \ + || die "emake cl-release failed" + fi + + if use sdl + then + emake sdl-release \ + CFLAGS_RELEASE="" OPTIM_RELEASE="" \ + CFLAGS_COMMON="${CFLAGS}" \ + || die "emake sdl-release failed" + fi + + if use dedicated + then + emake sv-release \ + CFLAGS_RELEASE="" OPTIM_RELEASE="" \ + CFLAGS_COMMON="${CFLAGS}" \ + || die "emake dedicated failed" + fi + + if ! use dedicated && ! use sdl && ! use opengl + then + emake cl-release \ + CFLAGS_RELEASE="" OPTIM_RELEASE="" \ + CFLAGS_COMMON="${CFLAGS}" \ + || die "emake cl-release failed" + fi +} + +src_install() { + insinto "${dir}" + exeinto "${dir}" + + if use opengl || use sdl + then + newicon darkplaces72x72.png ${PN}.png + elif ! use dedicated && ! use sdl && ! use opengl + then + newicon darkplaces72x72.png ${PN}.png + fi + + if use opengl + then + newexe darkplaces-glx ${exe} || die "newexe glx failed" + games_make_wrapper ${PN} ./${exe} "${dir}" + make_desktop_entry ${PN} Nexuiz ${PN}.png + fi + + if use sdl + then + newexe darkplaces-sdl ${PN}-sdl || die "newexe sdl failed" + games_make_wrapper ${PN}-sdl ./${PN}-sdl "${dir}" + make_desktop_entry ${PN}-sdl "Nexuiz (SDL)" ${PN}.png + fi + + if use dedicated + then + newexe darkplaces-dedicated ${PN}-ded || die "newexe ded failed" + games_make_wrapper ${PN}-ded ./${PN}-ded "${dir}" + fi + + if ! use dedicated && ! use sdl && ! use opengl + then + newexe darkplaces-glx ${exe} || die "newexe glx failed" + games_make_wrapper ${PN} ./${exe} "${dir}" + make_desktop_entry ${PN} Nexuiz ${PN}.png + fi + + cd "${WORKDIR}/${MY_PN}" + insinto "${dir}/data" + doins -r data/* || die "doins data failed" + dodoc Docs/*.txt + dohtml Docs/*.{htm,html} + + prepgamesdirs +} + +pkg_postinst() { + einfo "For sound problems, read:" + einfo " http://www.alientrap.org/forum/viewtopic.php?t=72" + + games_pkg_postinst +} |