Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/lua-vstruct Add lua-vstruct-2.1.1:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b268b22fe46a
branches:  trunk
changeset: 436610:b268b22fe46a
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Aug 06 23:17:57 2020 +0000

description:
Add lua-vstruct-2.1.1:

VStruct is a Lua library to provide functions for manipulating binary
data, in particular for reading binary files or byte buffers into Lua
values and for writing Lua values back into files or buffers. Supported
data types include:

- signed and unsigned integers of arbitrary size
- fixed and floating point numbers
- fixed-size, length-prefixed, and null-terminated strings
- booleans and bitmasks
- bit-packed integers, booleans and bitmasks

In addition, the library supports seeking, alignment, and byte order
controls, repetition, grouping of data into tables, and named fields.

diffstat:

 devel/lua-vstruct/DESCR    |  13 +++++++++++++
 devel/lua-vstruct/Makefile |  28 ++++++++++++++++++++++++++++
 devel/lua-vstruct/PLIST    |  37 +++++++++++++++++++++++++++++++++++++
 devel/lua-vstruct/distinfo |   6 ++++++
 4 files changed, 84 insertions(+), 0 deletions(-)

diffs (100 lines):

diff -r be4eb52d7b13 -r b268b22fe46a devel/lua-vstruct/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-vstruct/DESCR   Thu Aug 06 23:17:57 2020 +0000
@@ -0,0 +1,13 @@
+VStruct is a Lua library to provide functions for manipulating binary
+data, in particular for reading binary files or byte buffers into Lua
+values and for writing Lua values back into files or buffers. Supported
+data types include:
+
+- signed and unsigned integers of arbitrary size
+- fixed and floating point numbers
+- fixed-size, length-prefixed, and null-terminated strings
+- booleans and bitmasks
+- bit-packed integers, booleans and bitmasks
+
+In addition, the library supports seeking, alignment, and byte order
+controls, repetition, grouping of data into tables, and named fields.
diff -r be4eb52d7b13 -r b268b22fe46a devel/lua-vstruct/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-vstruct/Makefile        Thu Aug 06 23:17:57 2020 +0000
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2020/08/06 23:17:57 joerg Exp $
+
+DISTNAME=      vstruct-2.1.1
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME}
+CATEGORIES=    devel lua
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=ToxicFrog/}
+GITHUB_PROJECT=        vstruct
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/ToxicFrog/vstruct/
+COMMENT=       Binary data manipulation function
+LICENSE=       mit
+
+NO_BUILD=      yes
+
+INSTALLATION_DIRS+=    ${LUA_LDIR}/vstruct/ast ${LUA_LDIR}/vstruct/io
+
+do-install:
+       ${INSTALL_DATA} ${WRKSRC}/*.lua \
+               ${DESTDIR}${PREFIX}/${LUA_LDIR}/vstruct
+       ${INSTALL_DATA} ${WRKSRC}/ast/*.lua \
+               ${DESTDIR}${PREFIX}/${LUA_LDIR}/vstruct/ast
+       ${INSTALL_DATA} ${WRKSRC}/io/*.lua \
+               ${DESTDIR}${PREFIX}/${LUA_LDIR}/vstruct/io
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r be4eb52d7b13 -r b268b22fe46a devel/lua-vstruct/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-vstruct/PLIST   Thu Aug 06 23:17:57 2020 +0000
@@ -0,0 +1,37 @@
+@comment $NetBSD: PLIST,v 1.1 2020/08/06 23:17:57 joerg Exp $
+${LUA_LDIR}/vstruct/api.lua
+${LUA_LDIR}/vstruct/ast.lua
+${LUA_LDIR}/vstruct/ast/Bitpack.lua
+${LUA_LDIR}/vstruct/ast/IO.lua
+${LUA_LDIR}/vstruct/ast/List.lua
+${LUA_LDIR}/vstruct/ast/Name.lua
+${LUA_LDIR}/vstruct/ast/Node.lua
+${LUA_LDIR}/vstruct/ast/Repeat.lua
+${LUA_LDIR}/vstruct/ast/Root.lua
+${LUA_LDIR}/vstruct/ast/Table.lua
+${LUA_LDIR}/vstruct/compat1x.lua
+${LUA_LDIR}/vstruct/cursor.lua
+${LUA_LDIR}/vstruct/frexp.lua
+${LUA_LDIR}/vstruct/init.lua
+${LUA_LDIR}/vstruct/io.lua
+${LUA_LDIR}/vstruct/io/a.lua
+${LUA_LDIR}/vstruct/io/b.lua
+${LUA_LDIR}/vstruct/io/bigendian.lua
+${LUA_LDIR}/vstruct/io/c.lua
+${LUA_LDIR}/vstruct/io/defaults.lua
+${LUA_LDIR}/vstruct/io/endianness.lua
+${LUA_LDIR}/vstruct/io/f.lua
+${LUA_LDIR}/vstruct/io/hostendian.lua
+${LUA_LDIR}/vstruct/io/i.lua
+${LUA_LDIR}/vstruct/io/littleendian.lua
+${LUA_LDIR}/vstruct/io/m.lua
+${LUA_LDIR}/vstruct/io/p.lua
+${LUA_LDIR}/vstruct/io/s.lua
+${LUA_LDIR}/vstruct/io/seekb.lua
+${LUA_LDIR}/vstruct/io/seekf.lua
+${LUA_LDIR}/vstruct/io/seekto.lua
+${LUA_LDIR}/vstruct/io/u.lua
+${LUA_LDIR}/vstruct/io/x.lua
+${LUA_LDIR}/vstruct/io/z.lua
+${LUA_LDIR}/vstruct/lexer.lua
+${LUA_LDIR}/vstruct/test.lua
diff -r be4eb52d7b13 -r b268b22fe46a devel/lua-vstruct/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-vstruct/distinfo        Thu Aug 06 23:17:57 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/08/06 23:17:57 joerg Exp $
+
+SHA1 (vstruct-2.1.1.tar.gz) = faab98322060e3e2a19a4dff578e9d454784b72c
+RMD160 (vstruct-2.1.1.tar.gz) = 1838d8fd70976f4efc0865d22f211caa710ad197
+SHA512 (vstruct-2.1.1.tar.gz) = 8959fc9f90aa6ccffd306227098dc888a2218c0bfe7ef783867a012d5f23053cd58ec21f734eee1f1ad539245576e5f7cc8ff75050ef61e47a8af4a1b074bbac
+Size (vstruct-2.1.1.tar.gz) = 39736 bytes



Home | Main Index | Thread Index | Old Index