From d2cbb7b0f69441a682f11e564836069f47db08c0 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Fri, 27 Mar 2020 04:25:27 +0100 Subject: games-fps/doomsday: dev-qt/qtgui[-gles2 => -gles2-only] Signed-off-by: Haelwenn (lanodan) Monnier Signed-off-by: Andreas Sturmlechner --- games-fps/doomsday/doomsday-2.1.1-r1.ebuild | 81 +++++++++++++++++++++++++++++ games-fps/doomsday/doomsday-2.1.1.ebuild | 81 ----------------------------- 2 files changed, 81 insertions(+), 81 deletions(-) create mode 100644 games-fps/doomsday/doomsday-2.1.1-r1.ebuild delete mode 100644 games-fps/doomsday/doomsday-2.1.1.ebuild diff --git a/games-fps/doomsday/doomsday-2.1.1-r1.ebuild b/games-fps/doomsday/doomsday-2.1.1-r1.ebuild new file mode 100644 index 000000000000..eb08301295ed --- /dev/null +++ b/games-fps/doomsday/doomsday-2.1.1-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit cmake python-any-r1 readme.gentoo-r1 + +DESCRIPTION="A modern gaming engine for Doom, Heretic, and Hexen" +HOMEPAGE="https://www.dengine.net" +SRC_URI="https://downloads.sourceforge.net/project/deng/Doomsday%20Engine/${PV}/${P}.tar.gz" +LICENSE="GPL-3+ LGPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="demo fmod freedoom fluidsynth openal tools" + +RDEPEND=" + dev-qt/qtcore:5= + dev-qt/qtgui:5=[-gles2-only] + dev-qt/qtnetwork:5= + dev-qt/qtopengl:5= + dev-qt/qtwidgets:5= + dev-qt/qtx11extras:5= + media-libs/assimp + net-misc/curl + sys-libs/zlib + fmod? ( media-libs/fmod:1 ) + fluidsynth? ( media-sound/fluidsynth:= ) + openal? ( media-libs/openal ) + tools? ( sys-libs/ncurses:0= ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + ${PYTHON_DEPS} + virtual/pkgconfig +" +PDEPEND=" + demo? ( games-fps/doom-data ) + freedoom? ( games-fps/freedoom ) +" + +S="${WORKDIR}/${P}/${PN}" + +DOC_CONTENTS="You need to copy Doom, Doom 2, Chex Quest, Heretic, Hexen, HexenDD, or Doom64 wads to a folder of your choice and then tell the game engine where that folder is. This is different to older versions, which had separate launchers for each game and required the files to be in a specific place." + +src_prepare() { + cmake_src_prepare + + # Fix QA warning for "installing to one or more unexpected paths" + sed -e "10s:/texc:/${PF}:" -i tools/texc/CMakeLists.txt || die +} + +src_configure() { + export QT_SELECT=qt5 + local mycmakeargs=( + -DDENG_ASSIMP_EMBEDDED="OFF" + -DDENG_ENABLE_TOOLS="$(usex tools)" + -DPYTHON_EXECUTABLE="${PYTHON}" + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + if use tools; then + mv -v "${ED}"/usr/bin/md2tool{,.${PN}} || die + fi + + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog + + if use tools; then + einfo "In order to prevent a file collision with games-fps/eduke32[tools]," + einfo "the utility md2tool has been renamed to md2tool.doomsday." + fi +} diff --git a/games-fps/doomsday/doomsday-2.1.1.ebuild b/games-fps/doomsday/doomsday-2.1.1.ebuild deleted file mode 100644 index fd675553b0fe..000000000000 --- a/games-fps/doomsday/doomsday-2.1.1.ebuild +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7} ) - -inherit cmake python-any-r1 readme.gentoo-r1 - -DESCRIPTION="A modern gaming engine for Doom, Heretic, and Hexen" -HOMEPAGE="https://www.dengine.net" -SRC_URI="https://downloads.sourceforge.net/project/deng/Doomsday%20Engine/${PV}/${P}.tar.gz" -LICENSE="GPL-3+ LGPL-3+" -SLOT="0" -KEYWORDS="~amd64 ~arm ~x86" -IUSE="demo fmod freedoom fluidsynth openal tools" - -RDEPEND=" - dev-qt/qtcore:5= - dev-qt/qtgui:5=[-gles2] - dev-qt/qtnetwork:5= - dev-qt/qtopengl:5= - dev-qt/qtwidgets:5= - dev-qt/qtx11extras:5= - media-libs/assimp - net-misc/curl - sys-libs/zlib - fmod? ( media-libs/fmod:1 ) - fluidsynth? ( media-sound/fluidsynth:= ) - openal? ( media-libs/openal ) - tools? ( sys-libs/ncurses:0= ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - ${PYTHON_DEPS} - virtual/pkgconfig -" -PDEPEND=" - demo? ( games-fps/doom-data ) - freedoom? ( games-fps/freedoom ) -" - -S="${WORKDIR}/${P}/${PN}" - -DOC_CONTENTS="You need to copy Doom, Doom 2, Chex Quest, Heretic, Hexen, HexenDD, or Doom64 wads to a folder of your choice and then tell the game engine where that folder is. This is different to older versions, which had separate launchers for each game and required the files to be in a specific place." - -src_prepare() { - cmake_src_prepare - - # Fix QA warning for "installing to one or more unexpected paths" - sed -e "10s:/texc:/${PF}:" -i tools/texc/CMakeLists.txt || die -} - -src_configure() { - export QT_SELECT=qt5 - local mycmakeargs=( - -DDENG_ASSIMP_EMBEDDED="OFF" - -DDENG_ENABLE_TOOLS="$(usex tools)" - -DPYTHON_EXECUTABLE="${PYTHON}" - ) - cmake_src_configure -} - -src_install() { - cmake_src_install - - if use tools; then - mv -v "${ED}"/usr/bin/md2tool{,.${PN}} || die - fi - - readme.gentoo_create_doc -} - -pkg_postinst() { - readme.gentoo_print_elog - - if use tools; then - einfo "In order to prevent a file collision with games-fps/eduke32[tools]," - einfo "the utility md2tool has been renamed to md2tool.doomsday." - fi -} -- cgit v1.2.3-65-gdbad