git: 0169c1a80e49 - main - lang/lua53: Impelled to share/man

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Tue, 23 Jan 2024 14:51:40 UTC
The branch main has been updated by bofh:

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

commit 0169c1a80e4950c8e62d17036f197ea04c25b24b
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-23 14:15:17 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-23 14:51:23 +0000

    lang/lua53: Impelled to share/man
    
    Approved by:    portmgr (blanket)
---
 lang/lua53/Makefile  | 11 +++++++----
 lang/lua53/pkg-plist |  4 ++--
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/lang/lua53/Makefile b/lang/lua53/Makefile
index 3de1961bbc30..68ef4eb54e84 100644
--- a/lang/lua53/Makefile
+++ b/lang/lua53/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	lua
 DISTVERSION=	5.3.6
+PORTREVISION=	1
 CATEGORIES=	lang
 MASTER_SITES=	https://www.lua.org/ftp/
 PKGNAMESUFFIX=	${LUA_VER_STR}
@@ -121,6 +122,8 @@ READLINE_LIBS=		-lreadline
 post-patch:
 	@${REINPLACE_CMD} -e "/LUA_ROOT/s,/usr/local,${LUA_PREFIX}," \
 		${WRKSRC}/src/luaconf.h
+	@${REINPLACE_CMD} -e "s|man/man|share/man/man|g" \
+		${WRKSRC}/Makefile
 
 post-patch-LIBEDIT-on:
 	@${REINPLACE_CMD} -e "s,readline/,editline/,g ; \
@@ -133,10 +136,10 @@ post-patch-LIBEDIT_DL-on:
 
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${LUA_LIB_SHARED}
-	${MV} ${STAGEDIR}${PREFIX}/man/man1/lua.1 \
-		${STAGEDIR}${PREFIX}/man/man1/${LUA_CMD}.1
-	${MV} ${STAGEDIR}${PREFIX}/man/man1/luac.1 \
-		${STAGEDIR}${PREFIX}/man/man1/${LUAC_CMD}.1
+	${MV} ${STAGEDIR}${PREFIX}/share/man/man1/lua.1 \
+		${STAGEDIR}${PREFIX}/share/man/man1/${LUA_CMD}.1
+	${MV} ${STAGEDIR}${PREFIX}/share/man/man1/luac.1 \
+		${STAGEDIR}${PREFIX}/share/man/man1/${LUAC_CMD}.1
 	${INSTALL_DATA} ${WRKDIR}/${LUA_PC_FILE} \
 		${STAGEDIR}${PREFIX}/libdata/pkgconfig
 
diff --git a/lang/lua53/pkg-plist b/lang/lua53/pkg-plist
index caf138a55de4..8c560b09a74f 100644
--- a/lang/lua53/pkg-plist
+++ b/lang/lua53/pkg-plist
@@ -8,7 +8,7 @@ bin/luac%%LUA_VER_STR%%
 lib/liblua-%%LUA_VER%%.a
 lib/liblua-%%LUA_VER%%.so
 libdata/pkgconfig/lua-%%LUA_VER%%.pc
-man/man1/lua%%LUA_VER_STR%%.1.gz
-man/man1/luac%%LUA_VER_STR%%.1.gz
+share/man/man1/lua%%LUA_VER_STR%%.1.gz
+share/man/man1/luac%%LUA_VER_STR%%.1.gz
 @dir %%LUA_MODLIBDIR%%
 @dir %%LUA_MODSHAREDIR%%