Sun Mar 6 09:29:28 2022 UTC ()
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!
(nia)
diff -r1.1294 -r1.1295 pkgsrc/textproc/Makefile
diff -r0 -r1.1 pkgsrc/textproc/lua-ftcsv/DESCR
diff -r0 -r1.1 pkgsrc/textproc/lua-ftcsv/Makefile
diff -r0 -r1.1 pkgsrc/textproc/lua-ftcsv/PLIST
diff -r0 -r1.1 pkgsrc/textproc/lua-ftcsv/distinfo
--- pkgsrc/textproc/Makefile 2022/02/27 21:09:09 1.1294
+++ pkgsrc/textproc/Makefile 2022/03/06 09:29:28 1.1295
| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.1294 2022/02/27 21:09:09 pin Exp $ | | 1 | # $NetBSD: Makefile,v 1.1295 2022/03/06 09:29:28 nia Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | COMMENT= Text processing utilities (does not include desktop publishing) | | 4 | COMMENT= Text processing utilities (does not include desktop publishing) |
5 | | | 5 | |
6 | SUBDIR+= CRF++ | | 6 | SUBDIR+= CRF++ |
7 | SUBDIR+= DWB | | 7 | SUBDIR+= DWB |
8 | SUBDIR+= FlightCrew | | 8 | SUBDIR+= FlightCrew |
9 | SUBDIR+= GutenMark | | 9 | SUBDIR+= GutenMark |
10 | SUBDIR+= GutenMark-words | | 10 | SUBDIR+= GutenMark-words |
11 | SUBDIR+= LDoc | | 11 | SUBDIR+= LDoc |
12 | SUBDIR+= Markdown | | 12 | SUBDIR+= Markdown |
13 | SUBDIR+= OdfConverter | | 13 | SUBDIR+= OdfConverter |
14 | SUBDIR+= PEGTL | | 14 | SUBDIR+= PEGTL |
| @@ -484,26 +484,27 @@ SUBDIR+= libyaml | | | @@ -484,26 +484,27 @@ SUBDIR+= libyaml |
484 | SUBDIR+= link-grammar | | 484 | SUBDIR+= link-grammar |
485 | SUBDIR+= lit2epub | | 485 | SUBDIR+= lit2epub |
486 | SUBDIR+= log4cpp | | 486 | SUBDIR+= log4cpp |
487 | SUBDIR+= lok | | 487 | SUBDIR+= lok |
488 | SUBDIR+= lout | | 488 | SUBDIR+= lout |
489 | SUBDIR+= lowdown | | 489 | SUBDIR+= lowdown |
490 | SUBDIR+= lq-sp | | 490 | SUBDIR+= lq-sp |
491 | SUBDIR+= lua-cjson | | 491 | SUBDIR+= lua-cjson |
492 | SUBDIR+= lua-cmark | | 492 | SUBDIR+= lua-cmark |
493 | SUBDIR+= lua-cosmo | | 493 | SUBDIR+= lua-cosmo |
494 | SUBDIR+= lua-dkjson | | 494 | SUBDIR+= lua-dkjson |
495 | SUBDIR+= lua-etlua | | 495 | SUBDIR+= lua-etlua |
496 | SUBDIR+= lua-expat | | 496 | SUBDIR+= lua-expat |
| | | 497 | SUBDIR+= lua-ftcsv |
497 | SUBDIR+= lua-inifile | | 498 | SUBDIR+= lua-inifile |
498 | SUBDIR+= lua-lustache | | 499 | SUBDIR+= lua-lustache |
499 | SUBDIR+= lua-lyaml | | 500 | SUBDIR+= lua-lyaml |
500 | SUBDIR+= lua-markdown | | 501 | SUBDIR+= lua-markdown |
501 | SUBDIR+= lua-rapidjson | | 502 | SUBDIR+= lua-rapidjson |
502 | SUBDIR+= lua-slnunicode | | 503 | SUBDIR+= lua-slnunicode |
503 | SUBDIR+= lua-stringy | | 504 | SUBDIR+= lua-stringy |
504 | SUBDIR+= lua-utf8 | | 505 | SUBDIR+= lua-utf8 |
505 | SUBDIR+= lua-xapian | | 506 | SUBDIR+= lua-xapian |
506 | SUBDIR+= lucene++ | | 507 | SUBDIR+= lucene++ |
507 | SUBDIR+= makeindexk | | 508 | SUBDIR+= makeindexk |
508 | SUBDIR+= makeztxt | | 509 | SUBDIR+= makeztxt |
509 | SUBDIR+= man2html | | 510 | SUBDIR+= man2html |
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!
# $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
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"
@comment $NetBSD: PLIST,v 1.1 2022/03/06 09:29:28 nia Exp $
${LUA_LDIR}/ftcsv.lua
$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