pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc



Module Name:    pkgsrc
Committed By:   nia
Date:           Sun Mar  6 09:29:28 UTC 2022

Modified Files:
        pkgsrc/textproc: Makefile
Added Files:
        pkgsrc/textproc/lua-ftcsv: DESCR Makefile PLIST distinfo

Log Message:
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!


To generate a diff of this commit:
cvs rdiff -u -r1.1294 -r1.1295 pkgsrc/textproc/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/lua-ftcsv/DESCR \
    pkgsrc/textproc/lua-ftcsv/Makefile pkgsrc/textproc/lua-ftcsv/PLIST \
    pkgsrc/textproc/lua-ftcsv/distinfo

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

Modified files:

Index: pkgsrc/textproc/Makefile
diff -u pkgsrc/textproc/Makefile:1.1294 pkgsrc/textproc/Makefile:1.1295
--- pkgsrc/textproc/Makefile:1.1294     Sun Feb 27 21:09:09 2022
+++ pkgsrc/textproc/Makefile    Sun Mar  6 09:29:28 2022
@@ -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-cosmo
 SUBDIR+=       lua-dkjson
 SUBDIR+=       lua-etlua
 SUBDIR+=       lua-expat
+SUBDIR+=       lua-ftcsv
 SUBDIR+=       lua-inifile
 SUBDIR+=       lua-lustache
 SUBDIR+=       lua-lyaml

Added files:

Index: pkgsrc/textproc/lua-ftcsv/DESCR
diff -u /dev/null pkgsrc/textproc/lua-ftcsv/DESCR:1.1
--- /dev/null   Sun Mar  6 09:29:28 2022
+++ pkgsrc/textproc/lua-ftcsv/DESCR     Sun Mar  6 09:29:28 2022
@@ -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!
Index: pkgsrc/textproc/lua-ftcsv/Makefile
diff -u /dev/null pkgsrc/textproc/lua-ftcsv/Makefile:1.1
--- /dev/null   Sun Mar  6 09:29:28 2022
+++ pkgsrc/textproc/lua-ftcsv/Makefile  Sun Mar  6 09:29:28 2022
@@ -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"
Index: pkgsrc/textproc/lua-ftcsv/PLIST
diff -u /dev/null pkgsrc/textproc/lua-ftcsv/PLIST:1.1
--- /dev/null   Sun Mar  6 09:29:28 2022
+++ pkgsrc/textproc/lua-ftcsv/PLIST     Sun Mar  6 09:29:28 2022
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2022/03/06 09:29:28 nia Exp $
+${LUA_LDIR}/ftcsv.lua
Index: pkgsrc/textproc/lua-ftcsv/distinfo
diff -u /dev/null pkgsrc/textproc/lua-ftcsv/distinfo:1.1
--- /dev/null   Sun Mar  6 09:29:28 2022
+++ pkgsrc/textproc/lua-ftcsv/distinfo  Sun Mar  6 09:29:28 2022
@@ -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