commit:     5c8db59126374340ed571149ec8680ccad1378e6
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  4 09:25:15 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr  4 09:51:52 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c8db591

games-util/glbsp: port to EAPI 7, eutils--

Signed-off-by: Sam James <sam <AT> gentoo.org>

 games-util/glbsp/files/glbsp-2.24-ldflags.patch |  8 ++++----
 games-util/glbsp/glbsp-2.24.ebuild              | 19 ++++++++++++-------
 2 files changed, 16 insertions(+), 11 deletions(-)

diff --git a/games-util/glbsp/files/glbsp-2.24-ldflags.patch 
b/games-util/glbsp/files/glbsp-2.24-ldflags.patch
index e6adb0ff035..56c9a4abcd8 100644
--- a/games-util/glbsp/files/glbsp-2.24-ldflags.patch
+++ b/games-util/glbsp/files/glbsp-2.24-ldflags.patch
@@ -1,5 +1,5 @@
---- Makefile.unx.old   2010-11-25 11:24:48.000000000 +0100
-+++ Makefile.unx       2010-11-25 11:25:10.000000000 +0100
+--- a/Makefile.unx
++++ b/Makefile.unx
 @@ -79,8 +79,7 @@
        $(CC) $(CMD_FLAGS) -c $^ -o $@
  
@@ -10,8 +10,8 @@
  
  install: $(CMD_NAME)
        cp $(CMD_NAME) $(INSTALL_PREFIX)/bin/
---- Makefile.unx.old   2010-11-25 11:31:27.000000000 +0100
-+++ Makefile.unx       2010-11-25 11:31:31.000000000 +0100
+--- a/Makefile.unx
++++ b/Makefile.unx
 @@ -125,7 +125,6 @@
  
  $(GUI_NAME): $(LIB_NAME) $(GUI_OBJS)

diff --git a/games-util/glbsp/glbsp-2.24.ebuild 
b/games-util/glbsp/glbsp-2.24.ebuild
index e6c982167ae..79ed87ae128 100644
--- a/games-util/glbsp/glbsp-2.24.ebuild
+++ b/games-util/glbsp/glbsp-2.24.ebuild
@@ -1,13 +1,15 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-inherit eutils toolchain-funcs versionator
+EAPI=7
 
-MY_PV=$(delete_version_separator 1)
+inherit desktop toolchain-funcs
+
+MY_PV=$(ver_rs 1 '')
 DESCRIPTION="A node builder specially designed for OpenGL ports of the DOOM 
game engine"
 HOMEPAGE="http://glbsp.sourceforge.net/";
 SRC_URI="mirror://sourceforge/glbsp/${PN}_src_${MY_PV}.tar.gz"
+S="${WORKDIR}"/${P}-source
 
 LICENSE="GPL-2"
 SLOT="0"
@@ -15,12 +17,15 @@ KEYWORDS="~amd64 ~x86"
 IUSE="fltk"
 
 DEPEND="fltk? ( x11-libs/fltk:1 )"
-RDEPEND=${DEPEND}
+RDEPEND="${DEPEND}"
 
-S=${WORKDIR}/${P}-source
+PATCHES=(
+       "${FILESDIR}"/${P}-ldflags.patch
+)
 
 src_prepare() {
-       epatch "${FILESDIR}"/${P}-ldflags.patch
+       default
+
        sed -i \
                -e "/^CC=/s:=.*:=$(tc-getCC):" \
                -e "/^CXX=/s:=.*:=$(tc-getCXX):" \

Reply via email to