From 1d00638388a822ce3c314ea3bfd0e65b98d8e73f Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Wed, 29 Jan 2020 07:08:01 +0000 Subject: [PATCH] 1) Assume maintainership of the port after r524492 2) Vocalize `pre-build' target to make debugging easier and move it after the patching stage; simplify the wording in the corresponding comment 3) Fix the sed(1) expression: properly escape the dot, remove needless global modifier, and wrap the overly long line while here Requested by: linimon, pkubaj (1) --- games/battletanks/Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/games/battletanks/Makefile b/games/battletanks/Makefile index ea474748d28f..bf8c48e49cbe 100644 --- a/games/battletanks/Makefile +++ b/games/battletanks/Makefile @@ -7,7 +7,7 @@ PORTREVISION= 9 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-source/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= danfe@FreeBSD.org COMMENT= Fast 2D tank arcade game with multiplayer and split-screen modes LICENSE= GPLv2+ @@ -34,13 +34,14 @@ DESKTOP_ENTRIES="Battle Tanks" "" "" "${PORTNAME}" "Game;ArcadeGame;" "" OPTIONS_DEFINE= DOCS -pre-build: -# Regenerate `sl08.h' after we patch `sl08.py' (as patching the header itself -# would have resulted in a larger diff and gratuitous difference with Debian) - @cd ${WRKSRC} && ${PYTHON_CMD} engine/sl08/sl08.py > engine/sl08/sl08.h - post-patch: - @${REINPLACE_CMD} -e "s/lua5.1/lua-${LUA_VER}/g" ${WRKSRC}/engine/SConscript + @${REINPLACE_CMD} -e 's/lua5\.1/lua-${LUA_VER}/' \ + ${WRKSRC}/engine/SConscript + +pre-build: +# Regenerate `sl08.h' after we patch `sl08.py' (patching the header itself +# would've resulted in a larger diff and gratuitous difference with Debian) + cd ${WRKSRC} && ${PYTHON_CMD} engine/sl08/sl08.py > engine/sl08/sl08.h post-install: ${INSTALL_MAN} ${FILESDIR}/${PORTNAME}.6 \