summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorDmitri Goutnik <dmgk@FreeBSD.org>2020-04-12 20:16:31 +0000
committerDmitri Goutnik <dmgk@FreeBSD.org>2020-04-12 20:16:31 +0000
commitb9fd8f17a4f205fc8c1b22d48ced32b5a010610a (patch)
tree90ef1ef224f8ab8249f9acc411da98f27f9e8b89 /textproc
parent36aa709449575aacbfba414d53ca7e19fa9ed94b (diff)
downloadfreebsd-ports-b9fd8f17a4f205fc8c1b22d48ced32b5a010610a.zip
New port: textproc/trdsql
Command-line tool allowing you to easily interface between CSV, LTSV, JSON and TBLN with SQL queries which can output to various formats. WWW: https://github.com/noborus/trdsql PR: 245513 Submitted by: Lewis Cook <vulcan@wired.sh>
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/trdsql/Makefile42
-rw-r--r--textproc/trdsql/distinfo29
-rw-r--r--textproc/trdsql/pkg-descr5
4 files changed, 77 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index c40462d50cbf..f2ab1a17ebc6 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1764,6 +1764,7 @@
SUBDIR += tr-aspell
SUBDIR += trang
SUBDIR += translate-toolkit
+ SUBDIR += trdsql
SUBDIR += ts-hunspell
SUBDIR += tth
SUBDIR += tttcmds
diff --git a/textproc/trdsql/Makefile b/textproc/trdsql/Makefile
new file mode 100644
index 000000000000..3aad22270a66
--- /dev/null
+++ b/textproc/trdsql/Makefile
@@ -0,0 +1,42 @@
+# $FreeBSD$
+
+PORTNAME= trdsql
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.7.5
+CATEGORIES= textproc
+
+MAINTAINER= vulcan@wired.sh
+COMMENT= Execute SQL queries on CSV, LTSV, JSON and TBLN
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= go:modules
+USE_GITHUB= yes
+GH_ACCOUNT= noborus
+GH_TUPLE= dsnet:compress:v0.0.1:dsnet_compress/vendor/github.com/dsnet/compress \
+ go-sql-driver:mysql:v1.5.0:go_sql_driver_mysql/vendor/github.com/go-sql-driver/mysql \
+ golang:crypto:78000ba7a073:golang_crypto/vendor/golang.org/x/crypto \
+ golang:sys:5c8b2ff67527:golang_sys/vendor/golang.org/x/sys \
+ klauspost:compress:v1.10.2:klauspost_compress/vendor/github.com/klauspost/compress \
+ lib:pq:v1.3.0:lib_pq/vendor/github.com/lib/pq \
+ logrusorgru:aurora:e9ef32dff381:logrusorgru_aurora/vendor/github.com/logrusorgru/aurora \
+ mattn:go-runewidth:v0.0.8:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \
+ mattn:go-sqlite3:v2.0.3:mattn_go_sqlite3/vendor/github.com/mattn/go-sqlite3 \
+ noborus:tbln:v0.0.1:noborus_tbln/vendor/github.com/noborus/tbln \
+ olekukonko:tablewriter:v0.0.4:olekukonko_tablewriter/vendor/github.com/olekukonko/tablewriter \
+ pierrec:lz4:v2.4.1:pierrec_lz4/vendor/github.com/pierrec/lz4 \
+ ulikunitz:xz:v0.5.7:ulikunitz_xz/vendor/github.com/ulikunitz/xz
+
+GO_TARGET= ./cmd/${PORTNAME}
+
+PLIST_FILES= bin/${PORTNAME}
+PORTDOCS= README.md
+
+OPTIONS_DEFINE= DOCS
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/textproc/trdsql/distinfo b/textproc/trdsql/distinfo
new file mode 100644
index 000000000000..49f9f04381f1
--- /dev/null
+++ b/textproc/trdsql/distinfo
@@ -0,0 +1,29 @@
+TIMESTAMP = 1586541154
+SHA256 (noborus-trdsql-v0.7.5_GH0.tar.gz) = abe0103fac8e176dafd7ae51765277f35f8d3974f76834e3f1497b8adcdc69e3
+SIZE (noborus-trdsql-v0.7.5_GH0.tar.gz) = 2450985
+SHA256 (dsnet-compress-v0.0.1_GH0.tar.gz) = 345332d6a147f052cf4a34edb5187b323f06f012f842bb49fd05ec55f5339c5b
+SIZE (dsnet-compress-v0.0.1_GH0.tar.gz) = 9962544
+SHA256 (go-sql-driver-mysql-v1.5.0_GH0.tar.gz) = 9d98b46623037447a26a51a203540bf605b6e6220d31f2efc7396242fcb660b5
+SIZE (go-sql-driver-mysql-v1.5.0_GH0.tar.gz) = 90474
+SHA256 (golang-crypto-78000ba7a073_GH0.tar.gz) = bb0b23f5a138f10f16dda21aa34784503d86920b922b59554ffa5ef60fdb4c39
+SIZE (golang-crypto-78000ba7a073_GH0.tar.gz) = 1727038
+SHA256 (golang-sys-5c8b2ff67527_GH0.tar.gz) = 9f8cc5b07a664262b956c4f687e6078da265e119a093bb542d3bd132afef2db6
+SIZE (golang-sys-5c8b2ff67527_GH0.tar.gz) = 1040138
+SHA256 (klauspost-compress-v1.10.2_GH0.tar.gz) = 43626e21eac42b8475a84283bb6431b8eb4d79c38fd469c3bbf6baa495ae3940
+SIZE (klauspost-compress-v1.10.2_GH0.tar.gz) = 16707607
+SHA256 (lib-pq-v1.3.0_GH0.tar.gz) = 900b640ed6e740496769291763b2368b578d25d54fe027551392ceaa29bae8ca
+SIZE (lib-pq-v1.3.0_GH0.tar.gz) = 96255
+SHA256 (logrusorgru-aurora-e9ef32dff381_GH0.tar.gz) = d44d7e14a643fa4711658a520c6946ae33761e3c580f9d3c842b0b487d0472a6
+SIZE (logrusorgru-aurora-e9ef32dff381_GH0.tar.gz) = 133625
+SHA256 (mattn-go-runewidth-v0.0.8_GH0.tar.gz) = 7b1ae2393fe4b0ddc64b94aabf1d825c969aebe09f167751a009d5ed6836850e
+SIZE (mattn-go-runewidth-v0.0.8_GH0.tar.gz) = 16500
+SHA256 (mattn-go-sqlite3-v2.0.3_GH0.tar.gz) = ed015860c9b3e701d8cce7dcb0bcb2e2f53071718334465b10abb696f7de0e58
+SIZE (mattn-go-sqlite3-v2.0.3_GH0.tar.gz) = 2335418
+SHA256 (noborus-tbln-v0.0.1_GH0.tar.gz) = fe08d2a0b8f33d77194b0e7801546d7d9b61cad50851dcf9641c886f47926c07
+SIZE (noborus-tbln-v0.0.1_GH0.tar.gz) = 53208
+SHA256 (olekukonko-tablewriter-v0.0.4_GH0.tar.gz) = a86028430fb4dd99ce0030a7c4d37915337c3b9a9efbfd2698b375f3e3488bd0
+SIZE (olekukonko-tablewriter-v0.0.4_GH0.tar.gz) = 19252
+SHA256 (pierrec-lz4-v2.4.1_GH0.tar.gz) = e676ab183c609fd4d2014ec96f88c5735f6272ac870acfe4543d4fcdfc0165a0
+SIZE (pierrec-lz4-v2.4.1_GH0.tar.gz) = 20509213
+SHA256 (ulikunitz-xz-v0.5.7_GH0.tar.gz) = f398b805bd38c409db4779f398736ca51c5ac1d1783d2327cdb0c827b46412c2
+SIZE (ulikunitz-xz-v0.5.7_GH0.tar.gz) = 478092
diff --git a/textproc/trdsql/pkg-descr b/textproc/trdsql/pkg-descr
new file mode 100644
index 000000000000..5c06fc3f08f7
--- /dev/null
+++ b/textproc/trdsql/pkg-descr
@@ -0,0 +1,5 @@
+Command-line tool allowing you to easily interface
+between CSV, LTSV, JSON and TBLN with SQL queries
+which can output to various formats.
+
+WWW: https://github.com/noborus/trdsql