git: e47bdd757099 - main - www/luakit-devel: Sanitize MANPREFIX

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Mon, 22 Jan 2024 13:52:13 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e47bdd757099614530c27bff9cba1b3e0d0bc8d3

commit e47bdd757099614530c27bff9cba1b3e0d0bc8d3
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-22 12:34:39 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-22 13:51:59 +0000

    www/luakit-devel: Sanitize MANPREFIX
    
    Approved by:    portmgr (blanket)
---
 www/luakit-devel/Makefile  | 5 +++--
 www/luakit-devel/pkg-plist | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/www/luakit-devel/Makefile b/www/luakit-devel/Makefile
index 5eb0029ff2c8..f792f7e4cd4f 100644
--- a/www/luakit-devel/Makefile
+++ b/www/luakit-devel/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	luakit
 DISTVERSION=	2.3.3-0
 DISTVERSIONSUFFIX=	-g68e4ffc
-PORTREVISION=	2
+PORTREVISION=	3
 PORTEPOCH=	2
 CATEGORIES=	www
 PKGNAMESUFFIX=	-devel
@@ -30,6 +30,7 @@ GH_ACCOUNT=	luakit
 GH_PROJECT=	luakit
 USE_GNOME=	cairo gdkpixbuf2 glib20 gtk30
 
+MAKE_ARGS=	MANPREFIX=${PREFIX}/share/man
 CONFLICTS_INSTALL=	luakit
 
 PORTDATA=	*
@@ -44,7 +45,7 @@ LUAJIT_MAKE_ARGS_OFF=	USE_LUAJIT=0
 post-extract:
 	@${REINPLACE_CMD} -e \
 		's|share/man|man| ; s|luakit/doc|doc/luakit| ; \
-		s|/etc/xdg|${PREFIX}/etc/xdg| ; /MANPREFIX */s|?=|=| ; \
+		s|/etc/xdg|${PREFIX}/etc/xdg| ; \
 		s|gnu99|gnu11| ; s|-ggdb||' \
 		${WRKSRC}/config.mk
 	@${REINPLACE_CMD} -e 's|bin/env lua|&${LUA_VER_STR}|' \
diff --git a/www/luakit-devel/pkg-plist b/www/luakit-devel/pkg-plist
index efc8dc544588..e0d4ec782bb1 100644
--- a/www/luakit-devel/pkg-plist
+++ b/www/luakit-devel/pkg-plist
@@ -2,7 +2,7 @@ bin/luakit
 etc/xdg/luakit/rc.lua
 etc/xdg/luakit/theme.lua
 lib/luakit/luakit.so
-man/man1/luakit.1.gz
+share/man/man1/luakit.1.gz
 share/applications/luakit.desktop
 share/pixmaps/luakit.png
 share/pixmaps/luakit.svg