Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-fps/yamagi-quake2/
Date: Mon, 17 Sep 2018 15:46:46
Message-Id: 1537198679.b250198dbd864c5f26e55f21d625e105cbbcfa20.mgorny@gentoo
1 commit: b250198dbd864c5f26e55f21d625e105cbbcfa20
2 Author: Alexander Tsoy <alexander <AT> tsoy <DOT> me>
3 AuthorDate: Sun Sep 9 13:36:22 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 17 15:37:59 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b250198d
7
8 games-fps/yamagi-quake2: remove old
9
10 Closes: https://github.com/gentoo/gentoo/pull/9812
11
12 games-fps/yamagi-quake2/Manifest | 1 -
13 games-fps/yamagi-quake2/yamagi-quake2-7.20.ebuild | 146 ----------------------
14 2 files changed, 147 deletions(-)
15
16 diff --git a/games-fps/yamagi-quake2/Manifest b/games-fps/yamagi-quake2/Manifest
17 index 677801d4605..068b82c3215 100644
18 --- a/games-fps/yamagi-quake2/Manifest
19 +++ b/games-fps/yamagi-quake2/Manifest
20 @@ -1,4 +1,3 @@
21 -DIST quake2-7.20.tar.xz 1852212 BLAKE2B 87a19be70680866b8b697ea4632239d33fe196dc648553d4a113025d9dc7996a27db2ec0178b28c04ad77854400d9f159bd800681a2bdf5a0121ef764e163ecb SHA512 466c21777e07da6aaec29cf9d3c9246a23d2157398a7e5ff1ad006f0fa7fd89e379b109936780361f03722f896ac34a188d12fc0a51cb543079e07aa6c9240df
22 DIST quake2-7.21.tar.xz 1854928 BLAKE2B c8a97503b5304d6f02d562495970e49b7cb7db41ff4a5c726f69c3f6df145e9dccd4d66e217176ae9bcc31fed16c8d595bc969b4bf32e3e12aced2875c857847 SHA512 ddd0811b9c3b55dd5df9fa028951882d5aa40769ba518f42c8f37643bb7a397c125a8897d9dc10306d466d4aeb927ea685b29470cbde29e6fbd6d2d0aafa7c1a
23 DIST quake2-7.30.tar.xz 1939836 BLAKE2B 3e952c65cc535f8e1cbe69953c302e681d15f4227fce8bf4a2a0fdadefc8ceb7137e5427cd969ad55b9c2aa994131a0dec71611957f71dbcc9559b9cbc9f4322 SHA512 ea352353c8d6f2c396534208c2f287a06cd6c9d9e60248a6a7f26a84c0cc8b21ab890e06591e470ceea09a1234f5c2dbc1b171f4dbca62d91b2ac33812fdf2e7
24 DIST quake2-ctf-1.05.tar.xz 134872 BLAKE2B eb987004b1c1b1743ec532b6bea96a257957377cbdb0571d6c6e7b2dae6c1b7abc154233d4f9d3af6fb546d7810e5c041b8e9293de2e409a7cace88aa455f526 SHA512 9eb951f4a9d7abc5f9a2ca53d886f68b745c1efdf3fea14db2e071b8d1592d33579c5fa56326aa583269a4810e16a7eda8dcd8930e36782cb4fcb8578c44951b
25
26 diff --git a/games-fps/yamagi-quake2/yamagi-quake2-7.20.ebuild b/games-fps/yamagi-quake2/yamagi-quake2-7.20.ebuild
27 deleted file mode 100644
28 index 779346e191f..00000000000
29 --- a/games-fps/yamagi-quake2/yamagi-quake2-7.20.ebuild
30 +++ /dev/null
31 @@ -1,146 +0,0 @@
32 -# Copyright 1999-2018 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=6
36 -
37 -inherit desktop eutils
38 -
39 -CTF_V=1.05
40 -ROGUE_V=2.04
41 -XATRIX_V=2.05
42 -
43 -DESCRIPTION="Quake 2 engine focused on single player"
44 -HOMEPAGE="https://www.yamagi.org/quake2/"
45 -SRC_URI="https://deponie.yamagi.org/quake2/quake2-${PV}.tar.xz
46 - ctf? ( https://deponie.yamagi.org/quake2/quake2-ctf-${CTF_V}.tar.xz )
47 - rogue? ( https://deponie.yamagi.org/quake2/quake2-rogue-${ROGUE_V}.tar.xz )
48 - xatrix? ( https://deponie.yamagi.org/quake2/quake2-xatrix-${XATRIX_V}.tar.xz )"
49 -
50 -LICENSE="GPL-2"
51 -SLOT="0"
52 -KEYWORDS="~amd64 ~x86"
53 -IUSE="+client ctf dedicated ogg openal rogue xatrix"
54 -REQUIRED_USE="|| ( client dedicated )"
55 -
56 -RDEPEND="sys-libs/zlib:0=
57 - client? (
58 - media-libs/libsdl2[opengl,video]
59 - virtual/opengl
60 - ogg? (
61 - media-libs/libogg
62 - media-libs/libvorbis
63 - )
64 - openal? ( media-libs/openal )
65 - !openal? ( media-libs/libsdl2[sound] )
66 - )
67 -"
68 -
69 -DEPEND="${RDEPEND}"
70 -
71 -S="${WORKDIR}/quake2-${PV}"
72 -
73 -PATCHES=(
74 - "${FILESDIR}"/${PN}-respect-flags.patch
75 - "${FILESDIR}"/${PN}-zlib.patch
76 -)
77 -DOCS=( CHANGELOG CONTRIBUTE README.md )
78 -
79 -mymake() {
80 - emake \
81 - VERBOSE=1 \
82 - DLOPEN_OPENAL=no \
83 - WITH_CDA=no \
84 - WITH_SYSTEMWIDE=yes \
85 - WITH_SYSTEMDIR="${EPREFIX}"/usr/share/games/quake2 \
86 - WITH_ZIP=yes \
87 - WITH_OGG=$(usex ogg) \
88 - WITH_OPENAL=$(usex openal) \
89 - "$@"
90 -}
91 -
92 -src_prepare() {
93 - local addon
94 - for addon in ctf rogue xatrix; do
95 - use ${addon} || continue
96 -
97 - pushd "${WORKDIR}"/quake2-${addon}-* >/dev/null || die
98 - eapply -l -- "${FILESDIR}"/${PN}-addon-respect-flags.patch
99 - popd >/dev/null || die
100 - done
101 -
102 - default
103 -}
104 -
105 -src_compile() {
106 - local targets=( game )
107 - use client && targets+=( client ref_gl1 ref_gl3 )
108 - use dedicated && targets+=( server )
109 -
110 - mymake config
111 - mymake "${targets[@]}"
112 -
113 - local addon
114 - for addon in ctf rogue xatrix; do
115 - use ${addon} || continue
116 - emake -C "${WORKDIR}"/quake2-${addon}-* VERBOSE=1
117 - done
118 -}
119 -
120 -src_install() {
121 - insinto /usr/lib/yamagi-quake2
122 - # Yamagi Quake II expects all binaries to be in the same directory
123 - # See stuff/packaging.md for more info
124 - exeinto /usr/lib/yamagi-quake2
125 - doins -r release/.
126 -
127 - if use client; then
128 - doexe release/quake2
129 - dosym ../lib/yamagi-quake2/quake2 /usr/bin/yquake2
130 -
131 - newicon stuff/icon/Quake2.svg "yamagi-quake2.svg"
132 - make_desktop_entry "yquake2" "Yamagi Quake II"
133 - fi
134 -
135 - if use dedicated; then
136 - doexe release/q2ded
137 - dosym ../lib/yamagi-quake2/q2ded /usr/bin/yq2ded
138 - fi
139 -
140 - insinto /usr/lib/yamagi-quake2/baseq2
141 - doins stuff/yq2.cfg
142 -
143 - local addon
144 - for addon in ctf rogue xatrix; do
145 - use ${addon} || continue
146 -
147 - insinto /usr/lib/yamagi-quake2/${addon}
148 - doins "${WORKDIR}"/quake2-${addon}-*/release/game.so
149 -
150 - local addon_name
151 - case ${addon} in
152 - ctf) addon_name="CTF" ;;
153 - rogue) addon_name="Ground Zero" ;;
154 - xatrix) addon_name="The Reckoning" ;;
155 - esac
156 -
157 - make_wrapper "yquake2-${addon}" "yquake2 +set game ${addon}"
158 - make_desktop_entry "yquake2-${addon}" "Yamagi Quake II: ${addon_name}"
159 - done
160 -
161 - einstalldocs
162 - if use client; then
163 - docinto examples
164 - dodoc stuff/cdripper.sh
165 - fi
166 -}
167 -
168 -pkg_postinst() {
169 - if [[ -z ${REPLACING_VERSIONS} ]]; then
170 - elog
171 - elog "In order to play, you must at least install:"
172 - elog "games-fps/quake2-data or games-fps/quake2-demodata or copy game"
173 - elog "data files to ~/.yq2/ or ${EPREFIX}/usr/share/games/quake2/ manually."
174 - elog "Read ${EPREFIX}/usr/share/doc/${PF}/README.md* for more information."
175 - elog
176 - fi
177 -}