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: Thu, 07 Nov 2019 21:28:45
Message-Id: 1573161782.01720b4e5e9176247590947ece391c1ee80e315f.chewi@gentoo
1 commit: 01720b4e5e9176247590947ece391c1ee80e315f
2 Author: William Breathitt Gray <vilhelm.gray <AT> gmail <DOT> com>
3 AuthorDate: Sun Nov 3 23:53:15 2019 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 7 21:23:02 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01720b4e
7
8 games-fps/gzdoom: Version bump to 4.2.4
9
10 Closes: https://bugs.gentoo.org/699264
11 Package-Manager: Portage-2.3.78, Repoman-2.3.17
12 Signed-off-by: William Breathitt Gray <vilhelm.gray <AT> gmail.com>
13 Closes: https://github.com/gentoo/gentoo/pull/13539
14 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
15
16 games-fps/gzdoom/Manifest | 1 +
17 games-fps/gzdoom/gzdoom-4.2.4.ebuild | 83 ++++++++++++++++++++++++++++++++++++
18 2 files changed, 84 insertions(+)
19
20 diff --git a/games-fps/gzdoom/Manifest b/games-fps/gzdoom/Manifest
21 index 41800813492..77c9697b179 100644
22 --- a/games-fps/gzdoom/Manifest
23 +++ b/games-fps/gzdoom/Manifest
24 @@ -1 +1,2 @@
25 DIST gzdoom-4.2.3.tar.gz 13682309 BLAKE2B 33bc9b2c3a28b9b692bd2b28ba45dce95274f78eb42b18c17e48b546b5b5f0c19fe09fd9c36fbb27bae4b1235dd8f0bddde0e67e46d07ea3bca776e6768e697a SHA512 d73b643f2ec6dbf7daa5048ba2db0f18968fb054ca9585dd07f18d20707efbe8e41cc3d8b4520d793d9d32ff34e1a6c74b2eaf84d0192d02263b907f5b3bbbc6
26 +DIST gzdoom-4.2.4.tar.gz 13683768 BLAKE2B cfdecaf6d92720b3a61fe986a63e6230674cafc65d02f5496a073ffe870319eec62c58377204fd8509fce4869b2a970cc4d1ad98db055d063393ce59d04b1d4f SHA512 555e280db3d66a643cf1412ac1bae5f8c607af339a11a61b1039061de60cf6165c41b3de0c3323ac852b0b2f63f787a1c10ba9240da3174a85ec09d61f5b271a
27
28 diff --git a/games-fps/gzdoom/gzdoom-4.2.4.ebuild b/games-fps/gzdoom/gzdoom-4.2.4.ebuild
29 new file mode 100644
30 index 00000000000..da843dc71ad
31 --- /dev/null
32 +++ b/games-fps/gzdoom/gzdoom-4.2.4.ebuild
33 @@ -0,0 +1,83 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +inherit cmake-utils desktop xdg
40 +
41 +DESCRIPTION="A modder-friendly OpenGL source port based on the DOOM engine"
42 +HOMEPAGE="https://zdoom.org"
43 +SRC_URI="https://github.com/coelckers/${PN}/archive/g${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="BSD BZIP2 DUMB-0.9.3 GPL-3 LGPL-3 MIT
46 + nonfree? ( Activision ChexQuest3 DOOM-COLLECTORS-EDITION freedist )"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm ~x86"
49 +IUSE="gtk gtk2 +nonfree openmp"
50 +
51 +DEPEND="
52 + media-libs/libsdl2[opengl]
53 + media-libs/libsndfile
54 + media-libs/openal
55 + media-sound/fluidsynth:=
56 + media-sound/mpg123
57 + sys-libs/zlib
58 + virtual/jpeg:0
59 + gtk? (
60 + gtk2? ( x11-libs/gtk+:2 )
61 + !gtk2? ( x11-libs/gtk+:3 )
62 + )"
63 +RDEPEND="${DEPEND}"
64 +
65 +S="${WORKDIR}/${PN}-g${PV}"
66 +
67 +PATCHES=(
68 + "${FILESDIR}/${PN}-4.2.1-install_soundfonts.patch"
69 + "${FILESDIR}/${PN}-4.2.1-Introduce-the-BUILD_NONFREE-option.patch"
70 +)
71 +
72 +src_prepare() {
73 + rm -rf docs/licenses || die
74 + if ! use nonfree ; then
75 + rm -rf wadsrc_bm wadsrc_extra || die
76 + fi
77 +
78 + cmake-utils_src_prepare
79 +}
80 +
81 +src_configure() {
82 + local mycmakeargs=(
83 + -DINSTALL_DOCS_PATH="${EPREFIX}/usr/share/doc/${PF}"
84 + -DINSTALL_PK3_PATH="${EPREFIX}/usr/share/doom"
85 + -DINSTALL_SOUNDFONT_PATH="${EPREFIX}/usr/share/doom"
86 + -DDYN_FLUIDSYNTH=OFF
87 + -DDYN_OPENAL=OFF
88 + -DDYN_SNDFILE=OFF
89 + -DDYN_MPG123=OFF
90 + -DNO_GTK="$(usex !gtk)"
91 + -DNO_OPENAL=OFF
92 + -DNO_OPENMP="$(usex !openmp)"
93 + -DBUILD_NONFREE="$(usex nonfree)"
94 + )
95 + cmake-utils_src_configure
96 +}
97 +
98 +src_install() {
99 + newicon src/posix/zdoom.xpm "${PN}.xpm"
100 + make_desktop_entry "${PN}" "GZDoom" "${PN}" "Game;ActionGame"
101 + cmake-utils_src_install
102 +}
103 +
104 +pkg_postinst() {
105 + xdg_pkg_postinst
106 +
107 + if ! use nonfree ; then
108 + ewarn
109 + ewarn "GZDoom installed without nonfree components."
110 + ewarn "Note: The nonfree 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 + ewarn
115 + fi
116 +}