1 |
commit: 849349fa869f0730bcc2e94d4b1cff49a3adfdb1 |
2 |
Author: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 29 07:13:50 2015 +0000 |
4 |
Commit: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 29 07:41:00 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=849349fa |
7 |
|
8 |
games-fps/darkplaces: old |
9 |
|
10 |
Package-Manager: portage-2.2.24 |
11 |
|
12 |
games-fps/darkplaces/Manifest | 1 - |
13 |
games-fps/darkplaces/darkplaces-20130304.ebuild | 187 ------------------------ |
14 |
2 files changed, 188 deletions(-) |
15 |
|
16 |
diff --git a/games-fps/darkplaces/Manifest b/games-fps/darkplaces/Manifest |
17 |
index 5dcaeae..3c5e0cf 100644 |
18 |
--- a/games-fps/darkplaces/Manifest |
19 |
+++ b/games-fps/darkplaces/Manifest |
20 |
@@ -1,5 +1,4 @@ |
21 |
DIST darkplacesengine20110628.zip 23377408 SHA256 d2464c681e3fdcc66cb090e79c44c0c173a43b6f181a12e500b0b1fd7d73ffce SHA512 bf44933470be2856a80ebd73a0cb531c6d22e69da5be24bc52175998ab687b4112c88423a6b42a9a4ed746e0f96c1bb39e188a037a98ea596cf7b6183e390038 WHIRLPOOL b4214be8a9c9aadf02a92c9b7e54d508df38f9e38f650f839a8ea43d9c0768641dbf59c71b210d337f591fac2d77a21a14e7900a3038d1af828f064bf3368071 |
22 |
-DIST darkplacesengine20130304.zip 29427833 SHA256 e1858dcba033b1dfc6e685482745b7137ceb23dfd710671971cd5e34529a9f44 SHA512 6672160ad6ed34bb45262f03b7a7671d65aa88ca44abab616f54cd1a8e5240dcb7b8a3a7c364fc8de3e9e2acf458e5c129311a0c52b8c6b29d9a4cafa5188b15 WHIRLPOOL 5566c7de789735fb984c5b64cf7ece2e948b87e170e16f434d5015f70baad901aadc251bb25a32926f43ced903daaa914a51024c08a64f4edcf1a9003aab1261 |
23 |
DIST darkplacesengine20140513.zip 28113487 SHA256 69e5a50991884196e403bd6aab4a33bba553a934a167be366672ab4e223b06c9 SHA512 45864b590057c6de0ea978b3cc967feb879b87b2d376f3b4d8525e037b10ca1fc68599c152506494bb06669c6c2304e0aa0ee1b28f7a0d589d10c23f7285052c WHIRLPOOL 0fca6d87c9d3482112992965b70f829dfd6ecd926d940ad66f5f75aec4438c2b5b33fb6ac51f69c5199f06d53fbc16f1c8d0780db40b8cbd71c7ceb0e67a4048 |
24 |
DIST fuhquake-lits.rar 8388829 SHA256 066fd58e2a6d157a1aa7925334d7e3e6cffa7f5c556e707bc31da8bfecea873c SHA512 6e59f5e08a6c401b329b86b0cd677a04b1a5aee11f24973c77c9e7ea50cab9dedf4fc15c4f3d6b73bdc87bacdc9612a3c244d0a4ceceef943abb6e256ac23925 WHIRLPOOL d398b57c03d02c8180f8ca93f6964ac2118ef50cace3ecbc9da9113b1e91ed3a7b7e5473ebb9ad2f5198828eb8565c7c0470aea2095152b2898335562bef821d |
25 |
DIST id1.pk3 350470 SHA256 f1ee6e144d1942ebf91a8c71d0333eac94c73efae35377fbe7ae43e0e4ab37dc SHA512 d4d7233bc1e5049e89d09448818219b0ce7941fecde5381cd95933e4c96ebc9b4e34ff7eae5eb5d0d1e3cc2ceb4f5254f4d600aded7dda373713149817621331 WHIRLPOOL 30fe7e6d6ac6408c54e704586d4f4e15d139c0330e4f3e758651bfc2e6582eadae08c590e87264cfb26faae56a7033b383d51f93bf54ddfce7db38e47d569280 |
26 |
|
27 |
diff --git a/games-fps/darkplaces/darkplaces-20130304.ebuild b/games-fps/darkplaces/darkplaces-20130304.ebuild |
28 |
deleted file mode 100644 |
29 |
index bfbc882..0000000 |
30 |
--- a/games-fps/darkplaces/darkplaces-20130304.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,187 +0,0 @@ |
33 |
-# Copyright 1999-2015 Gentoo Foundation |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
-# $Id$ |
36 |
- |
37 |
-EAPI=5 |
38 |
-inherit unpacker eutils flag-o-matic games |
39 |
- |
40 |
-# Latest versions are in http://icculus.org/twilight/darkplaces/files/ |
41 |
-MY_PV=${PV/_beta/beta} |
42 |
-MY_ENGINE="${PN}engine${MY_PV}.zip" |
43 |
- |
44 |
-# Different Quake 1 engines expect the lights in different directories |
45 |
-# http://www.fuhquake.net/download.html and http://www.kgbsyndicate.com/romi/ |
46 |
-MY_LIGHTS="fuhquake-lits.rar" |
47 |
- |
48 |
-DESCRIPTION="Enhanced engine for iD Software's Quake 1" |
49 |
-HOMEPAGE="http://icculus.org/twilight/darkplaces/" |
50 |
-SRC_URI="http://icculus.org/twilight/${PN}/files/${MY_ENGINE} |
51 |
- lights? ( |
52 |
- http://www.fuhquake.net/files/extras/${MY_LIGHTS} |
53 |
- http://www.kgbsyndicate.com/romi/id1.pk3 )" |
54 |
- |
55 |
-LICENSE="GPL-2" |
56 |
-SLOT="0" |
57 |
-KEYWORDS="~amd64 ~x86" |
58 |
-IUSE="alsa cdinstall cdsound debug dedicated demo lights opengl oss sdl textures" |
59 |
- |
60 |
-UIRDEPEND="virtual/jpeg |
61 |
- media-libs/libogg |
62 |
- media-libs/libvorbis |
63 |
- virtual/opengl |
64 |
- alsa? ( media-libs/alsa-lib ) |
65 |
- sdl? ( media-libs/libsdl ) |
66 |
- x11-libs/libX11 |
67 |
- x11-libs/libXpm |
68 |
- x11-libs/libXxf86dga |
69 |
- x11-libs/libXxf86vm" |
70 |
-UIDEPEND="x11-proto/xextproto |
71 |
- x11-proto/xf86dgaproto |
72 |
- x11-proto/xf86vidmodeproto |
73 |
- x11-proto/xproto" |
74 |
-RDEPEND="net-misc/curl |
75 |
- cdinstall? ( games-fps/quake1-data ) |
76 |
- demo? ( games-fps/quake1-demodata ) |
77 |
- textures? ( >=games-fps/quake1-textures-20050820 ) |
78 |
- opengl? ( ${UIRDEPEND} ) |
79 |
- !opengl? ( sdl? ( ${UIRDEPEND} ) ) |
80 |
- !opengl? ( !sdl? ( !dedicated? ( ${UIRDEPEND} ) ) )" |
81 |
-DEPEND="lights? ( || ( |
82 |
- app-arch/unrar |
83 |
- app-arch/rar ) ) |
84 |
- opengl? ( |
85 |
- ${UIRDEPEND} |
86 |
- ${UIDEPEND} ) |
87 |
- !opengl? ( sdl? ( |
88 |
- ${UIRDEPEND} |
89 |
- ${UIDEPEND} ) ) |
90 |
- !opengl? ( !sdl? ( !dedicated? ( |
91 |
- ${UIRDEPEND} |
92 |
- ${UIDEPEND} ) ) ) |
93 |
- virtual/pkgconfig |
94 |
- app-arch/unzip" |
95 |
- |
96 |
-S=${WORKDIR}/${PN} |
97 |
-dir=${GAMES_DATADIR}/quake1 |
98 |
- |
99 |
-opengl_client() { use opengl || ( ! use dedicated && ! use sdl ) } |
100 |
- |
101 |
-src_unpack() { |
102 |
- if use lights ; then |
103 |
- unpack "${MY_LIGHTS}" |
104 |
- unpack_zip "${DISTDIR}"/id1.pk3 |
105 |
- mv *.lit maps/ || die |
106 |
- mv ReadMe.txt rtlights.txt |
107 |
- fi |
108 |
- unpack "${MY_ENGINE}" |
109 |
- unpack ./${PN}*.zip |
110 |
-} |
111 |
- |
112 |
-src_prepare() { |
113 |
- rm "${WORKDIR}"/README-SDL.txt |
114 |
- cd "${S}" |
115 |
- rm mingw_note.txt |
116 |
- |
117 |
- strip-flags |
118 |
- |
119 |
- # Only additional CFLAGS optimization is the -march flag |
120 |
- local march=$(get-flag -march) |
121 |
- sed -i \ |
122 |
- -e "s:-lasound:$(pkg-config --libs alsa):" \ |
123 |
- -e "/^CPUOPTIMIZATIONS/d" \ |
124 |
- -e '/^OPTIM_RELEASE/s/=.*/=$(CFLAGS)/' \ |
125 |
- -e '/^OPTIM_DEBUG/s/=.*/=$(CFLAGS)/' \ |
126 |
- -e '/^LDFLAGS_DEBUG/s/$/ $(LDFLAGS)/' \ |
127 |
- -e '/^LDFLAGS_RELEASE/s/$/ $(LDFLAGS)/' \ |
128 |
- -e "s:strip:true:" \ |
129 |
- makefile.inc || die |
130 |
- |
131 |
- if ! use cdsound ; then |
132 |
- # Turn the CD accesses off |
133 |
- sed -i \ |
134 |
- -e "s:/dev/cdrom:/dev/null:" \ |
135 |
- cd_linux.c || die |
136 |
- sed -i \ |
137 |
- -e 's:COM_CheckParm("-nocdaudio"):1:' \ |
138 |
- cd_shared.c || die |
139 |
- fi |
140 |
-} |
141 |
- |
142 |
-src_compile() { |
143 |
- local opts="DP_FS_BASEDIR=\"${dir}\" DP_LINK_TO_LIBJPEG=1" |
144 |
- |
145 |
- # Preferred sound is alsa |
146 |
- local sound_api="NULL" |
147 |
- use oss && sound_api="OSS" |
148 |
- use alsa && sound_api="ALSA" |
149 |
- opts="${opts} DP_SOUND_API=${sound_api}" |
150 |
- |
151 |
- local type="release" |
152 |
- use debug && type="debug" |
153 |
- |
154 |
- # Only compile a maximum of 1 client |
155 |
- if use sdl ; then |
156 |
- emake ${opts} "sdl-${type}" |
157 |
- elif opengl_client ; then |
158 |
- emake ${opts} "cl-${type}" |
159 |
- fi |
160 |
- |
161 |
- if use dedicated ; then |
162 |
- emake ${opts} "sv-${type}" |
163 |
- fi |
164 |
-} |
165 |
- |
166 |
-src_install() { |
167 |
- if opengl_client || use sdl ; then |
168 |
- local type=glx |
169 |
- |
170 |
- use sdl && type=sdl |
171 |
- |
172 |
- # darkplaces executable is needed, even just for demo |
173 |
- newgamesbin "${PN}-${type}" ${PN} |
174 |
- newicon darkplaces72x72.png ${PN}.png |
175 |
- |
176 |
- if use demo ; then |
177 |
- # Install command-line for demo, even if not desktop entry |
178 |
- games_make_wrapper ${PN}-demo "${PN} -game demo" |
179 |
- fi |
180 |
- |
181 |
- if use demo && ! use cdinstall ; then |
182 |
- make_desktop_entry ${PN}-demo "Dark Places (Demo)" |
183 |
- else |
184 |
- # Full version takes precedence over demo |
185 |
- make_desktop_entry ${PN} "Dark Places" |
186 |
- fi |
187 |
- fi |
188 |
- |
189 |
- if use dedicated ; then |
190 |
- newgamesbin ${PN}-dedicated ${PN}-ded |
191 |
- fi |
192 |
- |
193 |
- dodoc *.txt ChangeLog todo "${WORKDIR}"/*.txt |
194 |
- |
195 |
- if use lights ; then |
196 |
- insinto "${dir}"/id1 |
197 |
- doins -r "${WORKDIR}"/{cubemaps,maps} |
198 |
- if use demo ; then |
199 |
- # Set up symlinks, for the demo levels to include the lights |
200 |
- local d |
201 |
- for d in cubemaps maps ; do |
202 |
- dosym "${dir}/id1/${d}" "${dir}/demo/${d}" |
203 |
- done |
204 |
- fi |
205 |
- fi |
206 |
- prepgamesdirs |
207 |
-} |
208 |
- |
209 |
-pkg_postinst() { |
210 |
- games_pkg_postinst |
211 |
- |
212 |
- if ! use cdinstall && ! use demo ; then |
213 |
- elog "Place pak0.pak and pak1.pak in ${dir}/id1" |
214 |
- fi |
215 |
- |
216 |
- if use sdl ; then |
217 |
- ewarn "Select opengl with alsa, instead of sdl USE flag, for better audio latency." |
218 |
- fi |
219 |
-} |