pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc textproc: add lua-ftcsv
details: https://anonhg.NetBSD.org/pkgsrc/rev/6c15f9e6aa0d
branches: trunk
changeset: 375059:6c15f9e6aa0d
user: nia <nia%pkgsrc.org@localhost>
date: Sun Mar 06 09:29:28 2022 +0000
description:
textproc: add lua-ftcsv
ftcsv is a fast csv library written in pure Lua.
It features two parsing modes, one for CSVs that can easily be loaded into
memory (up to a few hundred MBs depending on the system), and another for
loading files using an iterator - useful for manipulating large files or
processing during load.
It correctly handles most csv (and csv-like) files found in the wild, from
varying line endings (Windows, Linux, and OS9), UTF-8 BOM support, and odd
delimiters.
There are also various options that can tweak how a file is loaded, only
grabbing a few fields, renaming fields, and parsing header-less files!
diffstat:
textproc/Makefile | 3 ++-
textproc/lua-ftcsv/DESCR | 13 +++++++++++++
textproc/lua-ftcsv/Makefile | 28 ++++++++++++++++++++++++++++
textproc/lua-ftcsv/PLIST | 2 ++
textproc/lua-ftcsv/distinfo | 5 +++++
5 files changed, 50 insertions(+), 1 deletions(-)
diffs (81 lines):
diff -r 201aba5ce701 -r 6c15f9e6aa0d textproc/Makefile
--- a/textproc/Makefile Sun Mar 06 09:16:41 2022 +0000
+++ b/textproc/Makefile Sun Mar 06 09:29:28 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1294 2022/02/27 21:09:09 pin Exp $
+# $NetBSD: Makefile,v 1.1295 2022/03/06 09:29:28 nia Exp $
#
COMMENT= Text processing utilities (does not include desktop publishing)
@@ -494,6 +494,7 @@
SUBDIR+= lua-dkjson
SUBDIR+= lua-etlua
SUBDIR+= lua-expat
+SUBDIR+= lua-ftcsv
SUBDIR+= lua-inifile
SUBDIR+= lua-lustache
SUBDIR+= lua-lyaml
diff -r 201aba5ce701 -r 6c15f9e6aa0d textproc/lua-ftcsv/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-ftcsv/DESCR Sun Mar 06 09:29:28 2022 +0000
@@ -0,0 +1,13 @@
+ftcsv is a fast csv library written in pure Lua.
+
+It features two parsing modes, one for CSVs that can easily be loaded into
+memory (up to a few hundred MBs depending on the system), and another for
+loading files using an iterator - useful for manipulating large files or
+processing during load.
+
+It correctly handles most csv (and csv-like) files found in the wild, from
+varying line endings (Windows, Linux, and OS9), UTF-8 BOM support, and odd
+delimiters.
+
+There are also various options that can tweak how a file is loaded, only
+grabbing a few fields, renaming fields, and parsing header-less files!
diff -r 201aba5ce701 -r 6c15f9e6aa0d textproc/lua-ftcsv/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-ftcsv/Makefile Sun Mar 06 09:29:28 2022 +0000
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2022/03/06 09:29:28 nia Exp $
+
+DISTNAME= ftcsv-1.2.1
+PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME}
+CATEGORIES= textproc lua
+MASTER_SITES= ${MASTER_SITE_GITHUB:=FourierTransformer/}
+GITHUB_PROJECT= ftcsv
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/FourierTransformer/ftcsv
+COMMENT= Fast csv library written in pure Lua
+LICENSE= mit
+
+TEST_DEPENDS+= ${LUA_PKGPREFIX}-cjson-[0-9]*:../../textproc/lua-cjson
+
+NO_BUILD= yes
+USE_LANGUAGES= # none
+
+LUA_USE_BUSTED= yes
+
+INSTALLATION_DIRS+= ${LUA_LDIR}
+
+do-install:
+ ${INSTALL_LIB} ${WRKSRC}/ftcsv.lua \
+ ${DESTDIR}${PREFIX}/${LUA_LDIR}
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 201aba5ce701 -r 6c15f9e6aa0d textproc/lua-ftcsv/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-ftcsv/PLIST Sun Mar 06 09:29:28 2022 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2022/03/06 09:29:28 nia Exp $
+${LUA_LDIR}/ftcsv.lua
diff -r 201aba5ce701 -r 6c15f9e6aa0d textproc/lua-ftcsv/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-ftcsv/distinfo Sun Mar 06 09:29:28 2022 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/03/06 09:29:28 nia Exp $
+
+BLAKE2s (ftcsv-1.2.1.tar.gz) = b6744c68c334c434ba1fc2b0f4e84c4c3b2168b30c30e835ead70d30bbe7f985
+SHA512 (ftcsv-1.2.1.tar.gz) = 9771d39b3ef4417657e259e5fd9cc063142750b547ff2c6c97f3fe51ba6e10349ebee0563225416aa6bd8b447fca057d80e83f5cd18bab6c96a47db79f465dc6
+Size (ftcsv-1.2.1.tar.gz) = 18195 bytes
Home |
Main Index |
Thread Index |
Old Index