lua-luv: Import lua-luv (from wip/luv initially)

Lua module version of luv library (see wip/luv)
This commit is contained in:
Jonathan Buschmann 2020-01-01 21:50:50 +08:00
parent 9deb1193e2
commit 9e81b5f428
6 changed files with 40 additions and 0 deletions

View File

@ -2060,6 +2060,7 @@ SUBDIR+= lua-MessagePack
SUBDIR+= lua-lbn
SUBDIR+= lua-ldoc
SUBDIR+= lua-luafilesystem
SUBDIR+= lua-luv
SUBDIR+= lua-mpack
SUBDIR+= lua-penlight
SUBDIR+= luabind

2
lua-luv/DESCR Normal file
View File

@ -0,0 +1,2 @@
This library makes libuv available to lua scripts. It was made for the
luvit project but should usable from nearly any lua project.

26
lua-luv/Makefile Normal file
View File

@ -0,0 +1,26 @@
# $NetBSD$
DISTNAME= lua-luv-1.32.0
PKGNAME= ${DISTNAME:S/lua/${LUA_PKGPREFIX}/}
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=luvit/}
GITHUB_PROJECT= luv
GITHUB_TAG= ${PKGVERSION_NOREV}-0
HOMEPAGE= https://github.com/luvit/luv/
COMMENT= Bare libuv bindings for Lua
LICENSE= apache-2.0
USE_CMAKE= yes
CMAKE_ARGS+= -DWITH_SHARED_LIBUV=ON
CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON
CMAKE_ARGS+= -DBUILD_MODULE=ON
CMAKE_ARGS+= -DLUA_BUILD_TYPE=System
CMAKE_ARGS+= -DLUA_COMPAT53_DIR=${PREFIX}/${LUA_LDIR}/compat53/
CMAKE_ARGS+= -DCMAKE_C_FLAGS="-I${PREFIX}/${LUA_INCDIR} -I${PREFIX}/${LUA_LDIR}/compat53"
.include "../../wip/lua-compat53/buildlink3.mk"
.include "../../devel/libuv/buildlink3.mk"
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"

2
lua-luv/PLIST Normal file
View File

@ -0,0 +1,2 @@
@comment $NetBSD$
${LUA_CDIR}/luv.so

3
lua-luv/TODO Normal file
View File

@ -0,0 +1,3 @@
- The source code "vendors" Lua, LuaJIT and libuv as Git submodules --
should we just use them, or try to coerce this packge to use those as
dependiences?

6
lua-luv/distinfo Normal file
View File

@ -0,0 +1,6 @@
$NetBSD$
SHA1 (lua-luv-1.32.0.tar.gz) = 1dc5e61c3ad14b1a261afddf72ba6e92aa828d57
RMD160 (lua-luv-1.32.0.tar.gz) = 725f6a429dfcd697b6b3d10d431227ada8dc8558
SHA512 (lua-luv-1.32.0.tar.gz) = 7db52afc1ca79052e349be7a37deb67066ee9005f8d7f7d0dae62bd83a93b4140103ee6dddeca2e02a3fc37b3880a5c18904429886af1d441f8de0cfabf5bd8c
Size (lua-luv-1.32.0.tar.gz) = 91349 bytes