commit:     464c6025f0303dfa6e7bd4fc4583f8d3f59b544e
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Wed May  1 21:39:20 2024 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Wed May  1 21:39:47 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=464c6025

games-fps/gzdoom: Move S, die for gitinfo.h

Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 games-fps/gzdoom/gzdoom-4.12.2.ebuild | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/games-fps/gzdoom/gzdoom-4.12.2.ebuild 
b/games-fps/gzdoom/gzdoom-4.12.2.ebuild
index dcb9477e00de..b308fb3d0b50 100644
--- a/games-fps/gzdoom/gzdoom-4.12.2.ebuild
+++ b/games-fps/gzdoom/gzdoom-4.12.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -8,6 +8,7 @@ inherit cmake desktop xdg flag-o-matic
 DESCRIPTION="A modder-friendly OpenGL source port based on the DOOM engine"
 HOMEPAGE="https://zdoom.org";
 SRC_URI="https://github.com/coelckers/${PN}/archive/g${PV}.tar.gz -> 
${P}.tar.gz"
+S="${WORKDIR}/${PN}-g${PV}"
 
 LICENSE="Apache-2.0 BSD BZIP2 GPL-3 LGPL-2.1+ LGPL-3 MIT
        non-free? ( Activision ChexQuest3 DOOM-COLLECTORS-EDITION freedist 
WidePix )"
@@ -27,8 +28,6 @@ DEPEND="
        gtk? ( x11-libs/gtk+:3 )"
 RDEPEND="${DEPEND}"
 
-S="${WORKDIR}/${PN}-g${PV}"
-
 PATCHES=(
        "${FILESDIR}"/${PN}-4.7.1-Introduce-the-BUILD_NONFREE-option.patch
 )
@@ -48,7 +47,7 @@ src_prepare() {
                echo "#define GIT_DESCRIPTION \"g${PV}\""
                echo "#define GIT_HASH \"0\""
                echo "#define GIT_TIME \"\""
-       } > "${S}/src/gitinfo.h"
+       } > "${S}/src/gitinfo.h" || die
 
        cmake_src_prepare
 }

Reply via email to