Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-fps/quakeforge/, games-fps/quakeforge/files/
Date: Thu, 09 Feb 2017 17:37:49
Message-Id: 1486661752.ee09b63d6dc5dd3408983d0f9b01477af3d9aed4.wizardedit@gentoo
1 commit: ee09b63d6dc5dd3408983d0f9b01477af3d9aed4
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 8 18:13:15 2017 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 9 17:35:52 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee09b63d
7
8 games-fps/quakeforge: remove deprecated games eclass
9
10 Also update to EAPI 6
11
12 Gentoo-Bug: https://bugs.gentoo.org/574082
13
14 Package-Manager: Portage-2.3.2, Repoman-2.3.1
15
16 .../quakeforge/files/quakeforge-0.7.2-gentoo.patch | 12 +-
17 games-fps/quakeforge/quakeforge-0.7.2-r1.ebuild | 127 +++++++++++++++++++++
18 2 files changed, 133 insertions(+), 6 deletions(-)
19
20 diff --git a/games-fps/quakeforge/files/quakeforge-0.7.2-gentoo.patch b/games-fps/quakeforge/files/quakeforge-0.7.2-gentoo.patch
21 index 396d7322b4..38fb0c1876 100644
22 --- a/games-fps/quakeforge/files/quakeforge-0.7.2-gentoo.patch
23 +++ b/games-fps/quakeforge/files/quakeforge-0.7.2-gentoo.patch
24 @@ -1,5 +1,5 @@
25 ---- nq/source/Makefile.am.old 2012-11-18 16:57:56.658388682 +0100
26 -+++ nq/source/Makefile.am 2012-11-18 16:58:11.470268607 +0100
27 +--- a/nq/source/Makefile.am 2012-11-18 16:57:56.658388682 +0100
28 ++++ b/nq/source/Makefile.am 2012-11-18 16:58:11.470268607 +0100
29 @@ -138,7 +138,7 @@
30 nq_x11_SOURCES= sys_unix.c
31 nq_x11_LDADD= $(nq_x11_libs) \
32 @@ -9,8 +9,8 @@
33 nq_x11_LDFLAGS= $(common_ldflags)
34 nq_x11_DEPENDENCIES= $(nq_x11_libs)
35
36 ---- qw/source/Makefile.am.old 2012-11-18 17:10:59.148172332 +0100
37 -+++ qw/source/Makefile.am 2012-11-18 17:11:55.866876762 +0100
38 +--- a/qw/source/Makefile.am 2012-11-18 17:10:59.148172332 +0100
39 ++++ b/qw/source/Makefile.am 2012-11-18 17:11:55.866876762 +0100
40 @@ -168,7 +168,7 @@
41 qw_client_x11_SOURCES= cl_sys_unix.c
42 qw_client_x11_LDADD= $(qw_client_x11_libs) \
43 @@ -20,8 +20,8 @@
44 qw_client_x11_LDFLAGS= $(common_ldflags)
45 qw_client_x11_DEPENDENCIES= $(qw_client_x11_libs)
46
47 ---- tools/qwaq/Makefile.am.old 2012-11-18 17:15:16.024714317 +0100
48 -+++ tools/qwaq/Makefile.am 2012-11-18 17:15:41.955749660 +0100
49 +--- a/tools/qwaq/Makefile.am 2012-11-18 17:15:16.024714317 +0100
50 ++++ b/tools/qwaq/Makefile.am 2012-11-18 17:15:41.955749660 +0100
51 @@ -38,7 +38,7 @@
52 qwaq_x11_SOURCES=qwaq.c qwaq-bi.c
53 qwaq_x11_LDADD= $(qwaq_x11_libs) $(QWAQ_LIBS) \
54
55 diff --git a/games-fps/quakeforge/quakeforge-0.7.2-r1.ebuild b/games-fps/quakeforge/quakeforge-0.7.2-r1.ebuild
56 new file mode 100644
57 index 0000000000..5762daa8e5
58 --- /dev/null
59 +++ b/games-fps/quakeforge/quakeforge-0.7.2-r1.ebuild
60 @@ -0,0 +1,127 @@
61 +# Copyright 1999-2017 Gentoo Foundation
62 +# Distributed under the terms of the GNU General Public License v2
63 +# $Id$
64 +
65 +EAPI=6
66 +inherit eutils flag-o-matic autotools
67 +
68 +DESCRIPTION="New 3d engine based off of id Softwares's Quake and QuakeWorld game engine"
69 +HOMEPAGE="http://www.quakeforge.net/"
70 +SRC_URI="mirror://sourceforge/quake/${P}.tar.bz2"
71 +
72 +LICENSE="GPL-2"
73 +SLOT="0"
74 +KEYWORDS="~amd64 ~ppc ~x86"
75 +IUSE="alsa cdinstall debug dga fbcon flac ipv6 ncurses oss png sdl vorbis wildmidi X xdg xv zlib"
76 +RESTRICT="userpriv"
77 +
78 +RDEPEND="
79 + media-libs/libsamplerate
80 + net-misc/curl
81 + virtual/opengl
82 + alsa? ( media-libs/alsa-lib )
83 + dga? ( x11-libs/libXxf86dga )
84 + flac? ( media-libs/flac )
85 + ncurses? ( sys-libs/ncurses:0 )
86 + png? ( media-libs/libpng:0 )
87 + sdl? ( media-libs/libsdl[video] )
88 + vorbis? (
89 + media-libs/libogg
90 + media-libs/libvorbis
91 + )
92 + wildmidi? ( media-sound/wildmidi )
93 + X? (
94 + x11-libs/libX11
95 + x11-libs/libXext
96 + x11-libs/libXxf86vm
97 + )
98 + xv? (
99 + x11-libs/libX11
100 + x11-libs/libXext
101 + x11-libs/libXxf86vm
102 + )
103 + zlib? ( sys-libs/zlib )"
104 +DEPEND="${RDEPEND}
105 + cdinstall? ( games-fps/quake1-data )
106 + >=sys-devel/bison-2.6
107 + sys-devel/flex
108 + virtual/pkgconfig"
109 +
110 +PATCHES=(
111 + "${FILESDIR}"/${P}-gentoo.patch
112 +)
113 +
114 +src_prepare() {
115 + default
116 + eautoreconf
117 + append-cflags -std=gnu89 # build with gcc5 (bug #570392)
118 +}
119 +
120 +src_configure() {
121 + local debugopts
122 + use debug \
123 + && debugopts="--enable-debug --disable-optimize --enable-profile" \
124 + || debugopts="--disable-debug --disable-profile"
125 +
126 + local clients=${QF_CLIENTS}
127 + use fbcon && clients="${clients},fbdev"
128 + use sdl && clients="${clients},sdl"
129 + use X && clients="${clients},x11"
130 + [ "${clients:0:1}" == "," ] && clients=${clients:1}
131 +
132 + local servers=${QF_SERVERS:-master,nq,qw,qtv}
133 +
134 + local tools=${QF_TOOLS:-all}
135 +
136 + econf \
137 + --enable-dependency-tracking \
138 + $(use_enable ncurses curses) \
139 + $(use_enable vorbis) \
140 + $(use_enable png) \
141 + $(use_enable zlib) \
142 + $(use_with ipv6) \
143 + $(use_with fbcon fbdev) \
144 + $(use_with X x) \
145 + $(use_enable xv vidmode) \
146 + $(use_enable dga) \
147 + $(use_enable sdl) \
148 + --disable-xmms \
149 + $(use_enable alsa) \
150 + $(use_enable flac) \
151 + $(use_enable oss) \
152 + $(use_enable xdg) \
153 + $(use_enable wildmidi) \
154 + --enable-sound \
155 + --disable-optimize \
156 + --disable-Werror \
157 + --without-svga \
158 + ${debugopts} \
159 + --with-global-cfg=/etc/quakeforge.conf \
160 + --with-sharepath=/usr/share/quake1 \
161 + --with-clients=${clients} \
162 + --with-servers=${servers} \
163 + --with-tools=${tools}
164 +}
165 +
166 +src_install() {
167 + emake -j1 DESTDIR="${D}" install
168 + dodoc ChangeLog NEWS TODO
169 +}
170 +
171 +pkg_postinst() {
172 + # same warning used in quake1 / quakeforge / nprquake-sdl
173 + echo
174 + elog "Before you can play, you must make sure"
175 + elog "${PN} can find your Quake .pak files"
176 + elog
177 + elog "You have 2 choices to do this"
178 + elog "1 Copy pak*.pak files to /usr/share/quake1/id1"
179 + elog "2 Symlink pak*.pak files in /usr/share/quake1/id1"
180 + elog
181 + elog "Example:"
182 + elog "my pak*.pak files are in /mnt/secondary/Games/Quake/Id1/"
183 + elog "ln -s /mnt/secondary/Games/Quake/Id1/pak0.pak /usr/share/quake1/id1/pak0.pak"
184 + elog
185 + elog "You only need pak0.pak to play the demo version,"
186 + elog "the others are needed for registered version"
187 +}