git: 25f5c52bb667 - main - www/luakit: Sanitize MANPREFIX

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

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

commit 25f5c52bb6671a87b7b00244e096fec1f3b2dd9f
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-22 12:43:01 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-22 13:52:00 +0000

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

diff --git a/www/luakit/Makefile b/www/luakit/Makefile
index 543dea6d7344..c7c24c96700f 100644
--- a/www/luakit/Makefile
+++ b/www/luakit/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	luakit
 DISTVERSION=	2.3.3
-PORTREVISION=	1
+PORTREVISION=	2
 PORTEPOCH=	1
 CATEGORIES=	www
 
@@ -25,6 +25,8 @@ USES=		compiler:c++11-lang desktop-file-utils gettext-runtime gmake \
 USE_GITHUB=	yes
 USE_GNOME=	cairo gdkpixbuf2 glib20 gtk30
 
+MAKE_ARGS=     MANPREFIX=${PREFIX}/share/man
+
 OPTIONS_DEFINE=	DOCS LUAJIT
 LUAJIT_DESC=	Use the Just-In-Time compiler for lua
 LUAJIT_LIB_DEPENDS=	libluajit-5.1.so:lang/luajit
@@ -36,7 +38,7 @@ CONFLICTS_INSTALL=	luakit-devel
 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/pkg-plist b/www/luakit/pkg-plist
index 9e60ab284806..5d129da5ee91 100644
--- a/www/luakit/pkg-plist
+++ b/www/luakit/pkg-plist
@@ -230,6 +230,6 @@ share/applications/luakit.desktop
 %%DATADIR%%/resources/icons/tab-icon-private@2x.png
 %%DATADIR%%/resources/icons/tab-icon-security-error.png
 %%DATADIR%%/resources/icons/tab-icon-security-error@2x.png
-man/man1/luakit.1.gz
+share/man/man1/luakit.1.gz
 share/pixmaps/luakit.png
 share/pixmaps/luakit.svg