1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00

Support stage and port to lua 5.2

This commit is contained in:
Baptiste Daroussin 2014-01-10 17:10:40 +00:00
parent 85e19b2207
commit 57321b9cf0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=339372
2 changed files with 15 additions and 13 deletions

View File

@ -1,29 +1,31 @@
# $FreeBSD$
PORTNAME= lua-sysctl
PORTNAME= sysctl
PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= devel
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
MAINTAINER= lua@FreeBSD.org
COMMENT= A small sysctl(3) interface for lua
COMMENT= Small sysctl(3) interface for lua
USE_GITHUB= yes
USES= pkgconfig
USE_LUA= yes
USES= pkgconfig lua
PLIST_FILES= %%LUA_MODSHAREDIR%%/sysctl.lua \
%%LUA_MODLIBDIR%%/sysctl/core.so
PLIST_DIRS= %%LUA_MODLIBDIR%%/sysctl
GH_ACCOUNT= kAworu
GH_PROJECT= ${PORTNAME}
GH_PROJECT= lua-${PORTNAME}
GH_COMMIT= 345dc69
NO_STAGE= yes
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e "s/5.1/${LUA_VER}/g" ${WRKSRC}/Makefile
do-install:
${MKDIR} ${LUA_MODLIBDIR}/sysctl
${INSTALL_SCRIPT} ${WRKSRC}/sysctl.lua ${LUA_MODSHAREDIR}/sysctl.lua
${INSTALL_SCRIPT} ${WRKSRC}/build/core.so ${LUA_MODLIBDIR}/sysctl/core.so
@${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}/sysctl \
${STAGEDIR}${LUA_MODSHAREDIR}
${INSTALL_SCRIPT} ${WRKSRC}/sysctl.lua ${STAGEDIR}${LUA_MODSHAREDIR}/sysctl.lua
${INSTALL_SCRIPT} ${WRKSRC}/build/core.so ${STAGEDIR}${LUA_MODLIBDIR}/sysctl/core.so
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (lua-sysctl-1.0.tar.gz) = 00fce554dc5a59160d16defb01f3316a9528172e0ac676e3d01e5d9e5eddbcaf
SIZE (lua-sysctl-1.0.tar.gz) = 7751
SHA256 (sysctl-1.0.tar.gz) = 00fce554dc5a59160d16defb01f3316a9528172e0ac676e3d01e5d9e5eddbcaf
SIZE (sysctl-1.0.tar.gz) = 7751