Gentoo Archives: gentoo-commits

From: "Ian Stakenvicius (axs)" <axs@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-fps/quake3-bin: quake3-bin-1.32c-r2.ebuild ChangeLog
Date: Tue, 08 Jul 2014 21:20:48
Message-Id: 20140708212041.A4ACF2004E@flycatcher.gentoo.org
1 axs 14/07/08 21:20:41
2
3 Modified: ChangeLog
4 Added: quake3-bin-1.32c-r2.ebuild
5 Log:
6 bumped EAPI to 5, adjustd deps for gx86-multilib, dropped useless use flags, made USE=dedicated install only the dedicated server, as it should
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED)
9
10 Revision Changes Path
11 1.37 games-fps/quake3-bin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/quake3-bin/ChangeLog?rev=1.37&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/quake3-bin/ChangeLog?rev=1.37&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/quake3-bin/ChangeLog?r1=1.36&r2=1.37
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-fps/quake3-bin/ChangeLog,v
20 retrieving revision 1.36
21 retrieving revision 1.37
22 diff -u -r1.36 -r1.37
23 --- ChangeLog 1 Feb 2013 00:14:12 -0000 1.36
24 +++ ChangeLog 8 Jul 2014 21:20:41 -0000 1.37
25 @@ -1,6 +1,13 @@
26 # ChangeLog for games-fps/quake3-bin
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3-bin/ChangeLog,v 1.36 2013/02/01 00:14:12 mr_bones_ Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3-bin/ChangeLog,v 1.37 2014/07/08 21:20:41 axs Exp $
31 +
32 +*quake3-bin-1.32c-r2 (08 Jul 2014)
33 +
34 + 08 Jul 2014; Ian Stakenvicius (_AxS_) <axs@g.o>
35 + +quake3-bin-1.32c-r2.ebuild:
36 + bumped EAPI to 5, adjustd deps for gx86-multilib, dropped useless use flags,
37 + made USE=dedicated install only the dedicated server, as it should
38
39 01 Feb 2013; Michael Sterrett <mr_bones_@g.o> -quake3-bin-1.32c.ebuild:
40 old
41
42
43
44 1.1 games-fps/quake3-bin/quake3-bin-1.32c-r2.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/quake3-bin/quake3-bin-1.32c-r2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/quake3-bin/quake3-bin-1.32c-r2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: quake3-bin-1.32c-r2.ebuild
50 ===================================================================
51 # Copyright 1999-2014 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/games-fps/quake3-bin/quake3-bin-1.32c-r2.ebuild,v 1.1 2014/07/08 21:20:41 axs Exp $
54
55 EAPI=5
56 inherit eutils unpacker games
57
58 DESCRIPTION="3rd installment of the classic id 3D first-person shooter"
59 HOMEPAGE="http://www.idsoftware.com/"
60 SRC_URI="mirror://idsoftware/quake3/linux/linuxq3apoint-1.32b-3.x86.run
61 mirror://idsoftware/quake3/quake3-1.32c.zip"
62
63 LICENSE="Q3AEULA GPL-2" #gpl for init script bug #425942
64 SLOT="0"
65 KEYWORDS="-* ~amd64 ~x86"
66 IUSE="cdinstall dedicated teamarena"
67 RESTRICT="strip"
68
69 DEPEND="app-arch/unzip"
70 RDEPEND="sys-libs/glibc
71 amd64? ( sys-libs/glibc[multilib] )
72 cdinstall? (
73 games-fps/quake3-data[cdinstall]
74 teamarena? ( games-fps/quake3-teamarena )
75 )
76 dedicated? ( app-misc/screen )
77 !dedicated? ( || (
78 (
79 >=virtual/opengl-7.0-r1[abi_x86_32(-)]
80 >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
81 >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
82 )
83 (
84 app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
85 app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
86 )
87 ) )"
88
89 S=${WORKDIR}
90
91 dir=${GAMES_PREFIX_OPT}/quake3
92 Ddir=${D}/${dir}
93
94 QA_TEXTRELS="${dir:1}/pb/pbag.so
95 ${dir:1}/pb/pbcl.so
96 ${dir:1}/pb/pbsv.so"
97
98 src_unpack() {
99 unpack_makeself linuxq3apoint-1.32b-3.x86.run
100 unpack quake3-1.32c.zip
101 }
102
103 src_install() {
104 dodir "${dir}"/{baseq3,missionpack}
105 if use cdinstall ; then
106 dosym "${GAMES_DATADIR}"/quake3/baseq3/pak0.pk3 "${dir}"/baseq3/pak0.pk3
107 use teamarena && dosym "${GAMES_DATADIR}"/quake3/missionpack/pak0.pk3 \
108 "${dir}"/missionpack/pak0.pk3
109 fi
110 for pk3 in baseq3/*.pk3 missionpack/*.pk3 ; do
111 dosym "${GAMES_DATADIR}"/quake3/${pk3} "${dir}"/${pk3}
112 done
113
114 insinto "${dir}"
115 doins -r Docs pb || die "ins docs/pb"
116
117 exeinto "${dir}"
118 doins quake3.xpm README* Q3A_EULA.txt
119 if ! use dedicated ; then
120 doexe "Quake III Arena 1.32c"/linux/quake3*.x86 || die "doexe"
121 games_make_wrapper ${PN} ./quake3.x86 "${dir}" "${dir}"
122 newicon quake3.xpm ${PN}.xpm
123 make_desktop_entry ${PN} "Quake III Arena (binary)"
124 if use teamarena ; then
125 games_make_wrapper ${PN}-teamarena \
126 "./quake3.x86 +set fs_game missionpack" "${dir}" "${dir}"
127 make_desktop_entry ${PN}-teamarena \
128 "Quake III Team Arena (binary)" quake3-bin
129 fi
130 fi
131 doexe "Quake III Arena 1.32c"/linux/q3ded || die "doexe q3ded"
132 games_make_wrapper quake3-ded ./q3ded "${dir}" "${dir}"
133 newinitd "${FILESDIR}"/q3ded.rc quake3-ded
134 newconfd "${FILESDIR}"/q3ded.conf.d quake3-ded
135
136 prepgamesdirs
137 }
138
139 pkg_postinst() {
140 games_pkg_postinst
141 ewarn "There are two possible security bugs in this package, both causing a"
142 ewarn "denial of service. One affects the game when running a server, the"
143 ewarn "other when running as a client."
144 ewarn "For more information, please see bug #82149."
145
146 if ! use dedicated; then
147 echo
148 elog "To start the game, run:"
149 elog " quake3-bin"
150 fi
151 echo
152 elog "To start a dedicated server, run"
153 elog " /etc/init.d/quake3-ded start"
154 elog
155 elog "The dedicated server is started under the ${GAMES_USER_DED} user account."
156
157 # IA32 Emulation required for amd64
158 if use amd64 ; then
159 echo
160 ewarn "NOTE: IA32 Emulation must be compiled into your kernel for Quake3 to run."
161 fi
162 }