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

cvs diff -r1.1294 -r1.1295 pkgsrc/textproc/Makefile (expand / switch to unified diff)

--- 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
4COMMENT= Text processing utilities (does not include desktop publishing) 4COMMENT= Text processing utilities (does not include desktop publishing)
5 5
6SUBDIR+= CRF++ 6SUBDIR+= CRF++
7SUBDIR+= DWB 7SUBDIR+= DWB
8SUBDIR+= FlightCrew 8SUBDIR+= FlightCrew
9SUBDIR+= GutenMark 9SUBDIR+= GutenMark
10SUBDIR+= GutenMark-words 10SUBDIR+= GutenMark-words
11SUBDIR+= LDoc 11SUBDIR+= LDoc
12SUBDIR+= Markdown 12SUBDIR+= Markdown
13SUBDIR+= OdfConverter 13SUBDIR+= OdfConverter
14SUBDIR+= PEGTL 14SUBDIR+= PEGTL
@@ -484,26 +484,27 @@ SUBDIR+= libyaml @@ -484,26 +484,27 @@ SUBDIR+= libyaml
484SUBDIR+= link-grammar 484SUBDIR+= link-grammar
485SUBDIR+= lit2epub 485SUBDIR+= lit2epub
486SUBDIR+= log4cpp 486SUBDIR+= log4cpp
487SUBDIR+= lok 487SUBDIR+= lok
488SUBDIR+= lout 488SUBDIR+= lout
489SUBDIR+= lowdown 489SUBDIR+= lowdown
490SUBDIR+= lq-sp 490SUBDIR+= lq-sp
491SUBDIR+= lua-cjson 491SUBDIR+= lua-cjson
492SUBDIR+= lua-cmark 492SUBDIR+= lua-cmark
493SUBDIR+= lua-cosmo 493SUBDIR+= lua-cosmo
494SUBDIR+= lua-dkjson 494SUBDIR+= lua-dkjson
495SUBDIR+= lua-etlua 495SUBDIR+= lua-etlua
496SUBDIR+= lua-expat 496SUBDIR+= lua-expat
 497SUBDIR+= lua-ftcsv
497SUBDIR+= lua-inifile 498SUBDIR+= lua-inifile
498SUBDIR+= lua-lustache 499SUBDIR+= lua-lustache
499SUBDIR+= lua-lyaml 500SUBDIR+= lua-lyaml
500SUBDIR+= lua-markdown 501SUBDIR+= lua-markdown
501SUBDIR+= lua-rapidjson 502SUBDIR+= lua-rapidjson
502SUBDIR+= lua-slnunicode 503SUBDIR+= lua-slnunicode
503SUBDIR+= lua-stringy 504SUBDIR+= lua-stringy
504SUBDIR+= lua-utf8 505SUBDIR+= lua-utf8
505SUBDIR+= lua-xapian 506SUBDIR+= lua-xapian
506SUBDIR+= lucene++ 507SUBDIR+= lucene++
507SUBDIR+= makeindexk 508SUBDIR+= makeindexk
508SUBDIR+= makeztxt 509SUBDIR+= makeztxt
509SUBDIR+= man2html 510SUBDIR+= man2html

File Added: pkgsrc/textproc/lua-ftcsv/DESCR
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!

File Added: pkgsrc/textproc/lua-ftcsv/Makefile
# $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"

File Added: pkgsrc/textproc/lua-ftcsv/PLIST
@comment $NetBSD: PLIST,v 1.1 2022/03/06 09:29:28 nia Exp $
${LUA_LDIR}/ftcsv.lua

File Added: pkgsrc/textproc/lua-ftcsv/distinfo
$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