Skip to content

Commit

Permalink
lang/lua54: Impelled to share/man
Browse files Browse the repository at this point in the history
Approved by:    portmgr (blanket)
  • Loading branch information
5u623l20 committed Jan 23, 2024
1 parent 11431fb commit 577e953
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions lang/lua54/Makefile
@@ -1,5 +1,6 @@
PORTNAME= lua
DISTVERSION= 5.4.6
PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= https://www.lua.org/ftp/
PKGNAMESUFFIX= ${LUA_VER_STR}
Expand Down Expand Up @@ -123,6 +124,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 ; \
Expand All @@ -135,10 +138,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

Expand Down
4 changes: 2 additions & 2 deletions lang/lua54/pkg-plist
Expand Up @@ -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%%

0 comments on commit 577e953

Please sign in to comment.