pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wip/lua-cffi: import lua-cffi-0.2.3 as wip/lua-cffi



Module Name:	pkgsrc-wip
Committed By:	Yorick Hardy <yorickhardy%gmail.com@localhost>
Pushed By:	yhardy
Date:		Wed Sep 11 21:28:22 2024 +0200
Changeset:	c9e970a6c434e01ca83124f0b27c6eb40dd31937

Modified Files:
	Makefile
Added Files:
	lua-cffi/COMMIT_MSG
	lua-cffi/DESCR
	lua-cffi/Makefile
	lua-cffi/PLIST
	lua-cffi/distinfo

Log Message:
wip/lua-cffi: import lua-cffi-0.2.3 as wip/lua-cffi

This is a portable C FFI for Lua, based on `libffi` and aiming to be mostly
compatible with LuaJIT FFI, but written from scratch. Compatibility is
preserved where reasonable, but not where not easily implementable (e.g.
the parser extensions for 64-bit `cdata` and so on). Thanks to `libffi`,
it works on many operating systems and CPU architectures. The `cffi-lua`
codebase itself does not contain any non-portable code (with the exception
of things such as Windows calling convention handling on x86, and some
adjustments for big endian architectures).

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c9e970a6c434e01ca83124f0b27c6eb40dd31937

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile            |  1 +
 lua-cffi/COMMIT_MSG | 10 ++++++++++
 lua-cffi/DESCR      |  8 ++++++++
 lua-cffi/Makefile   | 22 ++++++++++++++++++++++
 lua-cffi/PLIST      |  2 ++
 lua-cffi/distinfo   |  5 +++++
 6 files changed, 48 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 5a91926670..276a781c26 100644
--- a/Makefile
+++ b/Makefile
@@ -2175,6 +2175,7 @@ SUBDIR+=	ltp-git
 SUBDIR+=	ltrace
 SUBDIR+=	ltsmin
 SUBDIR+=	lua-MessagePack
+SUBDIR+=	lua-cffi
 SUBDIR+=	lua-htmlparser
 SUBDIR+=	lua-lbn
 SUBDIR+=	lua-ldoc
diff --git a/lua-cffi/COMMIT_MSG b/lua-cffi/COMMIT_MSG
new file mode 100644
index 0000000000..bf60f78538
--- /dev/null
+++ b/lua-cffi/COMMIT_MSG
@@ -0,0 +1,10 @@
+devel/lua-cffi: import lua-cffi-0.2.3 as devel/lua-cffi
+
+This is a portable C FFI for Lua, based on `libffi` and aiming to be mostly
+compatible with LuaJIT FFI, but written from scratch. Compatibility is
+preserved where reasonable, but not where not easily implementable (e.g.
+the parser extensions for 64-bit `cdata` and so on). Thanks to `libffi`,
+it works on many operating systems and CPU architectures. The `cffi-lua`
+codebase itself does not contain any non-portable code (with the exception
+of things such as Windows calling convention handling on x86, and some
+adjustments for big endian architectures).
diff --git a/lua-cffi/DESCR b/lua-cffi/DESCR
new file mode 100644
index 0000000000..ac87eca080
--- /dev/null
+++ b/lua-cffi/DESCR
@@ -0,0 +1,8 @@
+This is a portable C FFI for Lua, based on `libffi` and aiming to be mostly
+compatible with LuaJIT FFI, but written from scratch. Compatibility is
+preserved where reasonable, but not where not easily implementable (e.g.
+the parser extensions for 64-bit `cdata` and so on). Thanks to `libffi`,
+it works on many operating systems and CPU architectures. The `cffi-lua`
+codebase itself does not contain any non-portable code (with the exception
+of things such as Windows calling convention handling on x86, and some
+adjustments for big endian architectures).
diff --git a/lua-cffi/Makefile b/lua-cffi/Makefile
new file mode 100644
index 0000000000..9130fc6f70
--- /dev/null
+++ b/lua-cffi/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD$
+
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+DISTNAME=	cffi-lua-0.2.3
+PKGNAME=	lua-cffi-0.2.3
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=q66/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/q66/cffi-lua/
+COMMENT=	Portable C FFI for Lua
+LICENSE=	mit
+
+USE_LANGUAGES=		c++
+USE_CXX_FEATURES=	c++14
+USE_TOOLS+=		pkg-config
+WRKSRC=			${WRKDIR}/${DISTNAME}
+
+.include "../../devel/libffi/buildlink3.mk"
+.include "../../devel/meson/build.mk"
+.include "../../lang/lua/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lua-cffi/PLIST b/lua-cffi/PLIST
new file mode 100644
index 0000000000..68b9e51201
--- /dev/null
+++ b/lua-cffi/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+lib/lua/5.4/cffi.so
diff --git a/lua-cffi/distinfo b/lua-cffi/distinfo
new file mode 100644
index 0000000000..8bdb35c134
--- /dev/null
+++ b/lua-cffi/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (cffi-lua-0.2.3.tar.gz) = ec1e2fb5732124a87d8774238b6d2a58a0f3b6e32cfafdda08cf2b166ceacc5c
+SHA512 (cffi-lua-0.2.3.tar.gz) = e67db0b3834566500db76a8d006d7f9575500a0513de98842d8582452e89cd0bf052ffd69c198b389b42915cf8f5aa522aa6b2db176069add5598d5d7f965914
+Size (cffi-lua-0.2.3.tar.gz) = 116042 bytes


Home | Main Index | Thread Index | Old Index