diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2019-10-07 15:39:52 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2019-10-07 15:39:52 +0000 |
commit | c2a2efec2e9cb84fb84f358a4ff68f0fa643b3e8 (patch) | |
tree | e55d9d3e7bfcf6098f52d8f4bfef9246cf2fcb80 | |
parent | libvterm: Update to 0.1.1 and change upstream source (diff) |
Add devel/luv: libuv bindings for Lua
libuv bindings for luajit and lua 5.1/ 5.2/ 5.3.
This library makes libuv available to lua scripts.
It was made for the luvit project but should usable
from nearly any lua project.
WWW: https://github.com/luvit/luv
PR: 240699
Submitted by: checo1705 secmailpro
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/luv/Makefile | 59 | ||||
-rw-r--r-- | devel/luv/distinfo | 5 | ||||
-rw-r--r-- | devel/luv/pkg-descr | 5 |
4 files changed, 70 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index b2df1e95079e..5552c81d79a2 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1523,6 +1523,7 @@ SUBDIR += luafilesystem-51 SUBDIR += luajava SUBDIR += lutok + SUBDIR += luv SUBDIR += lwp SUBDIR += lxqt-build-tools SUBDIR += m17n-db diff --git a/devel/luv/Makefile b/devel/luv/Makefile new file mode 100644 index 000000000000..1e8b41ccbc9a --- /dev/null +++ b/devel/luv/Makefile @@ -0,0 +1,59 @@ +# $FreeBSD$ + +PORTNAME= luv +DISTVERSION= 1.30.1-1 +CATEGORIES= devel + +MAINTAINER= checo1705@secmail.pro +COMMENT= libuv bindings for lua + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +LIB_DEPENDS= libuv.so:devel/libuv + +USES= cmake +USE_LDCONFIG= yes +USE_GITHUB= yes +GH_ACCOUNT= luvit keplerproject:compat +GH_PROJECT= luv lua-compat-5.3:compat +GH_TAGNAME= bc91f40:compat +GH_SUBDIR= deps/lua-compat-5.3:compat + +OPTIONS_DEFINE= DOCS EXAMPLES LUAJIT +OPTIONS_DEFAULT_i386= LUAJIT +OPTIONS_DEFAULT_amd64= LUAJIT + +LUAJIT_DESC= Use LuaJIT (instead of just Lua) +LUAJIT_LIB_DEPENDS= libluajit-5.1.so:lang/luajit +LUAJIT_CMAKE_ON= -DWITH_LUA_ENGINE=LuaJIT +LUAJIT_USES_OFF= lua +LUAJIT_CMAKE_OFF= -DWITH_LUA_ENGINE=Lua + +CMAKE_ON= BUILD_SHARED_LIBS WITH_SHARED_LIBUV +CMAKE_OFF= BUILD_MODULE +CMAKE_ARGS= -DLUA_BUILD_TYPE=System \ + -DLUA_COMPAT53_DIR=deps/lua-compat-5.3 + +PLIST_FILES= lib/libluv.so \ + lib/libluv.so.1 \ + lib/libluv.so.1.30.1 \ + libdata/pkgconfig/libluv.pc \ + include/luv/util.h \ + include/luv/luv.h \ + include/luv/lreq.h \ + include/luv/lhandle.h + +PORTDOCS= docs.md + +PORTEXAMPLES= * + +post-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/docs.md ${STAGEDIR}${DOCSDIR} + +post-install-EXAMPLES-on: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} + +.include <bsd.port.mk> diff --git a/devel/luv/distinfo b/devel/luv/distinfo new file mode 100644 index 000000000000..3b2ebe3c3edb --- /dev/null +++ b/devel/luv/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1568942643 +SHA256 (luvit-luv-1.30.1-1_GH0.tar.gz) = 2b17921e2e18094df6221e3cd291c82d4569e50d8c081518d3e775dceae267cf +SIZE (luvit-luv-1.30.1-1_GH0.tar.gz) = 88948 +SHA256 (keplerproject-lua-compat-5.3-bc91f40_GH0.tar.gz) = 30d559fadf00983f90aa52011c934def8f7540ffaa3973d9237f154ceea8413e +SIZE (keplerproject-lua-compat-5.3-bc91f40_GH0.tar.gz) = 51289 diff --git a/devel/luv/pkg-descr b/devel/luv/pkg-descr new file mode 100644 index 000000000000..b93ab0ecc20d --- /dev/null +++ b/devel/luv/pkg-descr @@ -0,0 +1,5 @@ +libuv bindings for luajit and lua 5.1/ 5.2/ 5.3. +This library makes libuv available to lua scripts. +It was made for the luvit project but should usable +from nearly any lua project. +WWW: https://github.com/luvit/luv |