Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/bzflag/files/, games-action/bzflag/
Date: Tue, 31 Oct 2017 20:00:32
Message-Id: 1509480016.40de8499e9897764a20749052cce6a1ac4086f5e.tupone@gentoo
1 commit: 40de8499e9897764a20749052cce6a1ac4086f5e
2 Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 31 20:00:16 2017 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 31 20:00:16 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40de8499
7
8 games-action/bzflag: Version bump to 2.4.12
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.3
11
12 games-action/bzflag/Manifest | 1 +
13 games-action/bzflag/bzflag-2.4.12.ebuild | 62 ++++++++++++++++++++++
14 .../bzflag/files/bzflag-2.4.12-configure.patch | 37 +++++++++++++
15 3 files changed, 100 insertions(+)
16
17 diff --git a/games-action/bzflag/Manifest b/games-action/bzflag/Manifest
18 index 61903bf003d..ef2e5312cc6 100644
19 --- a/games-action/bzflag/Manifest
20 +++ b/games-action/bzflag/Manifest
21 @@ -1,4 +1,5 @@
22 DIST bzflag-2.4.10.tar.bz2 13967644 SHA256 0a47454ae4b2fea494581962a554ceb8195084c4d96e97aa572a5fa774699efa SHA512 a120b757d9ea23a189db7f126140d338f6e1c6a34b7f28ca69b2ec15d39c8a5da79aeab622cc6b7227587556bb89904b4a6013b0bb88baa7f01f667d259456a9 WHIRLPOOL e5b35d31aa4fcb974a2720d4ed070f89652c1734de0769cbb461cfb6751f5fc32a48091f25bd91b288717b2a4fbb153a20efdb396580c50c903fc6f9023f81e6
23 +DIST bzflag-2.4.12.tar.bz2 14042357 SHA256 a8a13a58648798a6f6f969a2911cf21377fe45964f2edf46a327d1370ff1000d SHA512 9b5fa6b7ab7eb13043242defcc86cbed083e98306b2f611932b48d6d833a37bbe2ab05a0a3d1a2c9b861bfbd834fc6e86783ba82d8a841527d0eedb06f3bde9f WHIRLPOOL 9cceae20593b0359af6968876646f09a21f46708efcdab6e8f83258eed09d78d937ba4731aa34436a6324cc7d03cb768704fec627c3c74712b71f1fb8d590d3a
24 DIST bzflag-2.4.2.tar.bz2 15971448 SHA256 4f7bc52284cc4b39fc352855e555b2b064c1de6a18f7474e249073070762c811 SHA512 e5645e825f19896ad4dc1e3bf97c9b52ed3838210d97d5532936a9306623283330c9535288af90f86e32c88a1a7996b2c872b9c081558eea48400b86b3a1a6ff WHIRLPOOL 82a5e543a8fdcb80c516394c63901c80c77fc659090f952cb36f65a9fb14c5ca06d6547dc9d347c6abf0ee706c40437f80edf20c424775bf6e202423e025794c
25 DIST bzflag-2.4.4.tar.bz2 13922761 SHA256 5842941e53440d2e88c955ddb594964fc5145912f61100832d224c1a017e2ecb SHA512 ee9eefe6a24250f1aa0ac808755f2e3700ea97c559019ca8beefb8d236afd1571314f07a8f19662677526ae364d38617a1a62b356e851c27669cb9acef1a8fd3 WHIRLPOOL c96853e3f1053a9b53c9d6ba27a6f638c2913e87a26d6188151a66f8f78aeeb78fac28e8cefde10d23d65fe02e49b93cd4516993e5b48a6f3f240ec67ab0fc8e
26 DIST bzflag-2.4.6.tar.bz2 13919761 SHA256 a44506828d09fe26f06658aae7f579080ecbaef5bd19a938dfed604e0c8afb45 SHA512 b2c82b75a99aa47975d98030104654da6ae3943582a22e18faf157c8929d96ab255a4343e044baa76714b8564c60194b6edbc7b8e28a3352848c471365678205 WHIRLPOOL 069dc60acc93b6159bac330c81a63493e370590ce09b871a17acdfcdf8b9ac6f84c6937ecc29df5d826a475f527f6fdaabf3b26f31ec5ef29824964f43c232de
27
28 diff --git a/games-action/bzflag/bzflag-2.4.12.ebuild b/games-action/bzflag/bzflag-2.4.12.ebuild
29 new file mode 100644
30 index 00000000000..909cc844079
31 --- /dev/null
32 +++ b/games-action/bzflag/bzflag-2.4.12.ebuild
33 @@ -0,0 +1,62 @@
34 +# Copyright 1999-2017 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +inherit eutils flag-o-matic autotools
39 +
40 +DESCRIPTION="3D tank combat simulator game"
41 +HOMEPAGE="http://www.bzflag.org/"
42 +SRC_URI="https://download.bzflag.org/bzflag/source/${PV}/${P}.tar.bz2"
43 +
44 +LICENSE="LGPL-2.1"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="dedicated upnp"
48 +
49 +DEPEND="
50 + net-dns/c-ares
51 + >=net-misc/curl-7.15.0
52 + sys-libs/ncurses:0
53 + sys-libs/zlib
54 + !dedicated? (
55 + media-libs/libsdl2[joystick,sound,video]
56 + virtual/glu
57 + virtual/opengl )
58 + upnp? ( net-libs/miniupnpc )"
59 +RDEPEND=${DEPEND}
60 +
61 +PATCHES=(
62 + "${FILESDIR}"/${P}-configure.patch
63 +)
64 +
65 +src_prepare() {
66 + default
67 + eautoreconf
68 +}
69 +
70 +src_configure() {
71 + local myconf
72 +
73 + if use dedicated ; then
74 + ewarn
75 + ewarn "You are building a server-only copy of BZFlag"
76 + ewarn
77 + myconf="--disable-client --without-SDL"
78 + fi
79 +
80 + econf \
81 + $(use_enable upnp UPnP) \
82 + ${myconf}
83 +}
84 +
85 +src_install() {
86 + DOCS="AUTHORS ChangeLog DEVINFO PORTING README README.Linux" \
87 + default
88 +
89 + if ! use dedicated ; then
90 + newicon data/bzflag-48x48.png ${PN}.png
91 + make_desktop_entry ${PN} "BZFlag"
92 + fi
93 +
94 + prune_libtool_files --modules
95 +}
96
97 diff --git a/games-action/bzflag/files/bzflag-2.4.12-configure.patch b/games-action/bzflag/files/bzflag-2.4.12-configure.patch
98 new file mode 100644
99 index 00000000000..b280621f6ec
100 --- /dev/null
101 +++ b/games-action/bzflag/files/bzflag-2.4.12-configure.patch
102 @@ -0,0 +1,37 @@
103 +diff -ru bzflag-2.4.4.orig/configure.ac bzflag-2.4.4/configure.ac
104 +--- bzflag-2.4.4.orig/configure.ac 2016-02-14 19:09:51.000000000 -0500
105 ++++ bzflag-2.4.4/configure.ac 2016-05-05 16:35:35.475935345 -0400
106 +@@ -215,7 +215,7 @@
107 + AC_SUBST(AR)
108 + AC_SUBST(AR_FLAGS)
109 +
110 +-AC_PATH_PROG(CCACHE, ccache)
111 ++AC_PATH_PROG(CCACHE, ccachex)
112 + if test "$CCACHE" ; then
113 + CC="ccache $CC"
114 + CXX="ccache $CXX"
115 +@@ -747,13 +747,13 @@
116 + #
117 + # the GCC version is known to be at least 4.3 because it has C++0x support
118 + # possible future warnings: -Wconversion (1894) -Wfloat-equal (317)
119 +-FLAGS="-Wall -Wextra -Wcast-qual -Wredundant-decls -Wshadow -Wundef -pedantic"
120 ++FLAGSx="-Wall -Wextra -Wcast-qual -Wredundant-decls -Wshadow -Wundef -pedantic"
121 + case $host_os in
122 + linux*)
123 + AC_DEFINE(HALF_RATE_AUDIO, 1, [Half rate Audio])
124 + CONF_CFLAGS="$CONF_CFLAGS $FLAGS"
125 + CONF_CXXFLAGS="$CONF_CXXFLAGS $FLAGS"
126 +- case $host_vendor in
127 ++ case $host_vendorx in
128 + pc)
129 + if expr `$CC -dumpversion` \>= "3.4" > /dev/null ; then
130 + FLAGS=-mtune
131 +@@ -836,7 +836,7 @@
132 + CXXFLAGS="$user_CXXFLAGS"
133 + AC_DEFINE(DEBUG, 1, [Debugging enabled])
134 + else
135 +- if test "$GCC" = yes ; then
136 ++ if test "$GCC" = yesx ; then
137 + case "`$CC --version 2>&1`" in
138 + *LLVM*)
139 + # Apple LLVM falsely claims to be GCC