1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

lang/lua51: Impelled to share/man

Approved by:    portmgr (blanket)
This commit is contained in:
Muhammad Moinur Rahman 2024-01-23 15:16:50 +01:00
parent 0169c1a80e
commit c9227759d7
2 changed files with 9 additions and 7 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= lua
PORTVERSION= 5.1.5
PORTREVISION= 9
PORTREVISION= 10
CATEGORIES= lang
MASTER_SITES= http://www.lua.org/ftp/
PKGNAMESUFFIX= 51
@ -62,13 +62,15 @@ post-patch:
s|^(INSTALL_LMOD=).*|\1 ${LUA_MODSHAREDIR}| ; \
s|llua|llua-${LUA_VER}|' \
${WRKSRC}/etc/lua.pc
@${REINPLACE_CMD} -e "s|man/man|share/man/man|g" \
${WRKSRC}/Makefile
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liblua-${LUA_VER}.so
@${MV} ${STAGEDIR}${PREFIX}/man/man1/lua.1 \
${STAGEDIR}${PREFIX}/man/man1/lua51.1
@${MV} ${STAGEDIR}${PREFIX}/man/man1/luac.1 \
${STAGEDIR}${PREFIX}/man/man1/luac51.1
@${MV} ${STAGEDIR}${PREFIX}/share/man/man1/lua.1 \
${STAGEDIR}${PREFIX}/share/man/man1/lua51.1
@${MV} ${STAGEDIR}${PREFIX}/share/man/man1/luac.1 \
${STAGEDIR}${PREFIX}/share/man/man1/luac51.1
${INSTALL_DATA} ${WRKSRC}/etc/lua.pc \
${STAGEDIR}${PREFIX}/libdata/pkgconfig/lua-${LUA_VER}.pc

View File

@ -8,7 +8,7 @@ include/lua51/lualib.h
lib/liblua-5.1.a
lib/liblua-5.1.so
libdata/pkgconfig/lua-5.1.pc
man/man1/lua51.1.gz
man/man1/luac51.1.gz
share/man/man1/lua51.1.gz
share/man/man1/luac51.1.gz
@dir lib/lua/5.1
@dir %%DATADIR%%/5.1