Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-fps/gzdoom/
Date: Tue, 07 Jan 2020 23:15:08
Message-Id: 1578438354.1f0e7a72bdd75897993248ccd8bf8480148b7062.chewi@gentoo
1 commit: 1f0e7a72bdd75897993248ccd8bf8480148b7062
2 Author: William Breathitt Gray <vilhelm.gray <AT> gmail <DOT> com>
3 AuthorDate: Mon Jan 6 18:24:49 2020 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 7 23:05:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f0e7a72
7
8 games-fps/gzdoom: Version bump to 4.3.1
9
10 The "nonfree" USE flag is renamed to "non-free". The "alsa",
11 "fluidsynth", "mpg123", and "sndfile" USE flags are added to control
12 support of their respective packages.
13
14 Closes: https://bugs.gentoo.org/704880
15 Bug: https://bugs.gentoo.org/676158
16 Package-Manager: Portage-2.3.84, Repoman-2.3.20
17 Signed-off-by: William Breathitt Gray <vilhelm.gray <AT> gmail.com>
18 Closes: https://github.com/gentoo/gentoo/pull/14272
19 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
20
21 games-fps/gzdoom/Manifest | 2 +-
22 .../{gzdoom-4.2.4.ebuild => gzdoom-4.3.1.ebuild} | 29 +++++++++++++---------
23 games-fps/gzdoom/metadata.xml | 4 ++-
24 3 files changed, 21 insertions(+), 14 deletions(-)
25
26 diff --git a/games-fps/gzdoom/Manifest b/games-fps/gzdoom/Manifest
27 index b1ac6d58a84..1fb177efd01 100644
28 --- a/games-fps/gzdoom/Manifest
29 +++ b/games-fps/gzdoom/Manifest
30 @@ -1 +1 @@
31 -DIST gzdoom-4.2.4.tar.gz 13683768 BLAKE2B cfdecaf6d92720b3a61fe986a63e6230674cafc65d02f5496a073ffe870319eec62c58377204fd8509fce4869b2a970cc4d1ad98db055d063393ce59d04b1d4f SHA512 555e280db3d66a643cf1412ac1bae5f8c607af339a11a61b1039061de60cf6165c41b3de0c3323ac852b0b2f63f787a1c10ba9240da3174a85ec09d61f5b271a
32 +DIST gzdoom-4.3.1.tar.gz 13689272 BLAKE2B 3bc26732bc2f3281d0e5a1c667226153d411048877d3a716b6e4ce89534a38cde3763e5cf5d409d99bb053e75d5922b20b4b4d93ce574de58420ae89158eab32 SHA512 6904b8a132f720f07ba15bb4959cf248bba753c318e248d882c5701d919d35492a4fb460a4d4716bc26fde8a1c59d4bceaf3f626326a90a06d4f6cde6a180b96
33
34 diff --git a/games-fps/gzdoom/gzdoom-4.2.4.ebuild b/games-fps/gzdoom/gzdoom-4.3.1.ebuild
35 similarity index 67%
36 rename from games-fps/gzdoom/gzdoom-4.2.4.ebuild
37 rename to games-fps/gzdoom/gzdoom-4.3.1.ebuild
38 index f6844ab0cf1..1ba984d753b 100644
39 --- a/games-fps/gzdoom/gzdoom-4.2.4.ebuild
40 +++ b/games-fps/gzdoom/gzdoom-4.3.1.ebuild
41 @@ -1,4 +1,4 @@
42 -# Copyright 1999-2019 Gentoo Authors
43 +# Copyright 1999-2020 Gentoo Authors
44 # Distributed under the terms of the GNU General Public License v2
45
46 EAPI=7
47 @@ -10,23 +10,24 @@ HOMEPAGE="https://zdoom.org"
48 SRC_URI="https://github.com/coelckers/${PN}/archive/g${PV}.tar.gz -> ${P}.tar.gz"
49
50 LICENSE="BSD BZIP2 DUMB-0.9.3 GPL-3 LGPL-3 MIT
51 - nonfree? ( Activision ChexQuest3 DOOM-COLLECTORS-EDITION freedist )"
52 + non-free? ( Activision ChexQuest3 DOOM-COLLECTORS-EDITION freedist )"
53 SLOT="0"
54 KEYWORDS="~amd64 ~arm ~x86"
55 -IUSE="gtk gtk2 +nonfree openmp"
56 +IUSE="alsa fluidsynth gtk gtk2 mpg123 +non-free openmp sndfile"
57
58 DEPEND="
59 media-libs/libsdl2[opengl]
60 - media-libs/libsndfile
61 media-libs/openal
62 - media-sound/fluidsynth:=
63 - media-sound/mpg123
64 sys-libs/zlib
65 virtual/jpeg:0
66 + alsa? ( media-libs/alsa-lib )
67 + fluidsynth? ( media-sound/fluidsynth:= )
68 gtk? (
69 gtk2? ( x11-libs/gtk+:2 )
70 !gtk2? ( x11-libs/gtk+:3 )
71 - )"
72 + )
73 + mpg123? ( media-sound/mpg123 )
74 + sndfile? ( media-libs/libsndfile )"
75 RDEPEND="${DEPEND}"
76
77 S="${WORKDIR}/${PN}-g${PV}"
78 @@ -38,7 +39,7 @@ PATCHES=(
79
80 src_prepare() {
81 rm -rf docs/licenses || die
82 - if ! use nonfree ; then
83 + if ! use non-free ; then
84 rm -rf wadsrc_bm wadsrc_extra || die
85 fi
86
87 @@ -57,7 +58,11 @@ src_configure() {
88 -DNO_GTK="$(usex !gtk)"
89 -DNO_OPENAL=OFF
90 -DNO_OPENMP="$(usex !openmp)"
91 - -DBUILD_NONFREE="$(usex nonfree)"
92 + -DBUILD_NONFREE="$(usex non-free)"
93 + -DCMAKE_DISABLE_FIND_PACKAGE_ALSA="$(usex !alsa)"
94 + -DCMAKE_DISABLE_FIND_PACKAGE_FluidSynth="$(usex !fluidsynth)"
95 + -DCMAKE_DISABLE_FIND_PACKAGE_MPG123="$(usex !mpg123)"
96 + -DCMAKE_DISABLE_FIND_PACKAGE_SndFile="$(usex !sndfile)"
97 )
98 cmake_src_configure
99 }
100 @@ -71,10 +76,10 @@ src_install() {
101 pkg_postinst() {
102 xdg_pkg_postinst
103
104 - if ! use nonfree ; then
105 + if ! use non-free ; then
106 ewarn
107 - ewarn "GZDoom installed without nonfree components."
108 - ewarn "Note: The nonfree game_support.pk3 file is needed to play"
109 + ewarn "GZDoom installed without non-free components."
110 + ewarn "Note: The non-free game_support.pk3 file is needed to play"
111 ewarn " games natively supported by GZDoom."
112 ewarn "A list of games natively supported by GZDoom is available"
113 ewarn "on the ZDoom wiki: https://zdoom.org/wiki/IWAD"
114
115 diff --git a/games-fps/gzdoom/metadata.xml b/games-fps/gzdoom/metadata.xml
116 index 5b213dc3991..5e66764ba70 100644
117 --- a/games-fps/gzdoom/metadata.xml
118 +++ b/games-fps/gzdoom/metadata.xml
119 @@ -17,8 +17,10 @@
120 <name>Gentoo Games Project</name>
121 </maintainer>
122 <use>
123 + <flag name="fluidsynth">Enable support for MIDI via <pkg>media-sound/fluidsynth</pkg></flag>
124 <flag name="gtk2">Enable support for GTK+2 instead of GTK+3</flag>
125 - <flag name="nonfree">Enable non-free components</flag>
126 + <flag name="mpg123">Enable support for MPEG audio playback via <pkg>media-sound/mpg123</pkg></flag>
127 + <flag name="non-free">Enable non-free components</flag>
128 </use>
129 <upstream>
130 <bugs-to>https://forum.zdoom.org/viewforum.php?f=2</bugs-to>