diff options
Diffstat (limited to 'games-fps')
23 files changed, 2058 insertions, 8 deletions
diff --git a/games-fps/Manifest.gz b/games-fps/Manifest.gz Binary files differindex ddd088486594..9d5751898706 100644 --- a/games-fps/Manifest.gz +++ b/games-fps/Manifest.gz diff --git a/games-fps/chocolate-doom/Manifest b/games-fps/chocolate-doom/Manifest new file mode 100644 index 000000000000..ccd5a3e5dc1b --- /dev/null +++ b/games-fps/chocolate-doom/Manifest @@ -0,0 +1,18 @@ +AUX chocolate-doom-3.0.1-Add-support-for-usr-share-doom-IWAD-search-path.patch 974 BLAKE2B f78467d51ddf2c861997e1afc7d066eb1b100c1061c4a4e9dde380ab31eb67b3cbad01a31a1f4819dd99b991a50f1397c316461d70bf3ce527df497c4dab4231 SHA512 c57143a4aca041f2e72ac335b1d787ffa4584819754c139e7e33d12a7bd2a296069437166f7daf8310cdd43b8d355849f445c5d9221c5a1fb5bc5c452ef75761 +AUX chocolate-doom-3.0.1-Fix-Python-check.patch 1947 BLAKE2B 452441cbb5bd91940912a9455b24d57758f6f5c1a9cc9f8185afaa9ab17dfa40189858d8bef209d45b447d900a046ea7aa8e05fa1edb97f8216835cb6427ec00 SHA512 3be6912d8e058dc6554a647d86e757e2101cb5fab1c5080c559e386d79b84472b1e9976a830f18eaaa424f7a5ad89bcb206fba0cc7a6147bb3cf979cfaad1d8c +AUX chocolate-doom-3.0.1-Introduce-configure-options-for-bash-completion-doc-.patch 5520 BLAKE2B 230c1214875b02a75499b7861619f08b56f5ad4cf529bca5697da23e345faaddf33268196543c466829e892bb7c8e778349ace95facffbbad24c2d16a2beeba7 SHA512 c3891e032b97f97ac80740b0c619c00b452ba554bf6c16bfee22056b08cd479dc849464e5da806371af961ad2384b65121fef084fa4b1d5057f1c2ad34f5e622 +AUX chocolate-doom-3.0.1-Remove-redundant-demoextend-definition.patch 830 BLAKE2B c194a07fb7cfb846362fadad986b5d99fcb69250444acbe68a4843f019a2d1ae5ece21e71f1efad1036047710c8d4ac168341e1abdefb91b2b5b5b6fbc164ea5 SHA512 9fbf7d505c270cb00d36e0d5c92a8097ce4b1ac8b3f6bc718473a39e7bf16a36b6a94900fb1ffb85ea99fdf00d6cc2b1c30e4da023949228c083578c5d6e4a38 +AUX chocolate-doom-3.0.1-Update-AppStream-XML-files-to-current-0.11-standards.patch 3835 BLAKE2B 6a279689c6b0fe373a2318d1c711105b854130e40c15d76f8146a36eb5b2af8ca7ef8e31883d6a245779836f72ddac5e88e6b578310d21885975b66b1222124d SHA512 3ccc928628fa092c036c5b825ef9fe3fa170f64cf33034511cd2d9b9b57af8b78babe014d073b786e52c826367898b002b57226c685bd7e2f36588a8fbd37f53 +AUX chocolate-doom-3.0.1-Update-documentation-about-usr-share-doom-IWAD-locat.patch 1431 BLAKE2B d08a7a5d4e1e2247b968d2b21b72764f1af934a53f19a66a0058ef1757be260fff73dccf825db19746a7787c71c0e59c4dfac364042adee8c2bf86f0d0873a30 SHA512 bc479e8c05458055dfd4d6f6727e299a879276e02df8f3a9cdb6c2588526acaf3937ee022b9a06061a54e8fc34a7b43e3e2f5d9f3480540e85fd742ecd68ef69 +AUX chocolate-doom-3.0.1-Update-to-latest-AppStream-formerly-AppData-standard.patch 4164 BLAKE2B 8f878ae2576e690f3bdb95258b7e77f7aa617fba30fa61f8714250f3dcb5a586e35abb48baefd341c684d377fbcad14aac16324e371e359c2fa1f20e59983956 SHA512 f6193aef289756c25f02bcfdef4ed2cc14c787942a777c48564a2ccb4243601e7ef2d4ecae3e6c9c3b00c04baf1557c52625562424c5c27ceeb626827e9e5559 +AUX chocolate-doom-3.0.1-bash-completion-Build-from-actual-shell-script-templ.patch 2212 BLAKE2B 7058539a2cc4bfc9ba20791909b3cec925f4d90ad5239a8d4f788f28907d3226d3bed5294e386b370b0d7f1a75be30c2b14621ec55e23bd36ffc6c022ca0ffcd SHA512 7bb934a6913d2c5962e783f56ab8d5df05d98bb8a18fd7449b7ec7ab0bfc95ea3d782aec5f988b0817b7763aa65f402b9662f3470f251221c68a0638ebdfbc05 +AUX chocolate-doom-3.0.1-bash-completion-always-install-into-datadir-bash-com.patch 2188 BLAKE2B 526f6d87950258b00d7ef852353dd8019ad8422ebbe19fe9489e7672946d9e7d56d78f81eaa476eb313a95812d41a0efc82e13c6d70f80130a14a8d091b13a58 SHA512 e695494d53657030b2fe40816593db157cf70d79d2d02468c860eba69874fca01b27dc3b3b19e2187d3cf7f31b05c443617a61ae3910647ad1119903e3260820 +AUX chocolate-doom-3.0.1-bash-completion-run-docgen-with-z-argument.patch 892 BLAKE2B 51af27f4dd0338ac8d29e7b77a16b702d355feff40afda2ebc5f6b1057ea11c8d9d9b023a986dea0ba8b0828619578127fa17800c901cb0cc5c7bdffa52adb27 SHA512 10f1acb461a81662b674f1d35ff2b8c556826466ced7e0d25b6d8dfc9cd94a4d42295cfe8c04ebe09141212e7c591c6e049e32e6c06994c3f4f7c7472ee3448b +AUX chocolate-doom-3.0.1-configure-add-AM_PROG_AR-macro.patch 753 BLAKE2B c3e93573a6db50a12f0b371907494abe15c0219531eee8e3c048cf4d2dd6820a98addb554f97f6a76ba407ab8f3f0361ec6371da8ad981f4eeaa3130803144e1 SHA512 adfca882ffd5fcb5ded12392f735d3c77cd62798b8bf3c7f524c10560b5737053208690815622ad2fadb87a5de5033dae270773b3054ebdba331bf390f03a70a +AUX chocolate-doom-3.0.1-further-manpage-substitutions-and-fixes.patch 13342 BLAKE2B 8ceec61cdae27a31a019080dd9dc77256ecf492212b2528f70508496832f3e77f61711db604752d87ffb3501161b3f787c5ac734536e45b494ca59b8e40d635c SHA512 c13e2049c254f8172202132ce087c5132f263c00b1100c78ce1238f30050dde365b9a77a33447487bf108ddfea9eb39f257a370e4dc4f1b0b1a415424263151e +AUX chocolate-doom-3.0.1-install-AppStream-metadata-into-the-proper-location.patch 890 BLAKE2B bed8d484ff1b4640f1626b7bc3b2f1f751b71acf4dacc49cf7318ecbee2de1c7458acd69297c5db00e59d2e647c3cade93a18dcc956a03f84f4c66d49253aa81 SHA512 77490a5b2a4691611b2460eeba10e232f90f88dd87bbfdcd485589841022be65f8d62867100d3228bd94dee839569582182e0e8f940cfb54d8fa16bf3a6e3a60 +AUX chocolate-doom-3.0.1-overhaul-manpages-add-parameters.patch 26737 BLAKE2B ec7955b2a94c918a40394aa57d18c709e33caf3d7724a16333178d2ae7dea5af3fce2e824d4ce6565adc9da8a540e81e9d1f2cfc8c0efbc9720d814b2a5a6013 SHA512 03091ab41580712b8f74b97d4bd6fb0cfdb0b77d49b55282a891a6f30252bd6aee8bf4c3bee03521163696e9ea8e22eb53a1a32789bc2517179fb5ab2cb20eba +AUX chocolate-doom-3.0.1-use-reverse-DNS-naming-for-installing-.desktop-files.patch 5485 BLAKE2B d89e14a071349cd772e5f91962429d0cdf152e2acd92be842068ee39569f79f451513a5bbd5a35f6abcd15d3eb73235e429025db1fb320c58f28feb3ca5c1d98 SHA512 e12d7e64baaaab44d8f6372cd057b4622e3758de6fb39365bcb047980eeccb6ec0b571185d084a56ac4c28a1d2916d3a8beef29466bb5d406eced60a3b2ddc6d +DIST chocolate-doom-3.0.1.tar.gz 2245563 BLAKE2B 0c9babfbc9e52ea7822ca00c0dbf84e471bfe6d6ec94f729d3d0f72243205b060e5a3b5f1f99728da7764e81af735b45d001bb368dd2b5796666554e3c911090 SHA512 2a81905cf619ea2def7e2f9ebe65b38543d01bd83a95e535e88d04a79f2676f8ba0da64031a650bd905e1345cda1b9d28a398ad87c10c92f2d3d50f3253ec214 +EBUILD chocolate-doom-3.0.1.ebuild 2373 BLAKE2B 45aa78065367ecc0368701bd8b82cc7c949159e2872194fb77f8ebd52858efdedacb5cbbf9aefb1b9499f46a1138f1fc4b8ce0b61d5d7177bc0e48068dec9124 SHA512 dc9e7e5d007f941431166ec9f4c9eddf7a25fe8e77dc1980f515af30749d09c0ed2c41ba413b19b53791a1e3eac575dcd6b598e956e0cbc14b75b745feb8e935 +MISC metadata.xml 1003 BLAKE2B 7d7f22f55c7c99f6578170dbd54c5fb069659e84014435de02b9b4aadc5db709869037f0b3289627e2ea599d9c6b4ee8dc72105efb7618d8a0b067ac916863b2 SHA512 792c554618194cd1a36ee2ec6eab0b63efc7485ea5097059c749beba812f0af3ef53d455c62f74d558efba2a0a906c92cab82e78ccca8f4e55bb298525baf2d6 diff --git a/games-fps/chocolate-doom/chocolate-doom-3.0.1.ebuild b/games-fps/chocolate-doom/chocolate-doom-3.0.1.ebuild new file mode 100644 index 000000000000..5809e2bf6321 --- /dev/null +++ b/games-fps/chocolate-doom/chocolate-doom-3.0.1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8} ) + +inherit autotools prefix python-any-r1 xdg + +DESCRIPTION="A Doom source port that is minimalist and historically accurate" +HOMEPAGE="https://www.chocolate-doom.org" +SRC_URI="https://github.com/${PN}/${PN}/archive/${P}.tar.gz" + +LICENSE="BSD GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="bash-completion doc libsamplerate +midi png vorbis" + +DEPEND=" + media-libs/libsdl2[video] + media-libs/sdl2-mixer[midi?,vorbis?] + media-libs/sdl2-net + libsamplerate? ( media-libs/libsamplerate ) + png? ( media-libs/libpng:= )" +RDEPEND="${DEPEND}" +BDEPEND=" + bash-completion? ( ${PYTHON_DEPS} ) + doc? ( ${PYTHON_DEPS} )" + +S="${WORKDIR}/${PN}-${P}" + +PATCHES=( + "${FILESDIR}/${P}-overhaul-manpages-add-parameters.patch" + "${FILESDIR}/${P}-further-manpage-substitutions-and-fixes.patch" + "${FILESDIR}/${P}-bash-completion-run-docgen-with-z-argument.patch" + "${FILESDIR}/${P}-install-AppStream-metadata-into-the-proper-location.patch" + "${FILESDIR}/${P}-Update-AppStream-XML-files-to-current-0.11-standards.patch" + "${FILESDIR}/${P}-bash-completion-Build-from-actual-shell-script-templ.patch" + "${FILESDIR}/${P}-configure-add-AM_PROG_AR-macro.patch" + "${FILESDIR}/${P}-bash-completion-always-install-into-datadir-bash-com.patch" + "${FILESDIR}/${P}-Update-to-latest-AppStream-formerly-AppData-standard.patch" + "${FILESDIR}/${P}-use-reverse-DNS-naming-for-installing-.desktop-files.patch" + "${FILESDIR}/${P}-Remove-redundant-demoextend-definition.patch" + "${FILESDIR}/${P}-Introduce-configure-options-for-bash-completion-doc-.patch" + "${FILESDIR}/${P}-Add-support-for-usr-share-doom-IWAD-search-path.patch" + "${FILESDIR}/${P}-Update-documentation-about-usr-share-doom-IWAD-locat.patch" + "${FILESDIR}/${P}-Fix-Python-check.patch" +) + +DOCS=( + "AUTHORS" + "ChangeLog" + "NEWS.md" + "NOT-BUGS.md" + "PHILOSOPHY.md" + "README.md" + "README.Music.md" + "README.Strife.md" +) + +src_prepare() { + default + + hprefixify src/d_iwad.c + + eautoreconf +} + +src_configure() { + econf \ + $(use_enable bash-completion) \ + $(use_enable doc) \ + --disable-fonts \ + --disable-icons \ + $(use_with libsamplerate) \ + $(use_with png libpng) +} + +src_install() { + emake DESTDIR="${D}" install + + # Remove redundant documentation files + rm -r "${ED}/usr/share/doc/"* || die + + einstalldocs +} diff --git a/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Add-support-for-usr-share-doom-IWAD-search-path.patch b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Add-support-for-usr-share-doom-IWAD-search-path.patch new file mode 100644 index 000000000000..719ec12a93dc --- /dev/null +++ b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Add-support-for-usr-share-doom-IWAD-search-path.patch @@ -0,0 +1,27 @@ +From 405662edfda15bd4ba2a6e32023eeb8c5e73646f Mon Sep 17 00:00:00 2001 +From: William Breathitt Gray <vilhelm.gray@gmail.com> +Date: Thu, 25 Jun 2020 11:13:55 -0400 +Subject: [PATCH] Add support for /usr/share/doom IWAD search path + +Some Linux distros such as Gentoo have deprecated the /usr/share/games +directory. IWADs are typically installed under the /usr/share directory +for these distros. +--- + src/d_iwad.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/d_iwad.c b/src/d_iwad.c +index 09853a64..e112e4f4 100644 +--- a/src/d_iwad.c ++++ b/src/d_iwad.c +@@ -657,6 +657,7 @@ static void AddXdgDirs(void) + // source ports is /usr/share/games/doom - we support this through the + // XDG_DATA_DIRS mechanism, through which it can be overridden. + AddIWADPath(env, "/games/doom"); ++ AddIWADPath(env, "/doom"); + + // The convention set by RBDOOM-3-BFG is to install Doom 3: BFG + // Edition into this directory, under which includes the Doom +-- +2.26.2 + diff --git a/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Fix-Python-check.patch b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Fix-Python-check.patch new file mode 100644 index 000000000000..8d4f169bd03e --- /dev/null +++ b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Fix-Python-check.patch @@ -0,0 +1,54 @@ +From ab1a38d8e902baebc7183fb511bd58c50e2b4571 Mon Sep 17 00:00:00 2001 +From: William Breathitt Gray <vilhelm.gray@gmail.com> +Date: Mon, 24 Aug 2020 09:03:57 -0400 +Subject: [PATCH] Fix Python check for doc, bash-completion, fonts, and icons + options + +Fixes: cfc56fa6 ("Introduce configure options for bash-completion, doc, fonts, and icons") +--- + configure.ac | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 9bef517a..4dbd2db7 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -40,7 +40,7 @@ AC_ARG_ENABLE([bash-completion], + AS_HELP_STRING([--disable-bash-completion], [Disable bash-completion]) + ) + AS_IF([test "x$enable_bash_completion" != xno], [ +- AS_IF([test HAVE_PYTHON = false], [ ++ AS_IF([test "x$HAVE_PYTHON" = xfalse], [ + AC_MSG_WARN([Building bash-completion requires Python, but Python not found]) + enable_bash_completion=no + ]) +@@ -51,7 +51,7 @@ AC_ARG_ENABLE([doc], + AS_HELP_STRING([--disable-doc], [Disable documentation]) + ) + AS_IF([test "x$enable_doc" != xno], [ +- AS_IF([test HAVE_PYTHON = false], [ ++ AS_IF([test "x$HAVE_PYTHON" = xfalse], [ + AC_MSG_WARN([Building documentation requires Python, but Python not found]) + enable_doc=no + ]) +@@ -62,7 +62,7 @@ AC_ARG_ENABLE([fonts], + AS_HELP_STRING([--disable-fonts], [Disable fonts]) + ) + AS_IF([test "x$enable_fonts" != xno], [ +- AS_IF([test HAVE_PYTHON = false], [ ++ AS_IF([test "x$HAVE_PYTHON" = xfalse], [ + AC_MSG_WARN([Building fonts require Python, but Python not found]) + enable_fonts=no + ]) +@@ -73,7 +73,7 @@ AC_ARG_ENABLE([icons], + AS_HELP_STRING([--disable-icons], [Disable icons]) + ) + AS_IF([test "x$enable_icons" != xno], [ +- AS_IF([test HAVE_PYTHON = false], [ ++ AS_IF([test "x$HAVE_PYTHON" = xfalse], [ + AC_MSG_WARN([Building icons require Python, but Python not found]) + enable_icons=no + ]) +-- +2.28.0 + diff --git a/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Introduce-configure-options-for-bash-completion-doc-.patch b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Introduce-configure-options-for-bash-completion-doc-.patch new file mode 100644 index 000000000000..bb1e000460a5 --- /dev/null +++ b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Introduce-configure-options-for-bash-completion-doc-.patch @@ -0,0 +1,171 @@ +From cfc56fa6a5809c2dbc7276df3579836e586d9193 Mon Sep 17 00:00:00 2001 +From: William Breathitt Gray <vilhelm.gray@gmail.com> +Date: Tue, 23 Jun 2020 12:56:01 -0400 +Subject: [PATCH] Introduce configure options for bash-completion, doc, fonts, + and icons + +This patch introduces the --enable-bash-completion, --enable-doc, +--enable-fonts, and --enable-icons configuration options to control the +build of bash-completion, documentation, fonts, and icons respectively. +This is useful for users of systems such as Gentoo which allow custom +configuration of packages, or for package maintainers in general who +would like finer control over the components built when compiling +Chocolate Doom. +--- + Makefile.am | 2 +- + configure.ac | 49 ++++++++++++++++++++++++++++++++- + man/Makefile.am | 2 +- + man/bash-completion/Makefile.am | 2 +- + src/Makefile.am | 2 +- + src/setup/Makefile.am | 2 +- + textscreen/fonts/Makefile.am | 2 +- + 7 files changed, 54 insertions(+), 7 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 1bd91a43..70f2e5b9 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -50,7 +50,7 @@ SUBDIRS=textscreen midiproc opl pcsound data src man + + DIST_SUBDIRS=pkg $(SUBDIRS) + +-if HAVE_PYTHON ++if HAVE_DOC + + INSTALL : man/INSTALL.template man/simplecpp + ./man/simplecpp -DDOOM -DHERETIC -DHEXEN -DSTRIFE \ +diff --git a/configure.ac b/configure.ac +index 8e18a0e9..9bef517a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -35,6 +35,50 @@ PKG_CHECK_MODULES(SDL, [sdl2 >= 2.0.1]) + PKG_CHECK_MODULES(SDLMIXER, [SDL2_mixer >= 2.0.0]) + PKG_CHECK_MODULES(SDLNET, [SDL2_net >= 2.0.0]) + ++# Check for bash-completion. ++AC_ARG_ENABLE([bash-completion], ++AS_HELP_STRING([--disable-bash-completion], [Disable bash-completion]) ++) ++AS_IF([test "x$enable_bash_completion" != xno], [ ++ AS_IF([test HAVE_PYTHON = false], [ ++ AC_MSG_WARN([Building bash-completion requires Python, but Python not found]) ++ enable_bash_completion=no ++ ]) ++]) ++ ++# Check for doc. ++AC_ARG_ENABLE([doc], ++AS_HELP_STRING([--disable-doc], [Disable documentation]) ++) ++AS_IF([test "x$enable_doc" != xno], [ ++ AS_IF([test HAVE_PYTHON = false], [ ++ AC_MSG_WARN([Building documentation requires Python, but Python not found]) ++ enable_doc=no ++ ]) ++]) ++ ++# Check for fonts. ++AC_ARG_ENABLE([fonts], ++AS_HELP_STRING([--disable-fonts], [Disable fonts]) ++) ++AS_IF([test "x$enable_fonts" != xno], [ ++ AS_IF([test HAVE_PYTHON = false], [ ++ AC_MSG_WARN([Building fonts require Python, but Python not found]) ++ enable_fonts=no ++ ]) ++]) ++ ++# Check for icons. ++AC_ARG_ENABLE([icons], ++AS_HELP_STRING([--disable-icons], [Disable icons]) ++) ++AS_IF([test "x$enable_icons" != xno], [ ++ AS_IF([test HAVE_PYTHON = false], [ ++ AC_MSG_WARN([Building icons require Python, but Python not found]) ++ enable_icons=no ++ ]) ++]) ++ + # Check for libsamplerate. + AC_ARG_WITH([libsamplerate], + AS_HELP_STRING([--without-libsamplerate], +@@ -106,7 +150,10 @@ AS_IF([test "x$enable_werror" = "xyes"], [ + ]) + + AM_CONDITIONAL(HAVE_WINDRES, test "$WINDRES" != "") +-AM_CONDITIONAL(HAVE_PYTHON, $HAVE_PYTHON) ++AM_CONDITIONAL(HAVE_BASH_COMPLETION, [test "x$enable_bash_completion" != xno]) ++AM_CONDITIONAL(HAVE_DOC, [test "x$enable_doc" != xno]) ++AM_CONDITIONAL(HAVE_FONTS, [test "x$enable_fonts" != xno]) ++AM_CONDITIONAL(HAVE_ICONS, [test "x$enable_icons" != xno]) + + dnl Automake v1.8.0 is required, please upgrade! + +diff --git a/man/Makefile.am b/man/Makefile.am +index 915cb206..5a886fc9 100644 +--- a/man/Makefile.am ++++ b/man/Makefile.am +@@ -15,7 +15,7 @@ hereticdocsdir = ${docdir}/../${PROGRAM_PREFIX}heretic + hexendocsdir = ${docdir}/../${PROGRAM_PREFIX}hexen + strifedocsdir = ${docdir}/../${PROGRAM_PREFIX}strife + +-if HAVE_PYTHON ++if HAVE_DOC + + GENERATED_MAN_PAGES = \ + @PROGRAM_PREFIX@doom.6 \ +diff --git a/man/bash-completion/Makefile.am b/man/bash-completion/Makefile.am +index 9c1400f1..a79fe623 100644 +--- a/man/bash-completion/Makefile.am ++++ b/man/bash-completion/Makefile.am +@@ -6,7 +6,7 @@ BASH_COMPLETION_TEMPLATES = \ + hexen.template \ + strife.template + +-if HAVE_PYTHON ++if HAVE_BASH_COMPLETION + + BASH_COMPLETION_SCRIPTLETS = \ + @PROGRAM_PREFIX@doom \ +diff --git a/src/Makefile.am b/src/Makefile.am +index 19a42598..698d2ce0 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -271,7 +271,7 @@ CLEANFILES = $(execgames_SCRIPTS) $(app_DATA) $(screensaver_DATA) + %.o : %.rc + $(WINDRES) $< -o $@ + +-if HAVE_PYTHON ++if HAVE_ICONS + + icon.c : $(top_builddir)/data/doom.png + $(top_builddir)/data/convert-icon $(top_builddir)/data/doom.png $@ +diff --git a/src/setup/Makefile.am b/src/setup/Makefile.am +index a9dd240c..493b0b47 100644 +--- a/src/setup/Makefile.am ++++ b/src/setup/Makefile.am +@@ -33,7 +33,7 @@ CLEANFILES = $(app_DATA) + @PACKAGE_RDNS@.Setup.desktop : Setup.desktop + cp Setup.desktop $@ + +-if HAVE_PYTHON ++if HAVE_ICONS + + setup_icon.c : $(top_builddir)/data/setup.png + $(top_builddir)/data/convert-icon $(top_builddir)/data/setup.png $@ +diff --git a/textscreen/fonts/Makefile.am b/textscreen/fonts/Makefile.am +index 67ae8a21..5f6ad066 100644 +--- a/textscreen/fonts/Makefile.am ++++ b/textscreen/fonts/Makefile.am +@@ -3,7 +3,7 @@ EXTRA_DIST = small.png normal.png large.png convert-font $(FONT_HDRS) + + noinst_DATA = $(FONT_HDRS) + +-if HAVE_PYTHON ++if HAVE_FONTS + + small.h: small.png convert-font + ./convert-font small small.png small.h +-- +2.26.2 + diff --git a/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Remove-redundant-demoextend-definition.patch b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Remove-redundant-demoextend-definition.patch new file mode 100644 index 000000000000..9c087769a26c --- /dev/null +++ b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Remove-redundant-demoextend-definition.patch @@ -0,0 +1,28 @@ +From a8fd4b1f563d24d4296c3e8225c8404e2724d4c2 Mon Sep 17 00:00:00 2001 +From: Jordan Christiansen <xordspar0@gmail.com> +Date: Sun, 15 Mar 2020 16:55:33 -0500 +Subject: [PATCH] Remove redundant demoextend definition + +GCC 10 enables -fno-common by default, which causes the linker to fail when +there are multple definitions of a global variable. + +See https://gcc.gnu.org/gcc-10/porting_to.html +--- + src/hexen/mn_menu.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/src/hexen/mn_menu.c b/src/hexen/mn_menu.c +index 059f45b3..a97b7fcd 100644 +--- a/src/hexen/mn_menu.c ++++ b/src/hexen/mn_menu.c +@@ -131,7 +131,6 @@ boolean MenuActive; + int InfoType; + int messageson = true; + boolean mn_SuicideConsole; +-boolean demoextend; // from h2def.h + + // PRIVATE DATA DEFINITIONS ------------------------------------------------ + +-- +2.28.0 + diff --git a/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Update-AppStream-XML-files-to-current-0.11-standards.patch b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Update-AppStream-XML-files-to-current-0.11-standards.patch new file mode 100644 index 000000000000..7c2bfa48de29 --- /dev/null +++ b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Update-AppStream-XML-files-to-current-0.11-standards.patch @@ -0,0 +1,106 @@ +From 35827930553ca522270bd74df37a378d6b2dea8a Mon Sep 17 00:00:00 2001 +From: Mike Swanson <mikeonthecomputer@gmail.com> +Date: Mon, 22 Jan 2018 20:41:16 -0800 +Subject: [PATCH] Update AppStream XML files to current (0.11) standards + +<id> tag is changed to a Reverse-DNS form, and an accommodating +PACKAGE_RDNS is set in configure.ac to use it. + +<name> and <summary> tags have been added, using existing autoconf +variable values. + +The `appstream-util validate` command will complain about some +optionally-missing tags and a strict string length limit on some of +the <caption> tags. `validate-relax` passes, and by the letter of the +AppStream specification, we should be completely valid. +--- + configure.ac | 2 ++ + src/doom.appdata.xml.in | 4 +++- + src/heretic.appdata.xml.in | 4 +++- + src/hexen.appdata.xml.in | 4 +++- + src/strife.appdata.xml.in | 4 +++- + 5 files changed, 14 insertions(+), 4 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 17299714..2190a32b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -7,6 +7,7 @@ PACKAGE_COPYRIGHT="Copyright (C) 1993-2017" + PACKAGE_LICENSE="GNU General Public License, version 2" + PACKAGE_MAINTAINER="Simon Howard" + PACKAGE_URL="https://www.chocolate-doom.org/" ++PACKAGE_RDNS="org.chocolate_doom" + PACKAGE_ISSUES="https://github.com/chocolate-doom/chocolate-doom/issues" + + AC_CONFIG_AUX_DIR(autotools) +@@ -142,6 +143,7 @@ AC_SUBST(PACKAGE_COPYRIGHT) + AC_SUBST(PACKAGE_LICENSE) + AC_SUBST(PACKAGE_MAINTAINER) + AC_SUBST(PACKAGE_URL) ++AC_SUBST(PACKAGE_RDNS) + AC_SUBST(PACKAGE_ISSUES) + + AC_SUBST(bashcompletiondir) +diff --git a/src/doom.appdata.xml.in b/src/doom.appdata.xml.in +index ed499f47..42747251 100644 +--- a/src/doom.appdata.xml.in ++++ b/src/doom.appdata.xml.in +@@ -1,7 +1,9 @@ + <?xml version="1.0" encoding="UTF-8"?> + + <component type="desktop"> +- <id>@PROGRAM_PREFIX@doom.desktop</id> ++ <id>@PACKAGE_RDNS@.Doom</id> ++ <name>@PACKAGE_SHORTNAME@ Doom</name> ++ <summary>@PACKAGE_SHORTDESC@</summary> + <metadata_license>CC0-1.0</metadata_license> + <project_license>GPL-2.0+</project_license> + <developer_name>@PACKAGE_MAINTAINER@</developer_name> +diff --git a/src/heretic.appdata.xml.in b/src/heretic.appdata.xml.in +index 36a1739a..dc8093de 100644 +--- a/src/heretic.appdata.xml.in ++++ b/src/heretic.appdata.xml.in +@@ -1,7 +1,9 @@ + <?xml version="1.0" encoding="UTF-8"?> + + <component type="desktop"> +- <id>@PROGRAM_PREFIX@heretic.desktop</id> ++ <id>@PACKAGE_RDNS@.Heretic</id> ++ <name>@PACKAGE_SHORTNAME@ Heretic</name> ++ <summary>@PACKAGE_SHORTDESC@</summary> + <metadata_license>CC0-1.0</metadata_license> + <project_license>GPL-2.0+</project_license> + <developer_name>@PACKAGE_MAINTAINER@</developer_name> +diff --git a/src/hexen.appdata.xml.in b/src/hexen.appdata.xml.in +index b5a526f2..7583cca8 100644 +--- a/src/hexen.appdata.xml.in ++++ b/src/hexen.appdata.xml.in +@@ -1,7 +1,9 @@ + <?xml version="1.0" encoding="UTF-8"?> + + <component type="desktop"> +- <id>@PROGRAM_PREFIX@hexen.desktop</id> ++ <id>@PACKAGE_RDNS@.Hexen</id> ++ <name>@PACKAGE_SHORTNAME@ Hexen</name> ++ <summary>@PACKAGE_SHORTDESC@</summary> + <metadata_license>CC0-1.0</metadata_license> + <project_license>GPL-2.0+</project_license> + <developer_name>@PACKAGE_MAINTAINER@</developer_name> +diff --git a/src/strife.appdata.xml.in b/src/strife.appdata.xml.in +index 7be869c3..6db4fad4 100644 +--- a/src/strife.appdata.xml.in ++++ b/src/strife.appdata.xml.in +@@ -1,7 +1,9 @@ + <?xml version="1.0" encoding="UTF-8"?> + + <component type="desktop"> +- <id>@PROGRAM_PREFIX@strife.desktop</id> ++ <id>@PACKAGE_RDNS@.Strife</id> ++ <name>@PACKAGE_SHORTNAME@ Strife</name> ++ <summary>@PACKAGE_SHORTDESC@</summary> + <metadata_license>CC0-1.0</metadata_license> + <project_license>GPL-2.0+</project_license> + <developer_name>@PACKAGE_MAINTAINER@</developer_name> +-- +2.26.2 + diff --git a/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Update-documentation-about-usr-share-doom-IWAD-locat.patch b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Update-documentation-about-usr-share-doom-IWAD-locat.patch new file mode 100644 index 000000000000..90cd352a5874 --- /dev/null +++ b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Update-documentation-about-usr-share-doom-IWAD-locat.patch @@ -0,0 +1,39 @@ +From: William Breathitt Gray <vilhelm.gray@gmail.com> +Date: Thu, 25 Jun 2020 11:30:42 -0400 +Subject: [PATCH] Update documentation about /usr/share/doom IWAD location + +--- + man/INSTALL.template | 2 ++ + man/iwad_paths.man | 3 ++- + 2 files changed, 4 insertions(+), 1 deletion(-) + +diff --git a/man/INSTALL.template b/man/INSTALL.template +index f04e98e6..9c9f7601 100644 +--- a/man/INSTALL.template ++++ b/man/INSTALL.template +@@ -199,6 +199,8 @@ do one of the following: + * Put the file into one of the following directories: + ++ /usr/share/doom + /usr/share/games/doom ++ /usr/local/share/doom + /usr/local/share/games/doom + + * Set the environment variable DOOMWADDIR to specify the path to a +diff --git a/man/iwad_paths.man b/man/iwad_paths.man +index 98058154..a41aba41 100644 +--- a/man/iwad_paths.man ++++ b/man/iwad_paths.man +@@ -35,7 +35,8 @@ Writeable directory in the user's home directory. The path can be overridden + using the \fBXDG_DATA_HOME\fR environment variable (see the XDG Base Directory + Specification). + .TP +-\fB/usr/local/share/games/doom, /usr/share/games/doom\fR ++\fB/usr/local/share/doom, /usr/local/share/games/doom, /usr/share/doom, ++/usr/share/games/doom\fR + System-wide locations that can be accessed by all users. The path + \fB/usr/share/games/doom\fR is a standard path that is supported by most + Doom source ports. These paths can be overridden using the \fBXDG_DATA_DIRS\fR +-- +2.26.2 + diff --git a/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Update-to-latest-AppStream-formerly-AppData-standard.patch b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Update-to-latest-AppStream-formerly-AppData-standard.patch new file mode 100644 index 000000000000..39cef73483e9 --- /dev/null +++ b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Update-to-latest-AppStream-formerly-AppData-standard.patch @@ -0,0 +1,119 @@ +From: Mike Swanson <mikeonthecomputer@gmail.com> +Date: Sat, 7 Sep 2019 10:43:57 -0700 +Subject: [PATCH] Update to latest AppStream (formerly AppData) standards + +Install files into ${prefix}/share/metainfo rather than +${prefix}/share/appdata, name files by reverse-DNS and suffixed +.metainfo.xml. + +"appstream-util validate" still complains about a missing +update_contact tag and issues with the caption tags being either short +or long, but the specification at +https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html +says these are not errors. +--- + configure.ac | 8 +++--- + ...om.appdata.xml.in => Doom.metainfo.xml.in} | 0 + ...appdata.xml.in => Heretic.metainfo.xml.in} | 0 + ...n.appdata.xml.in => Hexen.metainfo.xml.in} | 0 + src/Makefile.am | 28 +++++++++---------- + ....appdata.xml.in => Strife.metainfo.xml.in} | 0 + 7 files changed, 19 insertions(+), 19 deletions(-) + rename src/{doom.appdata.xml.in => Doom.metainfo.xml.in} (100%) + rename src/{heretic.appdata.xml.in => Heretic.metainfo.xml.in} (100%) + rename src/{hexen.appdata.xml.in => Hexen.metainfo.xml.in} (100%) + rename src/{strife.appdata.xml.in => Strife.metainfo.xml.in} (100%) + +diff --git a/configure.ac b/configure.ac +index 5ec9dfbf..8a3e1bbc 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -167,14 +167,14 @@ pkg/osx/Info.plist + rpm.spec + data/Makefile + src/Makefile +-src/doom.appdata.xml ++src/Doom.metainfo.xml + src/doom.desktop + src/doom-screensaver.desktop + src/doom/Makefile +-src/heretic.appdata.xml ++src/Heretic.metainfo.xml + src/heretic.desktop + src/heretic/Makefile +-src/hexen.appdata.xml ++src/Hexen.metainfo.xml + src/hexen.desktop + src/hexen/Makefile + src/resource.rc +@@ -182,7 +182,7 @@ src/setup-res.rc + src/setup/Makefile + src/setup/setup.desktop + src/setup/setup-manifest.xml +-src/strife.appdata.xml ++src/Strife.metainfo.xml + src/strife.desktop + src/strife/Makefile + textscreen/Makefile +diff --git a/src/doom.appdata.xml.in b/src/Doom.metainfo.xml.in +similarity index 100% +rename from src/doom.appdata.xml.in +rename to src/Doom.metainfo.xml.in +diff --git a/src/heretic.appdata.xml.in b/src/Heretic.metainfo.xml.in +similarity index 100% +rename from src/heretic.appdata.xml.in +rename to src/Heretic.metainfo.xml.in +diff --git a/src/hexen.appdata.xml.in b/src/Hexen.metainfo.xml.in +similarity index 100% +rename from src/hexen.appdata.xml.in +rename to src/Hexen.metainfo.xml.in +diff --git a/src/Makefile.am b/src/Makefile.am +index e54aeead..6880bd3c 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -220,24 +220,24 @@ EXTRA_DIST = \ + doom-screensaver.desktop.in \ + manifest.xml + +-appdatadir = $(prefix)/share/metainfo +-appdata_DATA = \ +- @PROGRAM_PREFIX@doom.appdata.xml \ +- @PROGRAM_PREFIX@heretic.appdata.xml \ +- @PROGRAM_PREFIX@hexen.appdata.xml \ +- @PROGRAM_PREFIX@strife.appdata.xml ++metainfodir = $(prefix)/share/metainfo ++metainfo_DATA = \ ++ @PACKAGE_RDNS@.Doom.metainfo.xml \ ++ @PACKAGE_RDNS@.Heretic.metainfo.xml \ ++ @PACKAGE_RDNS@.Hexen.metainfo.xml \ ++ @PACKAGE_RDNS@.Strife.metainfo.xml + +-@PROGRAM_PREFIX@doom.appdata.xml : doom.appdata.xml +- cp doom.appdata.xml $@ ++@PACKAGE_RDNS@.Doom.metainfo.xml : Doom.metainfo.xml ++ cp Doom.metainfo.xml $@ + +-@PROGRAM_PREFIX@heretic.appdata.xml : heretic.appdata.xml +- cp heretic.appdata.xml $@ ++@PACKAGE_RDNS@.Heretic.metainfo.xml : Heretic.metainfo.xml ++ cp Heretic.metainfo.xml $@ + +-@PROGRAM_PREFIX@hexen.appdata.xml : hexen.appdata.xml +- cp hexen.appdata.xml $@ ++@PACKAGE_RDNS@.Hexen.metainfo.xml : Hexen.metainfo.xml ++ cp Hexen.metainfo.xml $@ + +-@PROGRAM_PREFIX@strife.appdata.xml : strife.appdata.xml +- cp strife.appdata.xml $@ ++@PACKAGE_RDNS@.Strife.metainfo.xml : Strife.metainfo.xml ++ cp Strife.metainfo.xml $@ + + appdir = $(prefix)/share/applications + app_DATA = \ +diff --git a/src/strife.appdata.xml.in b/src/Strife.metainfo.xml.in +similarity index 100% +rename from src/strife.appdata.xml.in +rename to src/Strife.metainfo.xml.in +-- +2.26.2 + diff --git a/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-bash-completion-Build-from-actual-shell-script-templ.patch b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-bash-completion-Build-from-actual-shell-script-templ.patch new file mode 100644 index 000000000000..48445cf6efc2 --- /dev/null +++ b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-bash-completion-Build-from-actual-shell-script-templ.patch @@ -0,0 +1,53 @@ +From da88012088dad9f7a5d53c26aa40aa393cb5b703 Mon Sep 17 00:00:00 2001 +From: Mike Swanson <mikeonthecomputer@gmail.com> +Date: Sat, 27 Jan 2018 04:49:08 -0800 +Subject: [PATCH] bash-completion: Build from actual shell script templates. + +At some point, the Makefile was inerrantly modified so that it +generated manpage sources instead of shell script, making completions +very screwed up. +--- + man/bash-completion/Makefile.am | 11 +++++------ + 1 file changed, 5 insertions(+), 6 deletions(-) + +diff --git a/man/bash-completion/Makefile.am b/man/bash-completion/Makefile.am +index 60e7ae9c..bb706fc7 100644 +--- a/man/bash-completion/Makefile.am ++++ b/man/bash-completion/Makefile.am +@@ -17,28 +17,27 @@ BASH_COMPLETION_SCRIPTLETS = \ + bashcompletion_DATA = $(BASH_COMPLETION_SCRIPTLETS) + CLEANFILES = $(BASH_COMPLETION_SCRIPTLETS) + +-MANDIR = $(top_srcdir)/man +-DOCGEN = $(MANDIR)/docgen ++DOCGEN = $(top_srcdir)/man/docgen + DOCGEN_COMMON_ARGS = -n "@PROGRAM_SPREFIX@" -s "@PACKAGE_NAME@" -z "@PACKAGE_SHORTNAME@" + + @PROGRAM_PREFIX@doom: $(top_srcdir)/src $(DOCGEN) $(BASH_COMPLETION_TEMPLATES) + $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ +- -g doom -b $(MANDIR)/doom.template \ ++ -g doom -b doom.template \ + $(top_srcdir)/src $(top_srcdir)/src/doom > $@ + + @PROGRAM_PREFIX@heretic: $(top_srcdir)/src $(DOCGEN) $(BASH_COMPLETION_TEMPLATES) + $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ +- -g heretic -b $(MANDIR)/heretic.template \ ++ -g heretic -b heretic.template \ + $(top_srcdir)/src $(top_srcdir)/src/heretic > $@ + + @PROGRAM_PREFIX@hexen: $(top_srcdir)/src $(DOCGEN) $(BASH_COMPLETION_TEMPLATES) + $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ +- -g hexen -b $(MANDIR)/hexen.template \ ++ -g hexen -b hexen.template \ + $(top_srcdir)/src $(top_srcdir)/src/hexen > $@ + + @PROGRAM_PREFIX@strife: $(top_srcdir)/src $(DOCGEN) $(BASH_COMPLETION_TEMPLATES) + $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ +- -g strife -b $(MANDIR)/strife.template \ ++ -g strife -b strife.template \ + $(top_srcdir)/src $(top_srcdir)/src/strife > $@ + + EXTRA_DIST = \ +-- +2.26.2 + diff --git a/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-bash-completion-always-install-into-datadir-bash-com.patch b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-bash-completion-always-install-into-datadir-bash-com.patch new file mode 100644 index 000000000000..3931166599f9 --- /dev/null +++ b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-bash-completion-always-install-into-datadir-bash-com.patch @@ -0,0 +1,61 @@ +From b9d4c04c840321f5ec70787d8afb1256766aaa01 Mon Sep 17 00:00:00 2001 +From: Mike Swanson <mikeonthecomputer@gmail.com> +Date: Tue, 6 Aug 2019 15:40:46 -0700 +Subject: [PATCH] bash-completion: always install into $datadir/bash-completion +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The bash-completion package by default searches in $HOME/.local and +/usr/local first before /usr, and we should respect local installation +locations instead of always trying to write to a path that is +accessible only to root and could conflict with a package manager. + +This removes a toggle in the configure script, which neither actually +worked properly (setting DIR didn’t work) and I believe did the wrong +thing by default anyway. +--- + configure.ac | 9 --------- + man/bash-completion/Makefile.am | 2 +- + 2 files changed, 1 insertion(+), 10 deletions(-) + +diff --git a/configure.ac b/configure.ac +index f12eae68..5ec9dfbf 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -87,13 +87,6 @@ AC_CHECK_DECLS([strcasecmp, strncasecmp], [], [], [[#include <strings.h>]]) + AC_CHECK_LIB(i386, i386_iopl) + AC_CHECK_LIB(amd64, amd64_iopl) + +-AC_ARG_WITH([bashcompletiondir], +- AS_HELP_STRING([--with-bashcompletiondir=DIR], [Bash completion directory]), +- [], +- [AS_IF([$($PKG_CONFIG --exists bash-completion 2> /dev/null)], +- [bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-completion)], +- [bashcompletiondir=${datadir}/bash-completion/completions])]) +- + case "$host" in + *-*-mingw* | *-*-cygwin* | *-*-msvc* ) + AC_CHECK_TOOL(WINDRES, windres, ) +@@ -153,8 +146,6 @@ AC_SUBST(PACKAGE_URL) + AC_SUBST(PACKAGE_RDNS) + AC_SUBST(PACKAGE_ISSUES) + +-AC_SUBST(bashcompletiondir) +- + dnl Shut up the datarootdir warnings. + AC_DEFUN([AC_DATAROOTDIR_CHECKED]) + +diff --git a/man/bash-completion/Makefile.am b/man/bash-completion/Makefile.am +index bb706fc7..9c1400f1 100644 +--- a/man/bash-completion/Makefile.am ++++ b/man/bash-completion/Makefile.am +@@ -1,4 +1,4 @@ +-bashcompletiondir=@bashcompletiondir@ ++bashcompletiondir=@datadir@/bash-completion/completions + + BASH_COMPLETION_TEMPLATES = \ + doom.template \ +-- +2.26.2 + diff --git a/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-bash-completion-run-docgen-with-z-argument.patch b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-bash-completion-run-docgen-with-z-argument.patch new file mode 100644 index 000000000000..d9df5743d765 --- /dev/null +++ b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-bash-completion-run-docgen-with-z-argument.patch @@ -0,0 +1,25 @@ +From ccfbd4a046de9590cadb522d1f754c78ee9f8d4e Mon Sep 17 00:00:00 2001 +From: Jonathan Dowland <jon@dow.land> +Date: Mon, 15 Jan 2018 19:10:16 +0000 +Subject: [PATCH] bash-completion: run docgen with -z argument + +--- + man/bash-completion/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/man/bash-completion/Makefile.am b/man/bash-completion/Makefile.am +index 801dd212..60e7ae9c 100644 +--- a/man/bash-completion/Makefile.am ++++ b/man/bash-completion/Makefile.am +@@ -19,7 +19,7 @@ CLEANFILES = $(BASH_COMPLETION_SCRIPTLETS) + + MANDIR = $(top_srcdir)/man + DOCGEN = $(MANDIR)/docgen +-DOCGEN_COMMON_ARGS = -n "@PROGRAM_SPREFIX@" -s "@PACKAGE_NAME@" ++DOCGEN_COMMON_ARGS = -n "@PROGRAM_SPREFIX@" -s "@PACKAGE_NAME@" -z "@PACKAGE_SHORTNAME@" + + @PROGRAM_PREFIX@doom: $(top_srcdir)/src $(DOCGEN) $(BASH_COMPLETION_TEMPLATES) + $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ +-- +2.26.2 + diff --git a/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-configure-add-AM_PROG_AR-macro.patch b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-configure-add-AM_PROG_AR-macro.patch new file mode 100644 index 000000000000..725ddb2dba55 --- /dev/null +++ b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-configure-add-AM_PROG_AR-macro.patch @@ -0,0 +1,28 @@ +From 560cdc3e4572cc84d493c5450092b6ce1694bd89 Mon Sep 17 00:00:00 2001 +From: Simon Howard <fraggle@soulsphere.org> +Date: Sun, 30 Sep 2018 23:34:52 -0400 +Subject: [PATCH] configure: add AM_PROG_AR macro. + +Some platforms (eg. Emscripten) have their own version of the ar tool, +so it is important to pick one that matches the target architecture. +Without this macro we always use the default system-installed version +of ar. +--- + configure.ac | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/configure.ac b/configure.ac +index 175d7f3b..6dfced8d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -15,6 +15,7 @@ AC_CANONICAL_HOST + + orig_CFLAGS="$CFLAGS" + ++AM_PROG_AR + AC_PROG_CC + AC_PROG_RANLIB + AC_CHECK_PROG(HAVE_PYTHON, python, true, false) +-- +2.26.2 + diff --git a/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-further-manpage-substitutions-and-fixes.patch b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-further-manpage-substitutions-and-fixes.patch new file mode 100644 index 000000000000..62fc424f42b9 --- /dev/null +++ b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-further-manpage-substitutions-and-fixes.patch @@ -0,0 +1,322 @@ +From c1f553b92a7a4873b33026463866101e18be8e76 Mon Sep 17 00:00:00 2001 +From: Jonathan Dowland <jon@dow.land> +Date: Mon, 27 Nov 2017 22:24:04 +0000 +Subject: [PATCH] further manpage substitutions and fixes + +Convert chocolate-setup.6 into a template file and generate outputs +based on @PROGRAM_PREFIX@. + +Add @PACKAGE_SHORTNAME@ to the list of parameters handed to docgen +and make appropriate substitutions in the manpage templates. +--- + man/Makefile.am | 15 ++++++++---- + man/docgen | 30 ++++++++++++++--------- + man/heretic.template | 8 +++--- + man/hexen.template | 8 +++--- + man/{chocolate-setup.6 => setup.template} | 4 +-- + man/strife.template | 14 +++++------ + 6 files changed, 45 insertions(+), 34 deletions(-) + rename man/{chocolate-setup.6 => setup.template} (94%) + +diff --git a/man/Makefile.am b/man/Makefile.am +index 5916edf9..f0099c79 100644 +--- a/man/Makefile.am ++++ b/man/Makefile.am +@@ -30,6 +30,7 @@ GENERATED_MAN_PAGES = \ + @PROGRAM_PREFIX@strife.6 \ + strife.cfg.5 \ + @PROGRAM_PREFIX@strife.cfg.5 \ ++ @PROGRAM_PREFIX@setup.6 \ + @PROGRAM_PREFIX@server.6 + + SETUP_MAN_PAGES = \ +@@ -38,8 +39,7 @@ SETUP_MAN_PAGES = \ + @PROGRAM_PREFIX@hexen-setup.6 \ + @PROGRAM_PREFIX@strife-setup.6 + +-man_MANS = chocolate-setup.6 \ +- $(GENERATED_MAN_PAGES) \ ++man_MANS = $(GENERATED_MAN_PAGES) \ + $(SETUP_MAN_PAGES) + + doomdocs_DATA = INSTALL.doom CMDLINE.doom +@@ -51,10 +51,10 @@ CLEANFILES = $(GENERATED_MAN_PAGES) $(SETUP_MAN_PAGES) \ + $(doomdocs_DATA) $(hereticdocs_DATA) \ + $(hexendocs_DATA) $(strifedocs_DATA) + DOCGEN = $(srcdir)/docgen +-DOCGEN_COMMON_ARGS = -n "@PROGRAM_SPREFIX@" -s "@PACKAGE_NAME@" ++DOCGEN_COMMON_ARGS = -n "@PROGRAM_SPREFIX@" -s "@PACKAGE_NAME@" -z "@PACKAGE_SHORTNAME@" + +-$(SETUP_MAN_PAGES): chocolate-setup.6 +- cp $(srcdir)/chocolate-setup.6 $@ ++$(SETUP_MAN_PAGES): @PROGRAM_PREFIX@setup.6 ++ cp $(srcdir)/@PROGRAM_PREFIX@setup.6 $@ + + @PROGRAM_PREFIX@doom.6: $(top_srcdir)/src $(MANPAGE_GEN_FILES) + $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ +@@ -138,6 +138,11 @@ INSTALL.hexen: INSTALL.template + -g server -m $(srcdir)/server.template \ + $(top_srcdir)/src > $@ + ++@PROGRAM_PREFIX@setup.6: $(top_srcdir)/src $(MANPAGE_GEN_FILES) ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -g setup -m $(srcdir)/setup.template \ ++ $(top_srcdir)/src > $@ ++ + strife.cfg.5: $(top_srcdir)/src default.cfg.template + $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ + -g strife -m $(srcdir)/default.cfg.template \ +diff --git a/man/docgen b/man/docgen +index defb9060..1c8a2471 100755 +--- a/man/docgen ++++ b/man/docgen +@@ -430,7 +430,7 @@ def process_files(path): + + process_file(path) + +-def print_template(template_file, program_prefix, package_name, content): ++def print_template(template_file, program_prefix, package_name, package_shortname, content): + f = io.open(template_file, encoding='UTF-8') + + try: +@@ -440,16 +440,18 @@ def print_template(template_file, program_prefix, package_name, content): + filename = match.group(1) + filename = os.path.join(os.path.dirname(template_file), + filename) +- print_template(filename, program_prefix, package_name, content) ++ print_template(filename, program_prefix, package_name, package_shortname, content) + else: + line = line.replace("@content", content) + line = line.replace("@PROGRAM_SPREFIX@", program_prefix) +- line = line.replace("@PACKAGE_SHORTNAME@", package_name) ++ line = line.replace("@PACKAGE_NAME@", package_name) ++ if package_shortname: ++ line = line.replace("@PACKAGE_SHORTNAME@", package_shortname) + stdout(line.rstrip().encode('UTF-8') + b'\n') + finally: + f.close() + +-def manpage_output(targets, program_prefix, package_name, template_file): ++def manpage_output(targets, program_prefix, package_name, package_shortname, template_file): + + content = "" + +@@ -458,7 +460,7 @@ def manpage_output(targets, program_prefix, package_name, template_file): + + content = content.replace("-", "\\-") + +- print_template(template_file, program_prefix, package_name, content) ++ print_template(template_file, program_prefix, package_name, package_shortname, content) + + def wiki_output(targets, template): + read_wikipages() +@@ -466,30 +468,31 @@ def wiki_output(targets, template): + for t in targets: + stdout(t.wiki_output().encode('UTF-8') + b'\n') + +-def plaintext_output(targets, program_prefix, package_name, template_file): ++def plaintext_output(targets, program_prefix, package_name, package_shortname, template_file): + + content = "" + + for t in targets: + content += t.plaintext_output() + "\n" + +- print_template(template_file, program_prefix, package_name, content) ++ print_template(template_file, program_prefix, package_name, package_shortname, content) + +-def completion_output(targets, program_prefix, package_name, template_file): ++def completion_output(targets, program_prefix, package_name, package_shortname, template_file): + + content = "" + + for t in targets: + content += t.completion_output() + "\n" + +- print_template(template_file, program_prefix, package_name, content) ++ print_template(template_file, program_prefix, package_name, package_shortname, content) + + def usage(): +- print("Usage: %s [-V] [-c tag] [-g game] -n name ( -m | -w | -p ) <dir>..." \ ++ print("Usage: %s [-V] [-c tag] [-g game] -n program_name -s package_name [ -z shortname ] ( -m | -w | -p ) <dir>..." \ + % sys.argv[0]) + print(" -c : Provide documentation for the specified configuration file") + print(" (matches the given tag name in the source file)") + print(" -s : Package name (for substitution)") ++ print(" -z : Package short-name (for substitution)") + print(" -n : Program name (for substitution)") + print(" -m : Manpage output") + print(" -w : Wikitext output") +@@ -501,7 +504,7 @@ def usage(): + + # Parse command line + +-opts, args = getopt.getopt(sys.argv[1:], "n:s:m:wp:b:c:g:V") ++opts, args = getopt.getopt(sys.argv[1:], "n:s:z:m:wp:b:c:g:V") + + output_function = None + template = None +@@ -509,12 +512,15 @@ doc_config_file = None + match_game = None + program_prefix = None + package_name = None ++package_shortname = None + + for opt in opts: + if opt[0] == "-n": + program_prefix = opt[1] + if opt[0] == "-s": + package_name = opt[1] ++ if opt[0] == "-z": ++ package_shortname = opt[1] + if opt[0] == "-m": + output_function = manpage_output + template = opt[1] +@@ -556,5 +562,5 @@ else: + + # Generate the output + +- output_function(documentation_targets, program_prefix, package_name, template) ++ output_function(documentation_targets, program_prefix, package_name, package_shortname, template) + +diff --git a/man/heretic.template b/man/heretic.template +index c078c7c6..3fa4ce1d 100644 +--- a/man/heretic.template ++++ b/man/heretic.template +@@ -6,7 +6,7 @@ + [\fIOPTIONS\fR] + .SH DESCRIPTION + .PP +-Chocolate Heretic is a port of Raven Software's 1994 game "Heretic" that ++@PACKAGE_SHORTNAME@ Heretic is a port of Raven Software's 1994 game "Heretic" that + aims to behave as similar to the original DOS version of Heretic as + possible. + .br +@@ -14,16 +14,16 @@ possible. + .SH IWAD SEARCH PATHS + @include iwad_paths.man + .SH ENVIRONMENT +-This section describes environment variables that control Chocolate Heretic's ++This section describes environment variables that control @PACKAGE_SHORTNAME@ Heretic's + behavior. + @include environ.man + .SH FILES + .TP + \fB$HOME/.local/share/@PROGRAM_SPREFIX@\-doom/heretic.cfg\fR +-The main configuration file for Chocolate Heretic. See \fBheretic.cfg\fR(5). ++The main configuration file for @PACKAGE_SHORTNAME@ Heretic. See \fBheretic.cfg\fR(5). + .TP + \fB$HOME/.local/share/@PROGRAM_SPREFIX@\-doom/@PROGRAM_SPREFIX@\-heretic.cfg\fR +-Extra configuration values that are specific to Chocolate Heretic and not ++Extra configuration values that are specific to @PACKAGE_SHORTNAME@ Heretic and not + present in Vanilla Heretic. See \fB@PROGRAM_SPREFIX@\-heretic.cfg\fR(5). + .SH SEE ALSO + \fB@PROGRAM_SPREFIX@\-doom\fR(6), +diff --git a/man/hexen.template b/man/hexen.template +index 9184a27e..fc953edf 100644 +--- a/man/hexen.template ++++ b/man/hexen.template +@@ -6,7 +6,7 @@ + [\fIOPTIONS\fR] + .SH DESCRIPTION + .PP +-Chocolate Hexen is a port of Raven Software's 1995 game "Hexen" that ++@PACKAGE_SHORTNAME@ Hexen is a port of Raven Software's 1995 game "Hexen" that + aims to behave as similar to the original DOS version of Hexen as + possible. + .br +@@ -14,16 +14,16 @@ possible. + .SH IWAD SEARCH PATHS + @include iwad_paths.man + .SH ENVIRONMENT +-This section describes environment variables that control Chocolate Hexen's ++This section describes environment variables that control @PACKAGE_SHORTNAME@ Hexen's + behavior. + @include environ.man + .SH FILES + .TP + \fB$HOME/.local/share/@PROGRAM_SPREFIX@\-doom/hexen.cfg\fR +-The main configuration file for Chocolate Hexen. See \fBhexen.cfg\fR(5). ++The main configuration file for @PACKAGE_SHORTNAME@ Hexen. See \fBhexen.cfg\fR(5). + .TP + \fB$HOME/.local/share/@PROGRAM_SPREFIX@\-doom/@PROGRAM_SPREFIX@\-hexen.cfg\fR +-Extra configuration values that are specific to Chocolate Hexen and not ++Extra configuration values that are specific to @PACKAGE_SHORTNAME@ Hexen and not + present in Vanilla Hexen. See \fB@PROGRAM_SPREFIX@\-hexen.cfg\fR(5). + .SH SEE ALSO + \fB@PROGRAM_SPREFIX@\-doom\fR(6), +diff --git a/man/chocolate-setup.6 b/man/setup.template +similarity index 94% +rename from man/chocolate-setup.6 +rename to man/setup.template +index 64f65937..2b5a45ea 100644 +--- a/man/chocolate-setup.6 ++++ b/man/setup.template +@@ -25,9 +25,9 @@ Load configuration from the specified file, instead of default.cfg. + \fB-extraconfig <file>\fR + Load extra configuration from the specified file, instead of @PROGRAM_SPREFIX@\-doom.cfg. + .SH SEE ALSO +-\fB@CHOCOLATE_SPREFIX@\-doom\fR(6), ++\fB@PROGRAM_SPREFIX@\-doom\fR(6), + \fBdefault.cfg\fR(5), +-\fB@CHOCOLATE_SPREFIX@\-doom.cfg\fR(5) ++\fB@PROGRAM_SPREFIX@\-doom.cfg\fR(5) + .SH AUTHOR + Chocolate Doom is written and maintained by Simon Howard. + .PP +diff --git a/man/strife.template b/man/strife.template +index 9ca7f14e..b82c39d4 100644 +--- a/man/strife.template ++++ b/man/strife.template +@@ -6,7 +6,7 @@ + [\fIOPTIONS\fR] + .SH DESCRIPTION + .PP +-Chocolate Strife is an accurate and complete recreation of Rogue ++@PACKAGE_SHORTNAME@ Strife is an accurate and complete recreation of Rogue + Entertainment's "Strife: Quest for the Sigil". It was created through + more than two years of reverse engineering effort with the blessings + of the original programmers of the game (see the section HISTORY below). +@@ -16,17 +16,17 @@ of the original programmers of the game (see the section HISTORY below). + .SH IWAD SEARCH PATHS + @include iwad_paths.man + .SH ENVIRONMENT +-This section describes environment variables that control Chocolate Strife's ++This section describes environment variables that control @PACKAGE_SHORTNAME@ Strife's + behavior. + @include environ.man + + .SH FILES + .TP + \fB$HOME/.local/share/@PROGRAM_SPREFIX@\-doom/strife.cfg\fR +-The main configuration file for Chocolate Strife. See \fBstrife.cfg\fR(5). ++The main configuration file for @PACKAGE_SHORTNAME@ Strife. See \fBstrife.cfg\fR(5). + .TP + \fB$HOME/.local/share/@PROGRAM_SPREFIX@\-doom/@PROGRAM_SPREFIX@\-strife.cfg\fR +-Extra configuration values that are specific to Chocolate Strife and not ++Extra configuration values that are specific to @PACKAGE_SHORTNAME@ Strife and not + present in Vanilla Strife. See \fB@PROGRAM_SPREFIX@\-strife.cfg\fR(5). + .SH SEE ALSO + \fB@PROGRAM_SPREFIX@\-doom\fR(6), +@@ -57,15 +57,15 @@ and neither Rogue nor their publisher, Velocity, Inc., exist any longer as + legal entities, this is effectively legal permission. + + .SH BUGS +-Chocolate Strife is almost, but not entirely perfect, in recreating the ++@PACKAGE_SHORTNAME@ Strife is almost, but not entirely perfect, in recreating the + behavior of Vanilla Strife. Help us by reporting any discrepancies you + might notice between this executable and the vanilla DOS program. + + However, do *not* report any glitch that you can replicate in the vanilla EXE +-as a bug. The point of Chocolate Strife, like Chocolate Doom before it, is to ++as a bug. The point of @PACKAGE_SHORTNAME Strife, like Chocolate Doom before it, is to + be as bug-compatible with the original game as possible. Also be aware that + some glitches are impossible to compatibly recreate, and wherever this is the +-case, Chocolate Strife has erred on the side of not crashing the program, ++case, @PACKAGE_SHORTNAME@ Strife has erred on the side of not crashing the program, + for example by initializing pointers to NULL rather than using them without + setting a value first. + +-- +2.26.2 + diff --git a/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-install-AppStream-metadata-into-the-proper-location.patch b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-install-AppStream-metadata-into-the-proper-location.patch new file mode 100644 index 000000000000..025ccf0ad179 --- /dev/null +++ b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-install-AppStream-metadata-into-the-proper-location.patch @@ -0,0 +1,26 @@ +From 12d69a4ee62094b48b37f550d31113e84cca0043 Mon Sep 17 00:00:00 2001 +From: Fabian Greffrath <fabian@greffrath.com> +Date: Mon, 22 Jan 2018 17:24:41 +0100 +Subject: [PATCH] install AppStream metadata into the proper location + +AppStream metadata is to be placed in the /usr/share/metainfo/ directory, /usr/share/appdata is a legacy location. +--- + src/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/Makefile.am b/src/Makefile.am +index e3bc7bb1..04474ab3 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -212,7 +212,7 @@ EXTRA_DIST = \ + doom-screensaver.desktop.in \ + manifest.xml + +-appdatadir = $(prefix)/share/appdata ++appdatadir = $(prefix)/share/metainfo + appdata_DATA = \ + @PROGRAM_PREFIX@doom.appdata.xml \ + @PROGRAM_PREFIX@heretic.appdata.xml \ +-- +2.26.2 + diff --git a/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-overhaul-manpages-add-parameters.patch b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-overhaul-manpages-add-parameters.patch new file mode 100644 index 000000000000..95e01e53e1f7 --- /dev/null +++ b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-overhaul-manpages-add-parameters.patch @@ -0,0 +1,695 @@ +From e0b8a7e0a9e0ee8c5983b94b849a8a69a5592464 Mon Sep 17 00:00:00 2001 +From: Jonathan Dowland <jon@dow.land> +Date: Mon, 27 Nov 2017 21:17:55 +0000 +Subject: [PATCH] overhaul manpages, add parameters + +This is in order to better support derivative engines. + +Rework the manpages to be parameterized with @PROGRAM_PREFIX@ and +@PACKAGE_NAME@. Alter the `docgen` generator to substitute those +parameters. Supply those parameters via the autofoo Makefile. + +Adjust the fixed path chocolate-server.6 to be generated from +server.template, similar to doom.template -> chocolate-doom.6. + +Further work is required, not least renaming chocolate-setup.6, +but several further parameterizations. +--- + man/Makefile.am | 68 ++++++++++++++------- + man/bash-completion/Makefile.am | 13 ++-- + man/chocolate-setup.6 | 22 +++---- + man/default.cfg.template | 18 +++--- + man/docgen | 32 ++++++---- + man/doom.template | 30 ++++----- + man/extra.cfg.template | 24 ++++---- + man/heretic.template | 20 +++--- + man/hexen.template | 20 +++--- + man/{chocolate-server.6 => server.template} | 20 +++--- + man/strife.template | 18 +++--- + 11 files changed, 161 insertions(+), 124 deletions(-) + rename man/{chocolate-server.6 => server.template} (74%) + +diff --git a/man/Makefile.am b/man/Makefile.am +index cfd2dc66..5916edf9 100644 +--- a/man/Makefile.am ++++ b/man/Makefile.am +@@ -29,7 +29,8 @@ GENERATED_MAN_PAGES = \ + @PROGRAM_PREFIX@hexen.cfg.5 \ + @PROGRAM_PREFIX@strife.6 \ + strife.cfg.5 \ +- @PROGRAM_PREFIX@strife.cfg.5 ++ @PROGRAM_PREFIX@strife.cfg.5 \ ++ @PROGRAM_PREFIX@server.6 + + SETUP_MAN_PAGES = \ + @PROGRAM_PREFIX@doom-setup.6 \ +@@ -37,8 +38,7 @@ SETUP_MAN_PAGES = \ + @PROGRAM_PREFIX@hexen-setup.6 \ + @PROGRAM_PREFIX@strife-setup.6 + +-man_MANS = chocolate-server.6 \ +- chocolate-setup.6 \ ++man_MANS = chocolate-setup.6 \ + $(GENERATED_MAN_PAGES) \ + $(SETUP_MAN_PAGES) + +@@ -51,24 +51,29 @@ CLEANFILES = $(GENERATED_MAN_PAGES) $(SETUP_MAN_PAGES) \ + $(doomdocs_DATA) $(hereticdocs_DATA) \ + $(hexendocs_DATA) $(strifedocs_DATA) + DOCGEN = $(srcdir)/docgen ++DOCGEN_COMMON_ARGS = -n "@PROGRAM_SPREFIX@" -s "@PACKAGE_NAME@" + + $(SETUP_MAN_PAGES): chocolate-setup.6 + cp $(srcdir)/chocolate-setup.6 $@ + + @PROGRAM_PREFIX@doom.6: $(top_srcdir)/src $(MANPAGE_GEN_FILES) +- $(DOCGEN) -g doom -m $(srcdir)/doom.template \ ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -g doom -m $(srcdir)/doom.template \ + $(top_srcdir)/src $(top_srcdir)/src/doom > $@ + + default.cfg.5: $(top_srcdir)/src $(srcdir)/default.cfg.template +- $(DOCGEN) -g doom -m $(srcdir)/default.cfg.template \ +- -c default $(top_srcdir)/src/m_config.c > $@ ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -g doom -m $(srcdir)/default.cfg.template \ ++ -c default $(top_srcdir)/src/m_config.c > $@ + + @PROGRAM_PREFIX@doom.cfg.5: $(top_srcdir)/src extra.cfg.template +- $(DOCGEN) -g doom -m $(srcdir)/extra.cfg.template \ +- -c extended $(top_srcdir)/src/m_config.c > $@ ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -g doom -m $(srcdir)/extra.cfg.template \ ++ -c extended $(top_srcdir)/src/m_config.c > $@ + + CMDLINE.doom : CMDLINE.template $(top_srcdir)/src $(top_srcdir)/src/doom +- $(DOCGEN) -p $(srcdir)/CMDLINE.template \ ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -p $(srcdir)/CMDLINE.template \ + $(top_srcdir)/src/ $(top_srcdir)/src/doom/ > $@ + + INSTALL.doom: INSTALL.template +@@ -76,19 +81,23 @@ INSTALL.doom: INSTALL.template + + + @PROGRAM_PREFIX@heretic.6: $(top_srcdir)/src $(MANPAGE_GEN_FILES) heretic.template +- $(DOCGEN) -g heretic -m $(srcdir)/heretic.template \ ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -g heretic -m $(srcdir)/heretic.template \ + $(top_srcdir)/src $(top_srcdir)/src/heretic > $@ + + heretic.cfg.5: $(top_srcdir)/src $(srcdir)/default.cfg.template +- $(DOCGEN) -g heretic -m $(srcdir)/default.cfg.template \ ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -g heretic -m $(srcdir)/default.cfg.template \ + -c default $(top_srcdir)/src/m_config.c > $@ + + @PROGRAM_PREFIX@heretic.cfg.5: $(top_srcdir)/src extra.cfg.template +- $(DOCGEN) -g heretic -m $(srcdir)/extra.cfg.template \ ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -g heretic -m $(srcdir)/extra.cfg.template \ + -c extended $(top_srcdir)/src/m_config.c > $@ + + CMDLINE.heretic : CMDLINE.template $(top_srcdir)/src $(top_srcdir)/src/heretic +- $(DOCGEN) -p $(srcdir)/CMDLINE.template \ ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -p $(srcdir)/CMDLINE.template \ + $(top_srcdir)/src/ $(top_srcdir)/src/heretic/ > $@ + + INSTALL.heretic: INSTALL.template +@@ -96,19 +105,23 @@ INSTALL.heretic: INSTALL.template + + + @PROGRAM_PREFIX@hexen.6: $(top_srcdir)/src $(MANPAGE_GEN_FILES) +- $(DOCGEN) -g hexen -m $(srcdir)/hexen.template \ ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -g hexen -m $(srcdir)/hexen.template \ + $(top_srcdir)/src $(top_srcdir)/src/hexen > $@ + + hexen.cfg.5: $(top_srcdir)/src default.cfg.template +- $(DOCGEN) -g hexen -m $(srcdir)/default.cfg.template \ ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -g hexen -m $(srcdir)/default.cfg.template \ + -c default $(top_srcdir)/src/m_config.c > $@ + + @PROGRAM_PREFIX@hexen.cfg.5: $(top_srcdir)/src extra.cfg.template +- $(DOCGEN) -g hexen -m $(srcdir)/extra.cfg.template \ ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -g hexen -m $(srcdir)/extra.cfg.template \ + -c extended $(top_srcdir)/src/m_config.c > $@ + + CMDLINE.hexen : CMDLINE.template $(top_srcdir)/src $(top_srcdir)/src/hexen +- $(DOCGEN) -p $(srcdir)/CMDLINE.template \ ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -p $(srcdir)/CMDLINE.template \ + $(top_srcdir)/src/ $(top_srcdir)/src/hexen/ > $@ + + INSTALL.hexen: INSTALL.template +@@ -116,19 +129,28 @@ INSTALL.hexen: INSTALL.template + + + @PROGRAM_PREFIX@strife.6: $(top_srcdir)/src $(MANPAGE_GEN_FILES) +- $(DOCGEN) -g strife -m $(srcdir)/strife.template \ ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -g strife -m $(srcdir)/strife.template \ + $(top_srcdir)/src $(top_srcdir)/src/strife > $@ + ++@PROGRAM_PREFIX@server.6: $(top_srcdir)/src $(MANPAGE_GEN_FILES) ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -g server -m $(srcdir)/server.template \ ++ $(top_srcdir)/src > $@ ++ + strife.cfg.5: $(top_srcdir)/src default.cfg.template +- $(DOCGEN) -g strife -m $(srcdir)/default.cfg.template \ +- -c default $(top_srcdir)/src/m_config.c > $@ ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -g strife -m $(srcdir)/default.cfg.template \ ++ -c default $(top_srcdir)/src/m_config.c > $@ + + @PROGRAM_PREFIX@strife.cfg.5: $(top_srcdir)/src extra.cfg.template +- $(DOCGEN) -g strife -m $(srcdir)/extra.cfg.template \ +- -c extended $(top_srcdir)/src/m_config.c > $@ ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -g strife -m $(srcdir)/extra.cfg.template \ ++ -c extended $(top_srcdir)/src/m_config.c > $@ + + CMDLINE.strife : CMDLINE.template $(top_srcdir)/src $(top_srcdir)/src/strife +- $(DOCGEN) -p $(srcdir)/CMDLINE.template \ ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -p $(srcdir)/CMDLINE.template \ + $(top_srcdir)/src/ $(top_srcdir)/src/strife/ > $@ + + INSTALL.strife: INSTALL.template +diff --git a/man/bash-completion/Makefile.am b/man/bash-completion/Makefile.am +index 2c036acf..801dd212 100644 +--- a/man/bash-completion/Makefile.am ++++ b/man/bash-completion/Makefile.am +@@ -19,21 +19,26 @@ CLEANFILES = $(BASH_COMPLETION_SCRIPTLETS) + + MANDIR = $(top_srcdir)/man + DOCGEN = $(MANDIR)/docgen ++DOCGEN_COMMON_ARGS = -n "@PROGRAM_SPREFIX@" -s "@PACKAGE_NAME@" + + @PROGRAM_PREFIX@doom: $(top_srcdir)/src $(DOCGEN) $(BASH_COMPLETION_TEMPLATES) +- $(DOCGEN) -g doom -b $(MANDIR)/doom.template \ ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -g doom -b $(MANDIR)/doom.template \ + $(top_srcdir)/src $(top_srcdir)/src/doom > $@ + + @PROGRAM_PREFIX@heretic: $(top_srcdir)/src $(DOCGEN) $(BASH_COMPLETION_TEMPLATES) +- $(DOCGEN) -g heretic -b $(MANDIR)/heretic.template \ ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -g heretic -b $(MANDIR)/heretic.template \ + $(top_srcdir)/src $(top_srcdir)/src/heretic > $@ + + @PROGRAM_PREFIX@hexen: $(top_srcdir)/src $(DOCGEN) $(BASH_COMPLETION_TEMPLATES) +- $(DOCGEN) -g hexen -b $(MANDIR)/hexen.template \ ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -g hexen -b $(MANDIR)/hexen.template \ + $(top_srcdir)/src $(top_srcdir)/src/hexen > $@ + + @PROGRAM_PREFIX@strife: $(top_srcdir)/src $(DOCGEN) $(BASH_COMPLETION_TEMPLATES) +- $(DOCGEN) -g strife -b $(MANDIR)/strife.template \ ++ $(DOCGEN) $(DOCGEN_COMMON_ARGS) \ ++ -g strife -b $(MANDIR)/strife.template \ + $(top_srcdir)/src $(top_srcdir)/src/strife > $@ + + EXTRA_DIST = \ +diff --git a/man/chocolate-setup.6 b/man/chocolate-setup.6 +index 21c9d5d4..64f65937 100644 +--- a/man/chocolate-setup.6 ++++ b/man/chocolate-setup.6 +@@ -1,20 +1,20 @@ +-.TH chocolate\-setup 6 ++.TH @PROGRAM_SPREFIX@\-setup 6 + .SH NAME +-chocolate\-setup \- configuration tool for chocolate\-doom ++@PROGRAM_SPREFIX@\-setup \- configuration tool for @PROGRAM_SPREFIX@\-doom + .SH SYNOPSIS +-.B chocolate\-setup ++.B @PROGRAM_SPREFIX@\-setup + [OPTIONS] + .SH DESCRIPTION + .PP +-Chocolate Doom is a modern Doom engine designed to behave ++@PACKAGE_NAME@ is a modern Doom engine designed to behave + as similar to the original Doom game as is possible. + .PP +-.B chocolate\-setup +-is a tool for configuring Chocolate Doom. It provides a menu\-based ++.B @PROGRAM_SPREFIX@\-setup ++is a tool for configuring @PACKAGE_NAME@. It provides a menu\-based + interface for the display, joystick, keyboard, mouse, sound and + compatibility settings. + .PP +-.B chocolate\-setup ++.B @PROGRAM_SPREFIX@\-setup + can also be used to start and join network games. + .PP + .SH OPTIONS +@@ -23,15 +23,15 @@ can also be used to start and join network games. + Load configuration from the specified file, instead of default.cfg. + .TP + \fB-extraconfig <file>\fR +-Load extra configuration from the specified file, instead of chocolate-doom.cfg. ++Load extra configuration from the specified file, instead of @PROGRAM_SPREFIX@\-doom.cfg. + .SH SEE ALSO +-\fBchocolate-doom\fR(6), ++\fB@CHOCOLATE_SPREFIX@\-doom\fR(6), + \fBdefault.cfg\fR(5), +-\fBchocolate-doom.cfg\fR(5) ++\fB@CHOCOLATE_SPREFIX@\-doom.cfg\fR(5) + .SH AUTHOR + Chocolate Doom is written and maintained by Simon Howard. + .PP +-This manual was written by Jon Dowland. ++This manual was written by Jonathan Dowland. + .SH COPYRIGHT + Copyright \(co id Software Inc. + Copyright \(co 2005-8 Simon Howard. +diff --git a/man/default.cfg.template b/man/default.cfg.template +index 5cf6256f..70c0d657 100644 +--- a/man/default.cfg.template ++++ b/man/default.cfg.template +@@ -1,21 +1,21 @@ + .TH default.cfg 5 + .SH NAME +-default.cfg \- Chocolate Doom configuration file ++default.cfg \- @PACKAGE_NAME@ configuration file + .SH DESCRIPTION + .PP + \fIdefault.cfg\fR +-is the configuration file for \fBchocolate-doom\fR(6). The configuration ++is the configuration file for \fB@PROGRAM_SPREFIX@\-doom\fR(6). The configuration + options stored in the file are the same as those stored in the + original DOS Vanilla Doom. +-Extra Chocolate Doom-specific options are stored in a separate +-configuration file, \fBchocolate-doom.cfg\fR. ++Extra @PACKAGE_NAME@-specific options are stored in a separate ++configuration file, \fB@PROGRAM_SPREFIX@\-doom.cfg\fR. + .PP + \fIdefault.cfg\fR is normally stored in the user's home directory, +-as \fI~/.local/share/chocolate-doom/default.cfg\fR. The path can be ++as \fI~/.local/share/@PROGRAM_SPREFIX@\-doom/default.cfg\fR. The path can be + overridden using the \fBXDG_DATA_HOME\fR environment variable (see the XDG + Base Directory Specification). + .PP +-The \fBchocolate-setup\fR(6) tool provides a simple to use front-end ++The \fB@PROGRAM_SPREFIX@\-setup\fR(6) tool provides a simple to use front-end + for editing \fIdefault.cfg\fR. + .br + .SH FILE FORMAT +@@ -49,7 +49,7 @@ indicating "false" and a non-zero value indicating "true". + @content + + .SH SEE ALSO +-\fBchocolate-doom\fR(6), +-\fBchocolate-doom.cfg\fR(5), +-\fBchocolate-setup\fR(6) ++\fB@PROGRAM_SPREFIX@\-doom\fR(6), ++\fB@PROGRAM_SPREFIX@\-doom.cfg\fR(5), ++\fB@PROGRAM_SPREFIX@\-setup\fR(6) + +diff --git a/man/docgen b/man/docgen +index e477e74e..defb9060 100755 +--- a/man/docgen ++++ b/man/docgen +@@ -430,7 +430,7 @@ def process_files(path): + + process_file(path) + +-def print_template(template_file, content): ++def print_template(template_file, program_prefix, package_name, content): + f = io.open(template_file, encoding='UTF-8') + + try: +@@ -440,14 +440,16 @@ def print_template(template_file, content): + filename = match.group(1) + filename = os.path.join(os.path.dirname(template_file), + filename) +- print_template(filename, content) ++ print_template(filename, program_prefix, package_name, content) + else: + line = line.replace("@content", content) ++ line = line.replace("@PROGRAM_SPREFIX@", program_prefix) ++ line = line.replace("@PACKAGE_SHORTNAME@", package_name) + stdout(line.rstrip().encode('UTF-8') + b'\n') + finally: + f.close() + +-def manpage_output(targets, template_file): ++def manpage_output(targets, program_prefix, package_name, template_file): + + content = "" + +@@ -456,7 +458,7 @@ def manpage_output(targets, template_file): + + content = content.replace("-", "\\-") + +- print_template(template_file, content) ++ print_template(template_file, program_prefix, package_name, content) + + def wiki_output(targets, template): + read_wikipages() +@@ -464,29 +466,31 @@ def wiki_output(targets, template): + for t in targets: + stdout(t.wiki_output().encode('UTF-8') + b'\n') + +-def plaintext_output(targets, template_file): ++def plaintext_output(targets, program_prefix, package_name, template_file): + + content = "" + + for t in targets: + content += t.plaintext_output() + "\n" + +- print_template(template_file, content) ++ print_template(template_file, program_prefix, package_name, content) + +-def completion_output(targets, template_file): ++def completion_output(targets, program_prefix, package_name, template_file): + + content = "" + + for t in targets: + content += t.completion_output() + "\n" + +- print_template(template_file, content) ++ print_template(template_file, program_prefix, package_name, content) + + def usage(): +- print("Usage: %s [-V] [-c tag] [-g game] ( -m | -w | -p ) <dir>..." \ ++ print("Usage: %s [-V] [-c tag] [-g game] -n name ( -m | -w | -p ) <dir>..." \ + % sys.argv[0]) + print(" -c : Provide documentation for the specified configuration file") + print(" (matches the given tag name in the source file)") ++ print(" -s : Package name (for substitution)") ++ print(" -n : Program name (for substitution)") + print(" -m : Manpage output") + print(" -w : Wikitext output") + print(" -p : Plaintext output") +@@ -497,14 +501,20 @@ def usage(): + + # Parse command line + +-opts, args = getopt.getopt(sys.argv[1:], "m:wp:b:c:g:V") ++opts, args = getopt.getopt(sys.argv[1:], "n:s:m:wp:b:c:g:V") + + output_function = None + template = None + doc_config_file = None + match_game = None ++program_prefix = None ++package_name = None + + for opt in opts: ++ if opt[0] == "-n": ++ program_prefix = opt[1] ++ if opt[0] == "-s": ++ package_name = opt[1] + if opt[0] == "-m": + output_function = manpage_output + template = opt[1] +@@ -546,5 +556,5 @@ else: + + # Generate the output + +- output_function(documentation_targets, template) ++ output_function(documentation_targets, program_prefix, package_name, template) + +diff --git a/man/doom.template b/man/doom.template +index 845147a8..da8d2141 100644 +--- a/man/doom.template ++++ b/man/doom.template +@@ -1,35 +1,35 @@ +-.TH chocolate\-doom 6 ++.TH @PROGRAM_SPREFIX@\-doom 6 + .SH NAME +-chocolate\-doom \- historically compatible Doom engine ++@PROGRAM_SPREFIX@\-doom \- historically compatible Doom engine + .SH SYNOPSIS +-.B chocolate\-doom ++.B @PROGRAM_SPREFIX@\-doom + [\fIOPTIONS\fR] + .SH DESCRIPTION + .PP +-Chocolate Doom is a port of Id Software's 1993 game "Doom" that is designed ++@PACKAGE_NAME@ is a port of Id Software's 1993 game "Doom" that is designed + to behave as similar to the original DOS version of Doom as is possible. + .br + @content + .SH IWAD SEARCH PATHS + @include iwad_paths.man + .SH ENVIRONMENT +-This section describes environment variables that control Chocolate Doom's ++This section describes environment variables that control @PACKAGE_NAME@'s + behavior. + @include environ.man + .SH FILES + .TP +-\fB$HOME/.local/share/chocolate-doom/default.cfg\fR +-The main configuration file for Chocolate Doom. See \fBdefault.cfg\fR(5). ++\fB$HOME/.local/share/@PROGRAM_SPREFIX@\-doom/default.cfg\fR ++The main configuration file for @PACKAGE_NAME@. See \fBdefault.cfg\fR(5). + .TP +-\fB$HOME/.local/share/chocolate-doom/chocolate-doom.cfg\fR +-Extra configuration values that are specific to Chocolate Doom and not +-present in Vanilla Doom. See \fBchocolate-doom.cfg\fR(5). ++\fB$HOME/.local/share/@PROGRAM_SPREFIX@\-doom/@PROGRAM_SPREFIX@\-doom.cfg\fR ++Extra configuration values that are specific to @PACKAGE_NAME@ and not ++present in Vanilla Doom. See \fB@PROGRAM_SPREFIX@\-doom.cfg\fR(5). + .SH SEE ALSO +-\fBchocolate-server\fR(6), +-\fBchocolate-setup\fR(6), +-\fBchocolate-heretic\fR(6), +-\fBchocolate-hexen\fR(6), +-\fBchocolate-strife\fR(6) ++\fB@PROGRAM_SPREFIX@\-server\fR(6), ++\fB@PROGRAM_SPREFIX@\-setup\fR(6), ++\fB@PROGRAM_SPREFIX@\-heretic\fR(6), ++\fB@PROGRAM_SPREFIX@\-hexen\fR(6), ++\fB@PROGRAM_SPREFIX@\-strife\fR(6) + .SH AUTHOR + Chocolate Doom is written and maintained by Simon Howard. It is based on + the LinuxDoom source code, released by Id Software. +diff --git a/man/extra.cfg.template b/man/extra.cfg.template +index b9317c53..77cc0dd3 100644 +--- a/man/extra.cfg.template ++++ b/man/extra.cfg.template +@@ -1,23 +1,23 @@ +-.TH chocolate-doom.cfg 5 ++.TH @PROGRAM_SPREFIX@\-doom.cfg 5 + .SH NAME +-chocolate-doom.cfg \- Chocolate Doom configuration file ++@PROGRAM_SPREFIX@\-doom.cfg \- @PACKAGE_NAME@ configuration file + .SH DESCRIPTION + .PP +-\fIchocolate-doom.cfg\fR +-is a configuration file for \fBchocolate-doom\fR(6). This file acts ++\fI@PROGRAM_SPREFIX@\-doom.cfg\fR ++is a configuration file for \fB@PROGRAM_SPREFIX@\-doom\fR(6). This file acts + as an auxiliary configuration file; the main configuration options + are stored in \fBdefault.cfg\fR, which contains the same configuration +-options as Vanilla Doom (for compatibility). \fIchocolate-doom.cfg\fR +-contains configuration options that are specific to Chocolate Doom ++options as Vanilla Doom (for compatibility). \fI@PROGRAM_SPREFIX@\-doom.cfg\fR ++contains configuration options that are specific to @PACKAGE_NAME@ + only. + .PP +-\fIchocolate-doom.cfg\fR is normally stored in the user's home directory, +-as \fI~/.local/share/chocolate-doom/chocolate-doom.cfg\fR. The path can be ++\fI@PROGRAM_SPREFIX@\-doom.cfg\fR is normally stored in the user's home directory, ++as \fI~/.local/share/@PROGRAM_SPREFIX@\-doom/@PROGRAM_SPREFIX@\-doom.cfg\fR. The path can be + overridden using the \fBXDG_DATA_HOME\fR environment variable (see the XDG + Base Directory Specification). + .PP +-The \fBchocolate-setup\fR(6) tool provides a simple to use front-end +-for editing \fIchocolate-doom.cfg\fR. ++The \fB@PROGRAM_SPREFIX@\-setup\fR(6) tool provides a simple to use front-end ++for editing \fI@PROGRAM_SPREFIX@\-doom.cfg\fR. + .SH FILE FORMAT + .PP + The file format is the same as that used for \fBdefault.cfg\fR(5). +@@ -26,7 +26,7 @@ The file format is the same as that used for \fBdefault.cfg\fR(5). + @content + + .SH SEE ALSO +-\fBchocolate-doom\fR(6), ++\fB@PROGRAM_SPREFIX@\-doom\fR(6), + \fBdefault.cfg\fR(5), +-\fBchocolate-setup\fR(6) ++\fB@PROGRAM_SPREFIX@\-setup\fR(6) + +diff --git a/man/heretic.template b/man/heretic.template +index 944d4a83..c078c7c6 100644 +--- a/man/heretic.template ++++ b/man/heretic.template +@@ -1,8 +1,8 @@ +-.TH chocolate\-heretic 6 ++.TH @PROGRAM_SPREFIX@\-heretic 6 + .SH NAME +-chocolate\-heretic \- historically compatible Heretic engine ++@PROGRAM_SPREFIX@\-heretic \- historically compatible Heretic engine + .SH SYNOPSIS +-.B chocolate\-heretic ++.B @PROGRAM_SPREFIX@\-heretic + [\fIOPTIONS\fR] + .SH DESCRIPTION + .PP +@@ -19,17 +19,17 @@ behavior. + @include environ.man + .SH FILES + .TP +-\fB$HOME/.local/share/chocolate-doom/heretic.cfg\fR ++\fB$HOME/.local/share/@PROGRAM_SPREFIX@\-doom/heretic.cfg\fR + The main configuration file for Chocolate Heretic. See \fBheretic.cfg\fR(5). + .TP +-\fB$HOME/.local/share/chocolate-doom/chocolate-heretic.cfg\fR ++\fB$HOME/.local/share/@PROGRAM_SPREFIX@\-doom/@PROGRAM_SPREFIX@\-heretic.cfg\fR + Extra configuration values that are specific to Chocolate Heretic and not +-present in Vanilla Heretic. See \fBchocolate-heretic.cfg\fR(5). ++present in Vanilla Heretic. See \fB@PROGRAM_SPREFIX@\-heretic.cfg\fR(5). + .SH SEE ALSO +-\fBchocolate-doom\fR(6), +-\fBchocolate-hexen\fR(6), +-\fBchocolate-server\fR(6), +-\fBchocolate-setup\fR(6) ++\fB@PROGRAM_SPREFIX@\-doom\fR(6), ++\fB@PROGRAM_SPREFIX@\-hexen\fR(6), ++\fB@PROGRAM_SPREFIX@\-server\fR(6), ++\fB@PROGRAM_SPREFIX@\-setup\fR(6) + .SH AUTHOR + Chocolate Heretic is part of the Chocolate Doom project, written and + maintained by Simon Howard. It is based on the Heretic source code, +diff --git a/man/hexen.template b/man/hexen.template +index 7772b1d4..9184a27e 100644 +--- a/man/hexen.template ++++ b/man/hexen.template +@@ -1,8 +1,8 @@ +-.TH chocolate\-hexen 6 ++.TH @PROGRAM_SPREFIX@\-hexen 6 + .SH NAME +-chocolate\-hexen \- historically compatible Hexen engine ++@PROGRAM_SPREFIX@\-hexen \- historically compatible Hexen engine + .SH SYNOPSIS +-.B chocolate\-hexen ++.B @PROGRAM_SPREFIX@\-hexen + [\fIOPTIONS\fR] + .SH DESCRIPTION + .PP +@@ -19,17 +19,17 @@ behavior. + @include environ.man + .SH FILES + .TP +-\fB$HOME/.local/share/chocolate-doom/hexen.cfg\fR ++\fB$HOME/.local/share/@PROGRAM_SPREFIX@\-doom/hexen.cfg\fR + The main configuration file for Chocolate Hexen. See \fBhexen.cfg\fR(5). + .TP +-\fB$HOME/.local/share/chocolate-doom/chocolate-hexen.cfg\fR ++\fB$HOME/.local/share/@PROGRAM_SPREFIX@\-doom/@PROGRAM_SPREFIX@\-hexen.cfg\fR + Extra configuration values that are specific to Chocolate Hexen and not +-present in Vanilla Hexen. See \fBchocolate-hexen.cfg\fR(5). ++present in Vanilla Hexen. See \fB@PROGRAM_SPREFIX@\-hexen.cfg\fR(5). + .SH SEE ALSO +-\fBchocolate-doom\fR(6), +-\fBchocolate-heretic\fR(6), +-\fBchocolate-server\fR(6), +-\fBchocolate-setup\fR(6) ++\fB@PROGRAM_SPREFIX@\-doom\fR(6), ++\fB@PROGRAM_SPREFIX@\-heretic\fR(6), ++\fB@PROGRAM_SPREFIX@\-server\fR(6), ++\fB@PROGRAM_SPREFIX@\-setup\fR(6) + .SH AUTHOR + Chocolate Hexen is part of the Chocolate Doom project, written and + maintained by Simon Howard. It is based on the Hexen source code, +diff --git a/man/chocolate-server.6 b/man/server.template +similarity index 74% +rename from man/chocolate-server.6 +rename to man/server.template +index 74dc6f42..643779f6 100644 +--- a/man/chocolate-server.6 ++++ b/man/server.template +@@ -1,18 +1,18 @@ +-.TH chocolate\-server 6 ++.TH @PROGRAM_SPREFIX@\-server 6 + .SH NAME +-chocolate\-server \- dedicated server for chocolate\-doom ++@PROGRAM_SPREFIX@\-server \- dedicated server for @PROGRAM_SPREFIX@\-doom + .SH SYNOPSIS +-.B chocolate\-server ++.B @PROGRAM_SPREFIX@\-server + [OPTIONS] + .SH DESCRIPTION + .PP +-Chocolate Doom is a modern doom engine designed to behave ++@PACKAGE_SHORTNAME@ is a modern doom engine designed to behave + as similar to the original doom game as is possible. + .PP +-.B chocolate\-server +-is a dedicated server for Chocolate Doom. It is equivalent to ++.B @PROGRAM_SPREFIX@\-server ++is a dedicated server for @PACKAGE_SHORTNAME@. It is equivalent to + running +-.B chocolate\-doom ++.B @PROGRAM_SPREFIX@\-doom + with the "\-dedicated" option. + .PP + Game options are not specified to the server, which merely acts to +@@ -36,12 +36,12 @@ Don't register with the global master server. + \fB-servername <name>\fR + Specify a name for the server. + .SH SEE ALSO +-\fBchocolate-doom\fR(6), +-\fBchocolate-setup\fR(6) ++\fB@PROGRAM_SPREFIX@-doom\fR(6), ++\fB@PROGRAM_SPREFIX@-setup\fR(6) + .SH AUTHOR + Chocolate Doom is written and maintained by Simon Howard. + .PP +-This manual was written by Jon Dowland. ++This manual was written by Jonathan Dowland. + .SH COPYRIGHT + Copyright \(co id Software Inc. + Copyright \(co 2005-8 Simon Howard. +diff --git a/man/strife.template b/man/strife.template +index d616c17b..9ca7f14e 100644 +--- a/man/strife.template ++++ b/man/strife.template +@@ -1,8 +1,8 @@ +-.TH chocolate\-strife 6 ++.TH @PROGRAM_SPREFIX@\-strife 6 + .SH NAME +-chocolate\-strife \- historically compatible strife engine ++@PROGRAM_SPREFIX@\-strife \- historically compatible Strife engine + .SH SYNOPSIS +-.B chocolate\-strife ++.B @PROGRAM_SPREFIX@\-strife + [\fIOPTIONS\fR] + .SH DESCRIPTION + .PP +@@ -22,16 +22,16 @@ behavior. + + .SH FILES + .TP +-\fB$HOME/.local/share/chocolate-doom/strife.cfg\fR ++\fB$HOME/.local/share/@PROGRAM_SPREFIX@\-doom/strife.cfg\fR + The main configuration file for Chocolate Strife. See \fBstrife.cfg\fR(5). + .TP +-\fB$HOME/.local/share/chocolate-doom/chocolate-strife.cfg\fR ++\fB$HOME/.local/share/@PROGRAM_SPREFIX@\-doom/@PROGRAM_SPREFIX@\-strife.cfg\fR + Extra configuration values that are specific to Chocolate Strife and not +-present in Vanilla Strife. See \fBchocolate-strife.cfg\fR(5). ++present in Vanilla Strife. See \fB@PROGRAM_SPREFIX@\-strife.cfg\fR(5). + .SH SEE ALSO +-\fBchocolate-doom\fR(6), +-\fBchocolate-server\fR(6), +-\fBchocolate-setup\fR(6) ++\fB@PROGRAM_SPREFIX@\-doom\fR(6), ++\fB@PROGRAM_SPREFIX@\-server\fR(6), ++\fB@PROGRAM_SPREFIX@\-setup\fR(6) + + .SH HISTORY + The source code for Strife was lost, which means, unlike the code for all the +-- +2.26.2 + diff --git a/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-use-reverse-DNS-naming-for-installing-.desktop-files.patch b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-use-reverse-DNS-naming-for-installing-.desktop-files.patch new file mode 100644 index 000000000000..ceed45834ff0 --- /dev/null +++ b/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-use-reverse-DNS-naming-for-installing-.desktop-files.patch @@ -0,0 +1,162 @@ +From bc50bd123e2b43ff404599b2a017a98261a66e47 Mon Sep 17 00:00:00 2001 +From: Mike Swanson <mikeonthecomputer@gmail.com> +Date: Sat, 7 Sep 2019 10:57:50 -0700 +Subject: [PATCH] use reverse-DNS naming for installing *.desktop files + +This is similar to and consistent with the previous commit, and the +desktop entry specification recommends doing this as well. +--- + configure.ac | 12 +++---- + src/{doom.desktop.in => Doom.desktop.in} | 0 + ...desktop.in => Doom_Screensaver.desktop.in} | 0 + ...{heretic.desktop.in => Heretic.desktop.in} | 0 + src/{hexen.desktop.in => Hexen.desktop.in} | 0 + src/Makefile.am | 32 +++++++++---------- + src/{strife.desktop.in => Strife.desktop.in} | 0 + src/setup/Makefile.am | 6 ++-- + .../{setup.desktop.in => Setup.desktop.in} | 0 + 9 files changed, 25 insertions(+), 25 deletions(-) + rename src/{doom.desktop.in => Doom.desktop.in} (100%) + rename src/{doom-screensaver.desktop.in => Doom_Screensaver.desktop.in} (100%) + rename src/{heretic.desktop.in => Heretic.desktop.in} (100%) + rename src/{hexen.desktop.in => Hexen.desktop.in} (100%) + rename src/{strife.desktop.in => Strife.desktop.in} (100%) + rename src/setup/{setup.desktop.in => Setup.desktop.in} (100%) + +diff --git a/configure.ac b/configure.ac +index 8a3e1bbc..032a8be2 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -168,22 +168,22 @@ rpm.spec + data/Makefile + src/Makefile + src/Doom.metainfo.xml +-src/doom.desktop +-src/doom-screensaver.desktop ++src/Doom.desktop ++src/Doom_Screensaver.desktop + src/doom/Makefile + src/Heretic.metainfo.xml +-src/heretic.desktop ++src/Heretic.desktop + src/heretic/Makefile + src/Hexen.metainfo.xml +-src/hexen.desktop ++src/Hexen.desktop + src/hexen/Makefile + src/resource.rc + src/setup-res.rc + src/setup/Makefile +-src/setup/setup.desktop ++src/setup/Setup.desktop + src/setup/setup-manifest.xml + src/Strife.metainfo.xml +-src/strife.desktop ++src/Strife.desktop + src/strife/Makefile + textscreen/Makefile + textscreen/examples/Makefile +diff --git a/src/doom.desktop.in b/src/Doom.desktop.in +similarity index 100% +rename from src/doom.desktop.in +rename to src/Doom.desktop.in +diff --git a/src/doom-screensaver.desktop.in b/src/Doom_Screensaver.desktop.in +similarity index 100% +rename from src/doom-screensaver.desktop.in +rename to src/Doom_Screensaver.desktop.in +diff --git a/src/heretic.desktop.in b/src/Heretic.desktop.in +similarity index 100% +rename from src/heretic.desktop.in +rename to src/Heretic.desktop.in +diff --git a/src/hexen.desktop.in b/src/Hexen.desktop.in +similarity index 100% +rename from src/hexen.desktop.in +rename to src/Hexen.desktop.in +diff --git a/src/Makefile.am b/src/Makefile.am +index 6880bd3c..19a42598 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -217,7 +217,7 @@ endif + EXTRA_DIST = \ + CMakeLists.txt \ + icon.c \ +- doom-screensaver.desktop.in \ ++ Doom_Screensaver.desktop.in \ + manifest.xml + + metainfodir = $(prefix)/share/metainfo +@@ -241,28 +241,28 @@ metainfo_DATA = \ + + appdir = $(prefix)/share/applications + app_DATA = \ +- @PROGRAM_PREFIX@doom.desktop \ +- @PROGRAM_PREFIX@heretic.desktop \ +- @PROGRAM_PREFIX@hexen.desktop \ +- @PROGRAM_PREFIX@strife.desktop ++ @PACKAGE_RDNS@.Doom.desktop \ ++ @PACKAGE_RDNS@.Heretic.desktop \ ++ @PACKAGE_RDNS@.Hexen.desktop \ ++ @PACKAGE_RDNS@.Strife.desktop + +-@PROGRAM_PREFIX@doom.desktop : doom.desktop +- cp doom.desktop $@ ++@PACKAGE_RDNS@.Doom.desktop : Doom.desktop ++ cp Doom.desktop $@ + +-@PROGRAM_PREFIX@heretic.desktop : heretic.desktop +- cp heretic.desktop $@ ++@PACKAGE_RDNS@.Heretic.desktop : Heretic.desktop ++ cp Heretic.desktop $@ + +-@PROGRAM_PREFIX@hexen.desktop : hexen.desktop +- cp hexen.desktop $@ ++@PACKAGE_RDNS@.Hexen.desktop : Hexen.desktop ++ cp Hexen.desktop $@ + +-@PROGRAM_PREFIX@strife.desktop : strife.desktop +- cp strife.desktop $@ ++@PACKAGE_RDNS@.Strife.desktop : Strife.desktop ++ cp Strife.desktop $@ + + screensaverdir = $(prefix)/share/applications/screensavers +-screensaver_DATA = @PROGRAM_PREFIX@doom-screensaver.desktop ++screensaver_DATA = @PACKAGE_RDNS@.Doom_Screensaver.desktop + +-@PROGRAM_PREFIX@doom-screensaver.desktop: doom-screensaver.desktop +- cp doom-screensaver.desktop $@ ++@PACKAGE_RDNS@.Doom_Screensaver.desktop: Doom_Screensaver.desktop ++ cp Doom_Screensaver.desktop $@ + + CLEANFILES = $(execgames_SCRIPTS) $(app_DATA) $(screensaver_DATA) + +diff --git a/src/strife.desktop.in b/src/Strife.desktop.in +similarity index 100% +rename from src/strife.desktop.in +rename to src/Strife.desktop.in +diff --git a/src/setup/Makefile.am b/src/setup/Makefile.am +index 76db29cf..a9dd240c 100644 +--- a/src/setup/Makefile.am ++++ b/src/setup/Makefile.am +@@ -26,12 +26,12 @@ EXTRA_DIST= \ + setup_icon.c + + appdir = $(prefix)/share/applications +-app_DATA = @PROGRAM_PREFIX@setup.desktop ++app_DATA = @PACKAGE_RDNS@.Setup.desktop + + CLEANFILES = $(app_DATA) + +-@PROGRAM_PREFIX@setup.desktop : setup.desktop +- cp setup.desktop $@ ++@PACKAGE_RDNS@.Setup.desktop : Setup.desktop ++ cp Setup.desktop $@ + + if HAVE_PYTHON + +diff --git a/src/setup/setup.desktop.in b/src/setup/Setup.desktop.in +similarity index 100% +rename from src/setup/setup.desktop.in +rename to src/setup/Setup.desktop.in +-- +2.26.2 + diff --git a/games-fps/chocolate-doom/metadata.xml b/games-fps/chocolate-doom/metadata.xml new file mode 100644 index 000000000000..2b0187cf2a63 --- /dev/null +++ b/games-fps/chocolate-doom/metadata.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <longdescription lang="en"> + Chocolate Doom aims to accurately reproduce the original DOS version of Doom and other games based on the Doom engine in a form that can be run on modern computers. + </longdescription> + <maintainer type="person"> + <email>vilhelm.gray@gmail.com</email> + <name>William Breathitt Gray</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <use> + <flag name="midi">basic support for MIDI files</flag> + </use> + <upstream> + <bugs-to>https://github.com/chocolate-doom/chocolate-doom/issues</bugs-to> + <doc lang="en">https://www.chocolate-doom.org</doc> + <remote-id type="github">chocolate-doom/chocolate-doom</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-fps/duke3d-demodata/Manifest b/games-fps/duke3d-demodata/Manifest index 1103c2132991..436c818213d0 100644 --- a/games-fps/duke3d-demodata/Manifest +++ b/games-fps/duke3d-demodata/Manifest @@ -1,3 +1,3 @@ DIST 3dduke13.zip 5924374 BLAKE2B 177329f04defdd2a2ab35a1926a321bbc8de023878ad6bec610669b5578cbe2f38bc0b03a37c0d0d2dcc99acf2b473ddf683b498b971b857b20964bcdbc7d7c8 SHA512 eb92daa88b4e7cfeebe1fb3d2c021e0a4a66262d0d6e76b5e27fe3cedd382e381d23b392a6d9adb42a418b9318e011c2d8adfbdc77d7c5371e61d8c091c7eb65 -EBUILD duke3d-demodata-1.3.ebuild 1136 BLAKE2B 0223ae9ec801d575d630cdbbf0f6a609b99a4e67b108a14b3c02e4a8c44e0a5a1df0c46ab69d3affb70a35eca592b0dd68f118e519c485edc8bd6fae4fc93b29 SHA512 1c234c8c8759d68b5b0b81afae55add183754c8237b84fc935a22e6c847e17c4692940f1e7dae21e9c108b542a24d3c735a51e18579c8376b2473867b0aeec03 +EBUILD duke3d-demodata-1.3.ebuild 1137 BLAKE2B 620a1ca5368e7f5f91f44991a0369fcda0750edc2e9ac90329a3b61ecac9e43dc3ae2995fd68c84422663c88f989e26bcc6694594095c5ebda352d41d95b1d65 SHA512 7d70c70b78d43b8b850a6a73a48ca008f0d13f121d25eba0d61b6617359602731850cdd45c531863d273dae87d5f51acc515e5a7f59f6765b582763d8ed9096d MISC metadata.xml 253 BLAKE2B 443ca9c8d4f6801169382e87a0ecd1385c56e65229209e7200f9d313ef380e92ae8d7dc3c38e5989a4166289f22607a20b1e13bb960fff6b3d9f78629d8ab020 SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 diff --git a/games-fps/duke3d-demodata/duke3d-demodata-1.3.ebuild b/games-fps/duke3d-demodata/duke3d-demodata-1.3.ebuild index dbe45f7cb3f2..125222e3bd04 100644 --- a/games-fps/duke3d-demodata/duke3d-demodata-1.3.ebuild +++ b/games-fps/duke3d-demodata/duke3d-demodata-1.3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -7,7 +7,7 @@ inherit games DESCRIPTION="Duke Nukem 3D 1.3d shareware data" HOMEPAGE="http://www.3drealms.com/duke3d/" -SRC_URI="ftp://ftp.3drealms.com/share/3dduke13.zip" +SRC_URI="https://dnr.duke4.net/dl/024fbc5/3dduke13.zip" LICENSE="DUKE3D" SLOT="0" diff --git a/games-fps/eduke32/Manifest b/games-fps/eduke32/Manifest index 5faaddb77ecc..03538c48a932 100644 --- a/games-fps/eduke32/Manifest +++ b/games-fps/eduke32/Manifest @@ -9,6 +9,6 @@ DIST duke3d_psx-1.11.zip 7636016 BLAKE2B 63094c0eb2343e443f98844675ddc23a138d87c DIST duke3d_voxels-1.21.zip 2997999 BLAKE2B dcb3103a82b45cfcf906d00147a57fe47997680ff7550973ed9741e62e78f9a099c1a13f65eaa133076d6551fcdfbf34e28ff59f2ad59f91ece98753e7d39523 SHA512 4b55dcc192cb2aa8830250fd222664272176bea8f6c6e4ac6d488abfecb1332b5793986c164fde78901904e2bde37e6ee4aa020c5eb578002de8f6102f44df15 DIST duke3d_xxx-1.33.zip 26586453 BLAKE2B 7e3c46172d3db1b2eb49eb07f243a9ead4f260d6b1dcae9f8bd599b8e9ba3a19068032afeb4ec2cf61742b6216e3a06c24f2b7e8903f9636f9d00f4d57ada47f SHA512 4783d159610fc178e748446b7a5f9c13d90e1aca3cef34deb82e99655b7f4a254f1130e16dbcfad9013b95bc07161d5c5dccfcc552fbb7a88404b4b9cedbadbf DIST eduke32_classic.png 5129 BLAKE2B 332ad44b7f6b4f51362387aa6870e7db54423ca5a1f0586cb5019322fb72317d8e88e0bbf46ac89b56290db7e2e4a8442179a6eb87a615fd741b5f00ce96a1c8 SHA512 b41dece8f1ddcadde3367a83f6029ffdc5805811b40380e270169684fb3b368258bd8caeb55623dadffb6fb9d72faf9a3d75907722623f4fac94a4347f8ce833 -DIST eduke32_src_20200808-9208-16a4d06be.tar.xz 19787360 BLAKE2B 3344a660fd5dec951e27e74a0680ba506692991c96438af53901bd5c090ca4c14be90db37ad4cc454c7f0dc2b7628a9bb9abce4e55c4dd9713a1fe90af28c53d SHA512 0b88ed5a0c3a5134aaabe9c30eb2d9a2a17c4833388788c4e1d3bf6bc76aa0edb3b6189c503f614894d480d25a27d498df11fb13ea64c465253a9b564c43b78c -EBUILD eduke32-20200808.9208.ebuild 5831 BLAKE2B e2f586a983d31679dc6287d7703b4c243134ed888c738ad244e3e66798f6a261f11f07fafc6bc0d6920e46a8f4a159fb347fa009326ae25bd5244c51e39a48d8 SHA512 a3bd85f958b3f398bce72f1f8a7602cc32b3018170f5ce7610e87b06c45f7e2aa239e6306c64b20734b899beb9de97f9bc53ed76102ed8530971bc044b8d6638 +DIST eduke32_src_20200824-9249-175ae4cd5.tar.xz 19787088 BLAKE2B d9d6cacc6fd44187fede81803dc4a98f2c199b3439278b523d924456371e289ea24ccea61cc5de8687f83c65e53fe66f8bddb6c104aec696b39176ddae146d57 SHA512 b963a885f89e33c09af4d6c1fba81a18198e9ab8617667c5492e2b70355b7fcaabfacf385f652e3f8d39ee155921a7d5d3afe802bd98f9187ccd29cdcc602190 +EBUILD eduke32-20200824.9249.ebuild 5844 BLAKE2B 629bfc52e63b89af73ab3a77650b56e109159c90fa6569153143755e8a41ea2c75425a182e69670d0852bce4b76c2a2e0466f85df291218412f9c42d2849ccce SHA512 7b11458560af781dd6b2fa732d5038d609de94fde4f3545ec80d0d1a1f7383bcab1ac87b0d0c48df974434238f007f5995f32fdb34e2b180e7f51c03e960ce9a MISC metadata.xml 1608 BLAKE2B 73414a3516a4a690254e70ad071f160688ac11e8fe0634b0218565fc32e01d1e4b8ed0ce830ecd995e715552f23fd50f8c7cb0b0af95f6cdb07a35940639e779 SHA512 2392e18cc53663943341397d3a92f07b3dbbb04497b584739095bef5e9b2f60376115a2952e0d2eba524b3a678e7c205ad3e66a78709a2f4d36b3ea76d8b8c09 diff --git a/games-fps/eduke32/eduke32-20200808.9208.ebuild b/games-fps/eduke32/eduke32-20200824.9249.ebuild index e1fadcfdc493..7f53b7f0a691 100644 --- a/games-fps/eduke32/eduke32-20200808.9208.ebuild +++ b/games-fps/eduke32/eduke32-20200824.9249.ebuild @@ -5,7 +5,7 @@ EAPI=7 inherit desktop toolchain-funcs xdg-utils -EGIT_COMMIT="16a4d06be" +EGIT_COMMIT="175ae4cd5" MY_BUILD="$(ver_cut 2)" MY_DATE="$(ver_cut 1)" MY_PV_HRP="5.4" @@ -74,8 +74,6 @@ RDEPEND=" DEPEND=" ${RDEPEND} - cdinstall? ( games-fps/duke3d-data ) - demo? ( games-fps/duke3d-demodata ) timidity? ( media-sound/timidity++ ) " @@ -84,6 +82,11 @@ BDEPEND=" x86? ( dev-lang/nasm ) " +PDEPEND=" + cdinstall? ( games-fps/duke3d-data ) + demo? ( games-fps/duke3d-demodata ) +" + PATCHES=( "${FILESDIR}/${PN}-20190820.8043-log-to-tmpdir.patch" "${FILESDIR}/${PN}-20190820.8043-search-duke3d-path.patch" |