Gentoo Archives: gentoo-commits

From: Michael Sterrett <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-fps/xonotic/
Date: Thu, 08 Oct 2015 08:37:07
Message-Id: 1444293405.4ba854d68216a898711645a9782584dbb6fb8090.mr_bones_@gentoo
1 commit: 4ba854d68216a898711645a9782584dbb6fb8090
2 Author: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 8 08:36:27 2015 +0000
4 Commit: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 8 08:36:45 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ba854d6
7
8 version bump
9
10 Package-Manager: portage-2.2.20.1
11
12 games-fps/xonotic/Manifest | 1 +
13 games-fps/xonotic/xonotic-0.8.1.ebuild | 117 +++++++++++++++++++++++++++++++++
14 2 files changed, 118 insertions(+)
15
16 diff --git a/games-fps/xonotic/Manifest b/games-fps/xonotic/Manifest
17 index 6a57f89..5dcf3af 100644
18 --- a/games-fps/xonotic/Manifest
19 +++ b/games-fps/xonotic/Manifest
20 @@ -1 +1,2 @@
21 DIST xonotic-0.8.0.zip 999151784 SHA256 0a87c808827a8b234f2324b468ecb643aa48a6fd43322a29e616610dca316370 SHA512 49ae728f9269ff642540ec8a7ab52fb9624f3d05cab2b07c5a1aa87d4103d3acffad4e2a1f266d3976cd457e742a3a7a1fd4a774cbcde934b123ae3baa747332 WHIRLPOOL 85e747bb2fb5ad5394896a08055028439a2f1a154305d7101be8cb5a44a1e50bdb9b36fac526ff12c9db93915a8b5253a40cf7dc654271f20240e1f92e0b4cb5
22 +DIST xonotic-0.8.1.zip 984854761 SHA256 be8bcc41e2993a2f26d4d04c65a7eab810443bd98b11b45e482ffdbbf284c46f SHA512 adfce546257bdc7cfebe94f53eaa9cc9b19eaa546c6405e31ed6af080e3948732c960a024126202e5853cb98b955daadeeb5a96c602a6d4d83e284d3540214a4 WHIRLPOOL 4359263c98352a8b5d169147d9bfecb4258628f212d9a965f0d1577d0a8b2469648ae1ce21d8dc0ff622d20e126ea52e1464363f69fcf514991aefad71c1bee7
23
24 diff --git a/games-fps/xonotic/xonotic-0.8.1.ebuild b/games-fps/xonotic/xonotic-0.8.1.ebuild
25 new file mode 100644
26 index 0000000..cea7356
27 --- /dev/null
28 +++ b/games-fps/xonotic/xonotic-0.8.1.ebuild
29 @@ -0,0 +1,117 @@
30 +# Copyright 1999-2014 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +inherit eutils check-reqs toolchain-funcs games
36 +
37 +MY_PN="${PN^}"
38 +DESCRIPTION="Fork of Nexuiz, Deathmatch FPS based on DarkPlaces, an advanced Quake 1 engine"
39 +HOMEPAGE="http://www.xonotic.org/"
40 +SRC_URI="http://dl.xonotic.org/${P}.zip"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE="alsa debug dedicated doc ode sdl"
46 +
47 +UIRDEPEND="
48 + media-libs/libogg
49 + media-libs/libtheora
50 + media-libs/libvorbis
51 + media-libs/libmodplug
52 + x11-libs/libX11
53 + x11-libs/libXau
54 + x11-libs/libXpm
55 + x11-libs/libXext
56 + x11-libs/libXdmcp
57 + x11-libs/libXxf86dga
58 + x11-libs/libXxf86vm
59 + virtual/opengl
60 + media-libs/freetype:2
61 + alsa? ( media-libs/alsa-lib )
62 + ode? ( dev-games/ode[double-precision] )
63 + sdl? ( media-libs/libsdl[X,sound,joystick,opengl,video,alsa?] )"
64 +UIDEPEND="
65 + x11-proto/xextproto
66 + x11-proto/xf86dgaproto
67 + x11-proto/xf86vidmodeproto
68 + x11-proto/xproto"
69 +RDEPEND="
70 + sys-libs/zlib
71 + virtual/jpeg:62
72 + media-libs/libpng:0
73 + net-misc/curl
74 + ~dev-libs/d0_blind_id-0.5
75 + !dedicated? ( ${UIRDEPEND} )"
76 +DEPEND="${RDEPEND}
77 + !dedicated? ( ${UIDEPEND} )"
78 +
79 +CHECKREQS_DISK_BUILD="1200M"
80 +CHECKREQS_DISK_USR="950M"
81 +
82 +S=${WORKDIR}/${MY_PN}
83 +
84 +pkg_pretend() {
85 + check-reqs_pkg_pretend
86 +}
87 +
88 +pkg_setup() {
89 + check-reqs_pkg_setup
90 + games_pkg_setup
91 +}
92 +
93 +src_prepare() {
94 + sed -i \
95 + -e "/^EXE_/s:darkplaces:${PN}:" \
96 + -e "s:-O3:${CFLAGS}:" \
97 + -e "/-lm/s:$: ${LDFLAGS}:" \
98 + -e '/^STRIP/s/strip/true/' \
99 + source/darkplaces/makefile.inc || die
100 +
101 + if ! use alsa; then
102 + sed -i \
103 + -e "/DEFAULT_SNDAPI/s:ALSA:OSS:" \
104 + source/darkplaces/makefile || die
105 + fi
106 +}
107 +
108 +src_compile() {
109 + local t="$(use debug && echo debug || echo release)"
110 + local i
111 +
112 + tc-export CC CXX LD AR RANLIB
113 +
114 + # use a for-loop wrt bug 473352
115 + for i in sv-${t} $(use !dedicated && echo "cl-${t} $(use sdl && echo sdl-${t})") ; do
116 + emake \
117 + -C source/darkplaces \
118 + DP_LINK_ODE=$(usex ode shared no) \
119 + DP_FS_BASEDIR="${GAMES_DATADIR}/${PN}" \
120 + ${i}
121 + done
122 +}
123 +
124 +src_install() {
125 + if ! use dedicated; then
126 + dogamesbin source/darkplaces/${PN}-glx
127 + newicon misc/logos/${PN}_icon.svg ${PN}.svg
128 + make_desktop_entry ${PN}-glx "${MY_PN} (GLX)"
129 +
130 + if use sdl; then
131 + dogamesbin source/darkplaces/${PN}-sdl
132 + make_desktop_entry ${PN}-sdl "${MY_PN} (SDL)"
133 + fi
134 + fi
135 + dogamesbin source/darkplaces/${PN}-dedicated
136 +
137 + dodoc Docs/*.txt
138 + use doc && dohtml -r Docs
139 +
140 + insinto "${GAMES_DATADIR}/${PN}"
141 + doins -r key_0.d0pk server data
142 + prepgamesdirs
143 +
144 + elog "If you are using opensource drivers you should consider installing: "
145 + elog " media-libs/libtxc_dxtn"
146 +}