Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel devel: Add lua-luv. Based on work by Jonathan Bu...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f4300ee20144
branches: trunk
changeset: 435250:f4300ee20144
user: nia <nia%pkgsrc.org@localhost>
date: Thu Jul 02 20:48:09 2020 +0000
description:
devel: Add lua-luv. Based on work by Jonathan Buschmann in wip.
This library makes libuv available to lua scripts. It was made for the
luvit project but should usable from nearly any lua project.
diffstat:
devel/Makefile | 3 ++-
devel/lua-luv/DESCR | 2 ++
devel/lua-luv/Makefile | 24 ++++++++++++++++++++++++
devel/lua-luv/PLIST | 2 ++
devel/lua-luv/distinfo | 8 ++++++++
devel/lua-luv/patches/patch-src_luv.c | 15 +++++++++++++++
devel/lua-luv/patches/patch-src_private.h | 15 +++++++++++++++
7 files changed, 68 insertions(+), 1 deletions(-)
diffs (107 lines):
diff -r b747aa84132b -r f4300ee20144 devel/Makefile
--- a/devel/Makefile Thu Jul 02 20:43:26 2020 +0000
+++ b/devel/Makefile Thu Jul 02 20:48:09 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3154 2020/07/02 14:53:38 nia Exp $
+# $NetBSD: Makefile,v 1.3155 2020/07/02 20:48:09 nia Exp $
#
COMMENT= Development utilities
@@ -862,6 +862,7 @@
SUBDIR+= lua-lrexlib-onig
SUBDIR+= lua-lrexlib-pcre
SUBDIR+= lua-lrexlib-posix
+SUBDIR+= lua-luv
SUBDIR+= lua-mode
SUBDIR+= lua-penlight
SUBDIR+= lua-posix
diff -r b747aa84132b -r f4300ee20144 devel/lua-luv/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-luv/DESCR Thu Jul 02 20:48:09 2020 +0000
@@ -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.
diff -r b747aa84132b -r f4300ee20144 devel/lua-luv/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-luv/Makefile Thu Jul 02 20:48:09 2020 +0000
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2020/07/02 20:48:09 nia Exp $
+
+DISTNAME= luv-1.36.0-0
+PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/-0//1}
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=luvit/}
+GITHUB_PROJECT= luv
+GITHUB_RELEASE= ${PKGVERSION_NOREV}-0
+
+MAINTAINER= nia%NetBSD.org@localhost
+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_MODULE=ON
+CMAKE_ARGS+= -DLUA_BUILD_TYPE=System
+CMAKE_ARGS+= -DWITH_LUA_ENGINE=Lua
+
+.include "../../lang/lua/module.mk"
+.include "../../devel/libuv/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r b747aa84132b -r f4300ee20144 devel/lua-luv/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-luv/PLIST Thu Jul 02 20:48:09 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/02 20:48:09 nia Exp $
+${LUA_CDIR}/luv.so
diff -r b747aa84132b -r f4300ee20144 devel/lua-luv/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-luv/distinfo Thu Jul 02 20:48:09 2020 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2020/07/02 20:48:09 nia Exp $
+
+SHA1 (luv-1.36.0-0.tar.gz) = f070256fe5567c1d475d2c6337c01d7e87d3a4aa
+RMD160 (luv-1.36.0-0.tar.gz) = 950a7289b11105be4d438fa6a022e1225c6ec141
+SHA512 (luv-1.36.0-0.tar.gz) = 9972d82bacdcf528d95047f3f2cfbceb523f6d6f5782e577b24cdd25f1292df745d3fb116b6fbd376d797df47c378ad25d5b673044d9ab5678af6e5fef5eca49
+Size (luv-1.36.0-0.tar.gz) = 1387184 bytes
+SHA1 (patch-src_luv.c) = 52ec94671dfdc86e421119ddca13646ee7c6e2e2
+SHA1 (patch-src_private.h) = f086e40c912851a319626986840fe75eeb0e52f5
diff -r b747aa84132b -r f4300ee20144 devel/lua-luv/patches/patch-src_luv.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-luv/patches/patch-src_luv.c Thu Jul 02 20:48:09 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_luv.c,v 1.1 2020/07/02 20:48:09 nia Exp $
+
+Support Lua 5.4
+
+--- src/luv.c.orig 2020-04-19 08:44:19.000000000 +0000
++++ src/luv.c
+@@ -16,7 +16,7 @@
+ */
+
+ #include <lua.h>
+-#if (LUA_VERSION_NUM != 503)
++#if (LUA_VERSION_NUM < 503)
+ #include "compat-5.3.h"
+ #endif
+ #include "luv.h"
diff -r b747aa84132b -r f4300ee20144 devel/lua-luv/patches/patch-src_private.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-luv/patches/patch-src_private.h Thu Jul 02 20:48:09 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_private.h,v 1.1 2020/07/02 20:48:09 nia Exp $
+
+Support Lua 5.4
+
+--- src/private.h.orig 2020-04-19 08:44:19.000000000 +0000
++++ src/private.h
+@@ -2,7 +2,7 @@
+ #define LUV_PRIVATE_H
+
+ #include <lua.h>
+-#if (LUA_VERSION_NUM != 503)
++#if (LUA_VERSION_NUM < 503)
+ #include "compat-5.3.h"
+ #endif
+
Home |
Main Index |
Thread Index |
Old Index