summaryrefslogtreecommitdiff
path: root/games-fps
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-06-13 10:39:22 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-06-13 10:39:22 +0100
commit9452a6e87b6c2c70513bc47a2470bf9f1168920e (patch)
tree8ac67e26b45f34d71c5aab3621813b100a0d5f00 /games-fps
parentf516638b7fe9592837389826a6152a7e1b251c54 (diff)
gentoo resync : 13.06.2020
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/Manifest.gzbin10827 -> 10826 bytes
-rw-r--r--games-fps/prboom-plus/Manifest8
-rw-r--r--games-fps/prboom-plus/files/prboom-plus-2.5.1.4-Remove-nonstandard-gamesdir-variable.patch33
-rw-r--r--games-fps/prboom-plus/files/prboom-plus-2.5.1.7.82-Add-CMake-install-targets.patch59
-rw-r--r--games-fps/prboom-plus/metadata.xml3
-rw-r--r--games-fps/prboom-plus/prboom-plus-2.5.1.5.4540.1.ebuild64
-rw-r--r--games-fps/prboom-plus/prboom-plus-2.5.1.7.82.ebuild64
7 files changed, 129 insertions, 102 deletions
diff --git a/games-fps/Manifest.gz b/games-fps/Manifest.gz
index 5270764c0d93..cb024d4067ac 100644
--- a/games-fps/Manifest.gz
+++ b/games-fps/Manifest.gz
Binary files differ
diff --git a/games-fps/prboom-plus/Manifest b/games-fps/prboom-plus/Manifest
index a25508ccb09d..0ee989d42d26 100644
--- a/games-fps/prboom-plus/Manifest
+++ b/games-fps/prboom-plus/Manifest
@@ -1,4 +1,4 @@
-AUX prboom-plus-2.5.1.4-Remove-nonstandard-gamesdir-variable.patch 907 BLAKE2B efbd5fda7e4e1d8ac57f4d17381b9ea0ae3c2a64e1edfec0f55c25c5fa96c22d842cb510773bd7cfb4e244b3533b0b36a2112d6537ec6cf895c6aa6c922bdf38 SHA512 5582a1a7a69960eea22ed6bc7cfeb4e3e75480f5f6495cb44691548e5cf3ed80901a9059c19eba1c8ddcb2ce02aa52570e13906348c65d8a3f25960543d31b65
-DIST prboom-plus-2.5.1.5.4540.1.tar.xz 1023228 BLAKE2B 5b1c6aa80516cef4ced73701b640a261188c6eed818a204ef19f183061c0456f4af70dc8b466c240f5c8985903fe4daf0fed42cd32b47849c02b6c890fa807f0 SHA512 9fe207a395d92305dd3b89a38bc1376de6bd2a7bb29d454da42aea03a4ded82b49033d482d97c76377cbd1ecb7d8a65c9e0948af81ecd4e10bd49b0bad791bbc
-EBUILD prboom-plus-2.5.1.5.4540.1.ebuild 1664 BLAKE2B 2e9d98fe14a8f442fbf4a92935c94b6b125c8ced03b82dd8cca3e4d9c76c599ad65bf4d842c82b30b05ad3967945f9a5fd5a33a53f6ad4213edb2c63dbe1ec8d SHA512 fb1c5e4ca5b68bc8a6f04c690712382f94e9f9f45b6eb4ad8a426157a438a6e08423fd5f52271cb5fa47e543543b4d7e08663c97cf311df9d19b6d7bd9f12d45
-MISC metadata.xml 1838 BLAKE2B b979e9ba17d881da816fd681d0fc43e70f451b8ec0e8dab47dd9e8b870931df5a6a3b5896f75e391afef668ddb8238ae45d1174612653626910a932fc34ee119 SHA512 3dfcc5e4bec610993506298a3427ef21470f106d19e1f7d0810d6dd69d2691b639112fa09d70a54b0cadbb7dc9b89c93d5b48c5c104caecc68aca96a0a99cd04
+AUX prboom-plus-2.5.1.7.82-Add-CMake-install-targets.patch 2501 BLAKE2B 66496503315613582a99c89bcf53afcc96fd4749a352dcf285461d3a528d34523e2fbb83134b42ce8391749c29b5d68e0adc5acd2344bdc79ea3716135c806cb SHA512 e18e732c53207a6658f24d17ca68feb4b78930c83e5b55f370d4a63f05d190301a81a5f11a3dc9df9bcdcd73fd803713a8fd37e9529e7399b3d0974e1dcc2055
+DIST prboom-plus-2.5.1.7.82.tar.gz 1541604 BLAKE2B 7c10754aa5f85879b63a3778d87e8e2fcd21fcd5092f96a31dc087e878ca080b9ce48d2e7d8f5cac9aa05c8a69cf5f6e9661a5b581de7afe21d59a18af2e57e9 SHA512 55f0ec4edcbac80174aadc63f1f77f3b868a6d1e8efc309ed6f71898d486a3c31d18e08130c9b4a6afd63185003bfd11e6b5940b550071f60168b3c716845f0f
+EBUILD prboom-plus-2.5.1.7.82.ebuild 1884 BLAKE2B 1c87336788e315490930d65ad9c5c1d211dc2843ac5de81a1db0c825db670fa502eb4ac354d77f77d867cefef7a8a37119d32d953591a9ced2a720b6ba6889c5 SHA512 900e15e9c5a8bc9699f254ec579b9c9430f294f470ef00e08c40b932a45447704ea46c990ef9b5edd2c15093cb1803b8a0c72090309d57050d71791e77d6033c
+MISC metadata.xml 1897 BLAKE2B 11935d4ca429c123e759fbe7e32ab94a8f8783fdba95d0c65bbd2780f8f86110007c897f0530407647e5aed1603bf962a171234298676779b1e32042aa4c8258 SHA512 e5d67ba4b226cf843fb473bc08727c4431382a8fede6c43f4699b702bff0dd6747306a3abf205d2fd00f11bd421493cf2c8967726bfcb5c18314ee6fd35d1417
diff --git a/games-fps/prboom-plus/files/prboom-plus-2.5.1.4-Remove-nonstandard-gamesdir-variable.patch b/games-fps/prboom-plus/files/prboom-plus-2.5.1.4-Remove-nonstandard-gamesdir-variable.patch
deleted file mode 100644
index c64bd135937d..000000000000
--- a/games-fps/prboom-plus/files/prboom-plus-2.5.1.4-Remove-nonstandard-gamesdir-variable.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From d0aaa51e05da23c2b0ad46901c2f4b3cd0500681 Mon Sep 17 00:00:00 2001
-From: William Breathitt Gray <vilhelm.gray@gmail.com>
-Date: Fri, 21 Jun 2019 17:31:01 +0900
-Subject: [PATCH] Remove nonstandard gamesdir variable
-
-The Autotools canonical method of configuring the program installation
-directory is via the bindir variable (e.g. "--bindir=/usr/games/doom").
----
- src/Makefile.am | 6 ++----
- 1 file changed, 2 insertions(+), 4 deletions(-)
-
-diff --git a/src/Makefile.am b/src/Makefile.am
-index c20da98..9b3ab13 100644
---- a/src/Makefile.am
-+++ b/src/Makefile.am
-@@ -8,12 +8,10 @@
-
- SUBDIRS = SDL POSIX MAC PCSOUND TEXTSCREEN MUSIC
-
--gamesdir=$(prefix)/games
--
- if BUILD_SERVER
--games_PROGRAMS = prboom-plus prboom-plus-game-server
-+bin_PROGRAMS = prboom-plus prboom-plus-game-server
- else
--games_PROGRAMS = prboom-plus
-+bin_PROGRAMS = prboom-plus
- endif
-
- CFLAGS = @CFLAGS@ @SDL_CFLAGS@
---
-2.22.0
-
diff --git a/games-fps/prboom-plus/files/prboom-plus-2.5.1.7.82-Add-CMake-install-targets.patch b/games-fps/prboom-plus/files/prboom-plus-2.5.1.7.82-Add-CMake-install-targets.patch
new file mode 100644
index 000000000000..b506fdd6aacc
--- /dev/null
+++ b/games-fps/prboom-plus/files/prboom-plus-2.5.1.7.82-Add-CMake-install-targets.patch
@@ -0,0 +1,59 @@
+From b123022530997df901abbfc7f8dab2846e7d1d7a Mon Sep 17 00:00:00 2001
+From: William Breathitt Gray <vilhelm.gray@gmail.com>
+Date: Sat, 6 Jun 2020 13:39:46 -0400
+Subject: [PATCH] Add CMake install targets
+
+Fixes: https://github.com/coelckers/prboom-plus/issues/70
+---
+ prboom2/CMakeLists.txt | 2 +-
+ prboom2/data/CMakeLists.txt | 2 ++
+ prboom2/src/CMakeLists.txt | 3 +++
+ 3 files changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/prboom2/CMakeLists.txt b/prboom2/CMakeLists.txt
+index 4aba6b94..932182b6 100644
+--- a/prboom2/CMakeLists.txt
++++ b/prboom2/CMakeLists.txt
+@@ -150,7 +150,7 @@ check_symbol_exists(SDL_JoystickGetAxis "SDL.h" HAVE_SDL_JOYSTICKGETAXIS)
+ set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES_PREV})
+ set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES_PREV})
+
+-set(DOOMWADDIR "${CMAKE_INSTALL_PREFIX}/share/games/doom" CACHE PATH "Path to install prboom.wad and look for other WAD files")
++set(DOOMWADDIR "${CMAKE_INSTALL_PREFIX}/share/games/doom" CACHE PATH "Path to look for WAD files")
+
+ option(SIMPLECHECKS "Enable checks which only impose significant overhead if a posible error is detected" ON)
+ option(ZONEIDCHECK "Enable id checks on zone blocks, to detect corrupted and illegally freed blocks" ON)
+diff --git a/prboom2/data/CMakeLists.txt b/prboom2/data/CMakeLists.txt
+index b855e9e5..33e1d873 100644
+--- a/prboom2/data/CMakeLists.txt
++++ b/prboom2/data/CMakeLists.txt
+@@ -362,3 +362,5 @@ add_custom_command(
+ DEPENDS rdatawad ${WAD_SRC}
+ )
+ add_custom_target(prboomwad DEPENDS ${WAD_DATA_PATH})
++set(WAD_INSTALL_PATH ${DOOMWADDIR} CACHE PATH "Path to install prboom.wad")
++install(FILES ${WAD_DATA_PATH} DESTINATION ${WAD_INSTALL_PATH} COMPONENT "PrBoom-Plus internal WAD")
+diff --git a/prboom2/src/CMakeLists.txt b/prboom2/src/CMakeLists.txt
+index b5a0f6bd..89505603 100644
+--- a/prboom2/src/CMakeLists.txt
++++ b/prboom2/src/CMakeLists.txt
+@@ -340,6 +340,8 @@ function(AddGameExecutable TARGET SOURCES)
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different ${WAD_DATA_PATH} $<TARGET_FILE_DIR:prboom-plus>
+ )
+ endif()
++
++ install(TARGETS ${TARGET} COMPONENT "Game executable")
+ endfunction()
+
+ AddGameExecutable(prboom-plus "${PRBOOM_PLUS_SOURCES}")
+@@ -426,6 +428,7 @@ if(BUILD_SERVER AND SDL2_NET_FOUND)
+ RUNTIME_OUTPUT_DIRECTORY ${PRBOOM_OUTPUT_PATH}
+ )
+ ApplySDL2NetOptions(prboom-plus-game-server)
++ install(TARGETS prboom-plus-game-server COMPONENT "Game server executable")
+ endif()
+
+
+--
+2.26.2
+
diff --git a/games-fps/prboom-plus/metadata.xml b/games-fps/prboom-plus/metadata.xml
index 555818481506..aa68b85edb34 100644
--- a/games-fps/prboom-plus/metadata.xml
+++ b/games-fps/prboom-plus/metadata.xml
@@ -31,9 +31,10 @@
<flag name="portmidi">Enable support for MIDI via <pkg>media-libs/portmidi</pkg></flag>
<flag name="sdl2-image">Enable support for high-resolution texture support via <pkg>media-libs/sdl2-image</pkg></flag>
<flag name="sdl2-mixer">Enable support for MIDI via <pkg>media-libs/sdl2-mixer</pkg></flag>
+ <flag name="server">Build PrBoom-Plus server</flag>
</use>
<upstream>
<bugs-to>https://bugs.debian.org/prboom-plus</bugs-to>
- <doc lang="en">https://prboom-plus.sourceforge.net</doc>
+ <doc lang="en">https://github.com/coelckers/prboom-plus</doc>
</upstream>
</pkgmetadata>
diff --git a/games-fps/prboom-plus/prboom-plus-2.5.1.5.4540.1.ebuild b/games-fps/prboom-plus/prboom-plus-2.5.1.5.4540.1.ebuild
deleted file mode 100644
index 8ac28f7f6e9f..000000000000
--- a/games-fps/prboom-plus/prboom-plus-2.5.1.5.4540.1.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 2019-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit autotools desktop xdg
-
-MY_PV=$(ver_rs 4 "+svn" 5 "+dfsg")
-MY_P=${PN}-${MY_PV}
-DESCRIPTION="An enhanced clone of the classic first-person shooter Doom"
-HOMEPAGE="http://prboom-plus.sourceforge.net"
-SRC_URI="http://deb.debian.org/debian/pool/main/p/prboom-plus/${PN}_${MY_PV}.orig.tar.xz -> ${P}.tar.xz"
-
-LICENSE="GPL-2+ BSD BSD-with-disclosure LGPL-2.1+ MIT public-domain"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="dumb fluidsynth mad net +opengl +pcre portmidi sdl2-image +sdl2-mixer vorbis"
-REQUIRED_USE="sdl2-image? ( opengl )"
-
-DEPEND="
- media-libs/libsdl2[opengl?,joystick,sound,video]
- dumb? ( media-libs/dumb:= )
- fluidsynth? ( media-sound/fluidsynth:= )
- mad? ( media-libs/libmad )
- net? ( media-libs/sdl2-net )
- pcre? ( dev-libs/libpcre:3 )
- portmidi? ( media-libs/portmidi )
- sdl2-image? ( media-libs/sdl2-image )
- sdl2-mixer? ( media-libs/sdl2-mixer[midi] )
- vorbis? ( media-libs/libvorbis )"
-RDEPEND="${DEPEND}"
-
-S=${WORKDIR}/${MY_P}
-PATCHES=(
- "${FILESDIR}/${PN}-2.5.1.4-Remove-nonstandard-gamesdir-variable.patch"
-)
-
-src_prepare() {
- xdg_src_prepare
- eautoreconf
-}
-
-src_configure() {
- econf \
- --disable-cpu-opt \
- --disable-nonfree-graphics \
- $(use_enable opengl gl) \
- $(use_with dumb) \
- $(use_with fluidsynth) \
- $(use_with mad) \
- $(use_with net) \
- $(use_with pcre) \
- $(use_with portmidi) \
- $(use_with sdl2-image image) \
- $(use_with sdl2-mixer mixer) \
- $(use_with vorbis vorbisfile) \
- --with-waddir="${EPREFIX}/usr/share/doom"
-}
-
-src_install() {
- default
- doicon ICONS/${PN}.svg
- domenu ICONS/${PN}.desktop
-}
diff --git a/games-fps/prboom-plus/prboom-plus-2.5.1.7.82.ebuild b/games-fps/prboom-plus/prboom-plus-2.5.1.7.82.ebuild
new file mode 100644
index 000000000000..ec37137ed260
--- /dev/null
+++ b/games-fps/prboom-plus/prboom-plus-2.5.1.7.82.ebuild
@@ -0,0 +1,64 @@
+# Copyright 2019-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake desktop xdg
+
+MY_PV=$(ver_rs 4 "um+git")
+DESCRIPTION="An enhanced clone of the classic first-person shooter Doom"
+HOMEPAGE="https://github.com/coelckers/prboom-plus/"
+SRC_URI="http://deb.debian.org/debian/pool/main/p/prboom-plus/${PN}_${MY_PV}.orig.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+ GPL-3+ BSD BSD-2 BSD-with-disclosure CC-BY-3.0 CC0-1.0 LGPL-2.1+ MIT public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dumb fluidsynth mad net +opengl +pcre portmidi sdl2-image +sdl2-mixer server vorbis zlib"
+REQUIRED_USE="server? ( net )"
+
+DEPEND="
+ media-libs/libsdl2[opengl?,joystick,sound,video]
+ dumb? ( media-libs/dumb:= )
+ fluidsynth? ( media-sound/fluidsynth:= )
+ mad? ( media-libs/libmad )
+ net? ( media-libs/sdl2-net )
+ pcre? ( dev-libs/libpcre:3 )
+ portmidi? ( media-libs/portmidi )
+ sdl2-image? ( media-libs/sdl2-image )
+ sdl2-mixer? ( media-libs/sdl2-mixer[midi] )
+ vorbis? ( media-libs/libvorbis )
+ zlib? ( sys-libs/zlib )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}-master/prboom2"
+
+src_prepare() {
+ eapply -p2 "${FILESDIR}"/prboom-plus-2.5.1.7.82-Add-CMake-install-targets.patch
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_GL="$(usex opengl)"
+ -DWITH_IMAGE="$(usex sdl2-image)"
+ -DWITH_MIXER="$(usex sdl2-mixer)"
+ -DWITH_NET="$(usex net)"
+ -DWITH_PCRE="$(usex pcre)"
+ -DWITH_ZLIB="$(usex zlib)"
+ -DWITH_MAD="$(usex mad)"
+ -DWITH_FLUIDSYNTH="$(usex fluidsynth)"
+ -DWITH_DUMB="$(usex dumb)"
+ -DWITH_VORBISFILE="$(usex vorbis)"
+ -DWITH_PORTMIDI="$(usex portmidi)"
+ -DDOOMWADDIR="${EPREFIX}/usr/share/doom"
+ -DWAD_INSTALL_PATH="${EPREFIX}/usr/share/doom"
+ -DBUILD_SERVER="$(usex server)"
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ doicon -s scalable ICONS/${PN}.svg
+ domenu ICONS/${PN}.desktop
+ cmake_src_install
+}