Gentoo Archives: gentoo-commits

From: William Breathitt Gray <vilhelm.gray@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: games-fps/gzdoom/
Date: Sat, 11 May 2019 01:06:34
Message-Id: 1557486417.5ad016ab948bcf49f443c2f4182f185e6e357782.vilhelm.gray@gentoo
1 commit: 5ad016ab948bcf49f443c2f4182f185e6e357782
2 Author: William Breathitt Gray <vilhelm.gray <AT> gmail <DOT> com>
3 AuthorDate: Thu May 2 13:00:54 2019 +0000
4 Commit: William Breathitt Gray <vilhelm.gray <AT> gmail <DOT> com>
5 CommitDate: Fri May 10 11:06:57 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5ad016ab
7
8 games-fps/gzdoom: New package
9
10 Package-Manager: Portage-2.3.65, Repoman-2.3.12
11 Signed-off-by: William Breathitt Gray <vilhelm.gray <AT> gmail.com>
12
13 games-fps/gzdoom/Manifest | 1 +
14 games-fps/gzdoom/gzdoom-4.1.1.ebuild | 69 ++++++++++++++++++++++++++++++++++++
15 games-fps/gzdoom/metadata.xml | 19 ++++++++++
16 3 files changed, 89 insertions(+)
17
18 diff --git a/games-fps/gzdoom/Manifest b/games-fps/gzdoom/Manifest
19 new file mode 100644
20 index 0000000..21c3976
21 --- /dev/null
22 +++ b/games-fps/gzdoom/Manifest
23 @@ -0,0 +1 @@
24 +DIST gzdoom-4.1.1.tar.gz 13008847 BLAKE2B ac2bddbcc618148ed9de15dfe9105d1f3b9f319496b995d2af06834eb1349415ab3ee48beaa3e1acac04c81152e32bc89b71ac53576cf7789c1471a29a0a5339 SHA512 649e8bbf7f7f669d1bda13f1ab654428b69fa3e03a97eefb2ff1e996dbf62c66df72dddee9b8c139664ce5374ffbcdd8a10d1c4e3d0e6e65848ed5660b547d34
25
26 diff --git a/games-fps/gzdoom/gzdoom-4.1.1.ebuild b/games-fps/gzdoom/gzdoom-4.1.1.ebuild
27 new file mode 100644
28 index 0000000..2ebc1c2
29 --- /dev/null
30 +++ b/games-fps/gzdoom/gzdoom-4.1.1.ebuild
31 @@ -0,0 +1,69 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit cmake-utils desktop xdg
38 +
39 +DESCRIPTION="GZDoom - a modder-friendly OpenGL source port based on the DOOM engine"
40 +HOMEPAGE="https://zdoom.org"
41 +SRC_URI="https://github.com/coelckers/${PN}/archive/g${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="BSD BZIP2 DUMB-0.9.2 GPL-3 LGPL-3 MIT"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +IUSE="gtk openal openmp midi"
47 +
48 +DEPEND="
49 + app-arch/bzip2
50 + dev-util/glslang
51 + media-libs/libsdl2[opengl]
52 + sys-libs/zlib
53 + virtual/jpeg:0
54 + gtk? ( x11-libs/gtk+:* )
55 + midi? ( media-sound/wildmidi )
56 + openal? (
57 + media-libs/libsndfile
58 + media-libs/openal
59 + media-sound/mpg123
60 + )"
61 +RDEPEND="
62 + ${DEPEND}
63 + midi? (
64 + media-sound/fluidsynth
65 + media-sound/timidity++
66 + )"
67 +
68 +S="${WORKDIR}/${PN}-g${PV}"
69 +
70 +src_prepare() {
71 + cmake-utils_src_prepare
72 +}
73 +
74 +src_configure() {
75 + local mycmakeargs=(
76 + -DINSTALL_DOCS_PATH="${EPREFIX}/usr/share/doc/${P}/docs"
77 + -DNO_GTK="$(usex !gtk)"
78 + -DNO_OPENAL="$(usex !openal)"
79 + -DNO_OPENMP="$(usex !openmp)"
80 + )
81 + cmake-utils_src_configure
82 +}
83 +
84 +src_install() {
85 + newicon src/posix/zdoom.xpm "${PN}.xpm"
86 + make_desktop_entry "${PN}" "GZDoom" "${PN}" "Game;ActionGame"
87 + cmake-utils_src_install
88 +}
89 +
90 +pkg_preinst() {
91 + xdg_pkg_preinst
92 +}
93 +
94 +pkg_postinst() {
95 + xdg_pkg_postinst
96 +}
97 +
98 +pkg_postrm() {
99 + xdg_pkg_postrm
100 +}
101
102 diff --git a/games-fps/gzdoom/metadata.xml b/games-fps/gzdoom/metadata.xml
103 new file mode 100644
104 index 0000000..6a4872a
105 --- /dev/null
106 +++ b/games-fps/gzdoom/metadata.xml
107 @@ -0,0 +1,19 @@
108 +<?xml version="1.0" encoding="UTF-8"?>
109 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
110 +<pkgmetadata>
111 + <longdescription lang="en">
112 + GZDoom is a modder-friendly OpenGL source port based on the DOOM engine
113 + </longdescription>
114 + <maintainer type="person">
115 + <email>vilhelm.gray@×××××.com</email>
116 + <name>William Breathitt Gray</name>
117 + </maintainer>
118 + <use>
119 + <flag name="midi">Enables MIDI support</flag>
120 + </use>
121 + <upstream>
122 + <bugs-to>https://forum.zdoom.org/viewforum.php?f=2</bugs-to>
123 + <doc lang="en">https://zdoom.org</doc>
124 + <remote-id type="github">coelckers/gzdoom</remote-id>
125 + </upstream>
126 +</pkgmetadata>