1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00

New port: textproc/jtc: CLI tool to extract, manipulate and transform JSON

Simple but efficient cli utility tool to manipulate
JSON data. Offering a powerful way to select one or
multiple elements from a source JSON and apply various
actions on the selected elements at once, e.g. wrap
selected elements into a new JSON, filter in/out,
sort elements, update elements, insert new elements,
remove, copy, move, compare, transform, swap around
and many other operations.

WWW: https://github.com/ldn-softdev/jtc

PR:		244643
Submitted by:	Lewis Cook <vulcan@wired.sh>
This commit is contained in:
Kurt Jaeger 2020-03-07 08:19:27 +00:00
parent e6dc31c85f
commit a2bf532592
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=527923
4 changed files with 50 additions and 0 deletions

View File

@ -314,6 +314,7 @@
SUBDIR += jrefentry
SUBDIR += jshon
SUBDIR += json-yaml
SUBDIR += jtc
SUBDIR += kdiff3
SUBDIR += kenlm
SUBDIR += kf5-kcodecs

36
textproc/jtc/Makefile Normal file
View File

@ -0,0 +1,36 @@
# $FreeBSD$
PORTNAME= jtc
DISTVERSION= 1.75d
CATEGORIES= textproc
MAINTAINER= vulcan@wired.sh
COMMENT= CLI tool to extract, manipulate and transform JSON
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= compiler:c++14-lang
USE_CXXSTD= c++14
USE_GITHUB= yes
GH_ACCOUNT= ldn-softdev
LDFLAGS+= -lexecinfo
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= README.md Release\ Notes.md User\ Guide.md \
Walk-path\ tutorial.md
OPTIONS_DEFINE= DOCS
do-build:
${CXX} ${CXXFLAGS} ${LDFLAGS} ${WRKSRC}/${PORTNAME}.cpp -o ${WRKSRC}/${PORTNAME}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

3
textproc/jtc/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1583518848
SHA256 (ldn-softdev-jtc-1.75d_GH0.tar.gz) = e490a754be493660ef4f2e764ea121b5c39b280adf9b4c55d73e4876e8618f04
SIZE (ldn-softdev-jtc-1.75d_GH0.tar.gz) = 206457

10
textproc/jtc/pkg-descr Normal file
View File

@ -0,0 +1,10 @@
Simple but efficient cli utility tool to manipulate
JSON data. Offering a powerful way to select one or
multiple elements from a source JSON and apply various
actions on the selected elements at once, e.g. wrap
selected elements into a new JSON, filter in/out,
sort elements, update elements, insert new elements,
remove, copy, move, compare, transform, swap around
and many other operations.
WWW: https://github.com/ldn-softdev/jtc