commit:     95e8678db7f8927393916fe2737f55a069685341
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 11 00:03:50 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Mon Aug 11 05:35:36 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95e8678d

games-util/glbsp: update EAPI 7 -> 8

Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 games-util/glbsp/glbsp-2.24-r2.ebuild | 70 +++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)

diff --git a/games-util/glbsp/glbsp-2.24-r2.ebuild 
b/games-util/glbsp/glbsp-2.24-r2.ebuild
new file mode 100644
index 000000000000..e9e5a7272bad
--- /dev/null
+++ b/games-util/glbsp/glbsp-2.24-r2.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop toolchain-funcs
+
+MY_PV=$(ver_rs 1 '')
+DESCRIPTION="Node builder specially designed for OpenGL ports of the DOOM game 
engine"
+HOMEPAGE="https://glbsp.sourceforge.net/";
+SRC_URI="https://downloads.sourceforge.net/glbsp/${PN}_src_${MY_PV}.tar.gz";
+S="${WORKDIR}"/${P}-source
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="fltk"
+
+DEPEND="fltk? ( x11-libs/fltk:1= )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-ldflags.patch
+       "${FILESDIR}"/${P}-return-type.patch
+)
+
+src_prepare() {
+       default
+
+       sed -i \
+               -e "/^CC=/s:=.*:=$(tc-getCC):" \
+               -e "/^CXX=/s:=.*:=$(tc-getCXX):" \
+               -e "/^AR=/s:ar:$(tc-getAR):" \
+               -e "/^RANLIB=/s:=.*:=$(tc-getRANLIB):" \
+               -e "s:-O2:${CFLAGS}:" \
+               -e "s:-O -g3:${CFLAGS}:" \
+               Makefile.unx \
+               nodeview/Makefile.unx || die
+}
+
+src_compile() {
+       emake -f Makefile.unx
+       if use fltk ; then
+               emake -f Makefile.unx glBSPX \
+                       FLTK_FLAGS="$(fltk-config --cflags)" \
+                       FLTK_LIBS="$(fltk-config --use-images --ldflags)"
+               emake -f Makefile.unx -C nodeview \
+                       FLTK_CFLAGS="$(fltk-config --cflags)" \
+                       FLTK_LIBS="$(fltk-config --use-images --ldflags)"
+       fi
+}
+
+src_install() {
+       dobin glbsp
+       dolib.a libglbsp.a
+       doman glbsp.1
+       dodoc AUTHORS.txt glbsp.txt
+       insinto "/usr/include"
+       doins "src/glbsp.h"
+
+       if use fltk ; then
+               newbin glBSPX glbspx
+               newicon gui/icon.xpm glbspx.xpm
+               make_desktop_entry glbspx glBSPX glbspx
+
+               dobin nodeview/nodeview
+               docinto nodeview
+               dodoc nodeview/{README,TODO}.txt
+       fi
+}

Reply via email to