aboutsummaryrefslogtreecommitdiff
path: root/www/lua-resty-lrucache/Makefile
blob: 77f27362a1141d97b797886b6f5cc2c81f62f381 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
PORTNAME=	lua-resty-lrucache
DISTVERSIONPREFIX=	v
DISTVERSION=	0.13
CATEGORIES=	www

MAINTAINER=	dmitry.wagin@ya.ru
COMMENT=	Lua-land LRU cache based on the LuaJIT FFI
WWW=		https://github.com/openresty/lua-resty-lrucache

LICENSE=	BSD2CLAUSE

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_FILES+=	${LUA_MODSHAREDIR}/resty/lrucache.lua \
		${LUA_MODSHAREDIR}/resty/lrucache/pureffi.lua

do-install:
	@${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR}
	@(cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${LUA_MODSHAREDIR} "-name *\.lua")

.include <bsd.port.mk>