Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 2019 15:39:53 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r513964 - in head/devel: . luv
Message-ID:  <201910071539.x97FdrYw013563@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adamw
Date: Mon Oct  7 15:39:52 2019
New Revision: 513964
URL: https://svnweb.freebsd.org/changeset/ports/513964

Log:
  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

Added:
  head/devel/luv/
  head/devel/luv/Makefile   (contents, props changed)
  head/devel/luv/distinfo   (contents, props changed)
  head/devel/luv/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Mon Oct  7 15:32:47 2019	(r513963)
+++ head/devel/Makefile	Mon Oct  7 15:39:52 2019	(r513964)
@@ -1523,6 +1523,7 @@
     SUBDIR += luafilesystem-51
     SUBDIR += luajava
     SUBDIR += lutok
+    SUBDIR += luv
     SUBDIR += lwp
     SUBDIR += lxqt-build-tools
     SUBDIR += m17n-db

Added: head/devel/luv/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/luv/Makefile	Mon Oct  7 15:39:52 2019	(r513964)
@@ -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>

Added: head/devel/luv/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/luv/distinfo	Mon Oct  7 15:39:52 2019	(r513964)
@@ -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

Added: head/devel/luv/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/luv/pkg-descr	Mon Oct  7 15:39:52 2019	(r513964)
@@ -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



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