Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jul 2020 09:13:54 +0000 (UTC)
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r541180 - head/databases/lua-resty-redis
Message-ID:  <202007040913.0649DsQC032666@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lwhsu
Date: Sat Jul  4 09:13:54 2020
New Revision: 541180
URL: https://svnweb.freebsd.org/changeset/ports/541180

Log:
  databases/lua-resty-redis: change dependency to luajit-openresty
  
  It does not use the lua interpreter directly.
  
  PR:		240611
  Submitted by:	mm
  Approved by:	Volodymyr Kostyrko <arcade@b1t.name> (maintainer)

Modified:
  head/databases/lua-resty-redis/Makefile

Modified: head/databases/lua-resty-redis/Makefile
==============================================================================
--- head/databases/lua-resty-redis/Makefile	Sat Jul  4 09:00:50 2020	(r541179)
+++ head/databases/lua-resty-redis/Makefile	Sat Jul  4 09:13:54 2020	(r541180)
@@ -3,6 +3,7 @@
 PORTNAME=	lua-resty-redis
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.27
+PORTREVISION=	1
 CATEGORIES=	databases
 
 MAINTAINER=	arcade@b1t.name
@@ -10,8 +11,20 @@ COMMENT=	Redis client driver for the ngx_lua nginx mod
 
 LICENSE=	BSD2CLAUSE
 
-USES=		lua:51
+RUN_DEPENDS=	luajit-openresty>=2.1:lang/luajit-openresty
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	openresty
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+LUA_MODSHAREDIR=	${LOCALBASE}/share/lua/5.1
+
+PLIST_SUB=	LUA_MODSHAREDIR=${LUA_MODSHAREDIR}
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR}
+	@(cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${LUA_MODSHAREDIR} "-name *\.lua")
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007040913.0649DsQC032666>