Initial commit - ebuild based on the one submitted by Nikoli (bug #324159)
authorMichael Sterrett <mr_bones_@gentoo.org>
Fri, 16 Sep 2011 21:52:12 +0000 (21:52 +0000)
committerMichael Sterrett <mr_bones_@gentoo.org>
Fri, 16 Sep 2011 21:52:12 +0000 (21:52 +0000)
Package-Manager: portage-2.1.10.11/cvs/Linux i686

games-fps/xonotic/ChangeLog [new file with mode: 0644]
games-fps/xonotic/Manifest [new file with mode: 0644]
games-fps/xonotic/metadata.xml [new file with mode: 0644]
games-fps/xonotic/xonotic-0.5.0.ebuild [new file with mode: 0644]

diff --git a/games-fps/xonotic/ChangeLog b/games-fps/xonotic/ChangeLog
new file mode 100644 (file)
index 0000000..36275e4
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for games-fps/xonotic
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/xonotic/ChangeLog,v 1.1 2011/09/16 21:52:12 mr_bones_ Exp $
+
+*xonotic-0.5.0 (16 Sep 2011)
+
+  16 Sep 2011; Michael Sterrett <mr_bones_@gentoo.org> +xonotic-0.5.0.ebuild,
+  +metadata.xml:
+  Initial commit - ebuild based on the one submitted by Nikoli (bug #324159)
+
diff --git a/games-fps/xonotic/Manifest b/games-fps/xonotic/Manifest
new file mode 100644 (file)
index 0000000..f7e9929
--- /dev/null
@@ -0,0 +1,4 @@
+DIST xonotic-0.5.0.zip 988512100 RMD160 92a56d33c11d78884639fd0d5095589ff86b8fe0 SHA1 716135609ef953f2fbed97bd6a3cf116b7afd7a9 SHA256 58e7226a8b534858f8161c378071f4dab168e2c683f1f986e6e65be75a5b730f
+EBUILD xonotic-0.5.0.ebuild 2414 RMD160 72e782fedf9bbbb814ee3822e4cdab944cfd0e63 SHA1 979a69cf72266cd0b57486a25c1e7617be3e2a3a SHA256 77667bd9a4314fb700869039a8ef6bdcef5fc7d7fa4d5a0d0e9ffed599f2dbb4
+MISC ChangeLog 413 RMD160 1917de950bdb89d1da899288780674930f49862b SHA1 4bdf5d15ea2d84d27a1cf855f489d853c45e6e2f SHA256 418a376236826c8db212ef92c36c7459201d31041f0cc4728dce2207cf01b2d2
+MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
diff --git a/games-fps/xonotic/metadata.xml b/games-fps/xonotic/metadata.xml
new file mode 100644 (file)
index 0000000..d3c2cc9
--- /dev/null
@@ -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/xonotic/xonotic-0.5.0.ebuild b/games-fps/xonotic/xonotic-0.5.0.ebuild
new file mode 100644 (file)
index 0000000..721b16e
--- /dev/null
@@ -0,0 +1,104 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/xonotic/xonotic-0.5.0.ebuild,v 1.1 2011/09/16 21:52:12 mr_bones_ Exp $
+
+EAPI=2
+inherit eutils check-reqs games
+
+MY_PN="${PN^}"
+DESCRIPTION="Fork of Nexuiz, Deathmatch FPS based on DarkPlaces, an advanced Quake 1 engine"
+HOMEPAGE="http://www.xonotic.org/"
+SRC_URI="http://dl.xonotic.org/${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa debug dedicated doc sdl"
+
+UIRDEPEND="
+       media-libs/libogg
+       media-libs/libtheora
+       media-libs/libvorbis
+       media-libs/libmodplug
+       x11-libs/libX11
+       x11-libs/libXau
+       x11-libs/libXdmcp
+       x11-libs/libXext
+       x11-libs/libXxf86dga
+       x11-libs/libXxf86vm
+       virtual/opengl
+       media-libs/freetype:2
+       alsa? ( media-libs/alsa-lib )
+       sdl? ( media-libs/libsdl[X,audio,joystick,opengl,video,alsa?] )"
+UIDEPEND="
+       x11-proto/xextproto
+       x11-proto/xf86dgaproto
+       x11-proto/xf86vidmodeproto
+       x11-proto/xproto"
+RDEPEND="
+       sys-libs/zlib
+       virtual/jpeg
+       media-libs/libpng
+       net-misc/curl
+       ~dev-libs/d0_blind_id-0.3
+       !dedicated? ( ${UIRDEPEND} )"
+DEPEND="${RDEPEND}
+       !dedicated? ( ${UIDEPEND} )"
+
+S=${WORKDIR}/${MY_PN}
+
+pkg_setup() {
+       CHECKREQS_DISK_BUILD="1200M"
+       CHECKREQS_DISK_USR="950M"
+       check-reqs_pkg_setup
+       games_pkg_setup
+}
+
+src_prepare() {
+       rm -rf misc/buildfiles/ # use system libs
+
+       sed -i \
+               -e "/^EXE_/s:darkplaces:${PN}:" \
+               -e "s:-O3:${CFLAGS}:" \
+               -e "/-lm/s:$: ${LDFLAGS}:" \
+               -e '/^STRIP/s/strip/true/' \
+               source/darkplaces/makefile.inc || die
+
+       if ! use alsa; then
+               sed -i \
+                       -e "/DEFAULT_SNDAPI/s:ALSA:OSS:" \
+                       source/darkplaces/makefile || die
+       fi
+}
+
+src_compile() {
+       local t="$(use debug && echo debug || echo release)"
+
+       emake \
+               -C source/darkplaces \
+               DP_LINK_TO_LIBJPEG=1 DP_FS_BASEDIR="${GAMES_DATADIR}/${PN}" \
+               sv-${t} \
+               $(use !dedicated && echo "cl-${t} $(use sdl && echo sdl-${t})") \
+               || die
+}
+
+src_install() {
+       if ! use dedicated; then
+               dogamesbin source/darkplaces/${PN}-glx || die
+               newicon misc/logos/${PN}_icon.svg ${PN}.svg
+               make_desktop_entry ${PN}-glx "${MY_PN} (GLX)"
+
+               if use sdl; then
+                       dogamesbin source/darkplaces/${PN}-sdl || die
+                       make_desktop_entry ${PN}-sdl "${MY_PN} (SDL)"
+               fi
+       fi
+       dogamesbin source/darkplaces/${PN}-dedicated || die
+
+       dodoc Docs/*.txt
+       use doc && dohtml -r Docs
+
+       insinto "${GAMES_DATADIR}/${PN}"
+       doins -r key_0.d0pk server data || die
+       prepgamesdirs
+}