Files

52 lines
2.0 KiB
Tcl

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup github 1.0
github.setup ldn-softdev jtc 1.76
github.tarball_from archive
revision 0
platforms darwin
categories textproc
license MIT
maintainers {gmail.com:herby.gillot @herbygillot} openmaintainer
description cli tool to extract, manipulate and transform source JSON
long_description jtc stand for: JSON test console, but it's a legacy name, \
don't get misled. jtc offers a powerful way to select one \
or multiple elements from a source JSON and apply various \
actions on the selected elements at once (wrap selected \
elements into a new JSON, filter in/out, update elements, \
insert new elements, remove, copy, move, compare, \
transform and swap around).
checksums rmd160 1704af5fb08d4986afbe8a33293117ee79cd479b \
sha256 8524ba3c67364719196ffc8c81078ea9c1ccfa629fff5e57441edd09f1950052 \
size 228445
compiler.cxx_standard 2014
# Fails on 10.10 and 10.11 as well with
# /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/map:634:11: error: no matching constructor for initialization of 'value_type' (aka 'pair<const std::__1::basic_string<char>, Json::JnEntry>')
# : __cc(std::forward<_Args>(__args)...) {}
compiler.blacklist-append {clang < 900}
installs_libs no
use_configure no
build.cmd ${configure.cxx}
build.args -o jtc -Wall -std=c++14 -Ofast
build.target jtc.cpp
set jtc_doc_dir ${prefix}/share/doc/${name}
destroot {
xinstall -m 755 ${worksrcpath}/jtc ${destroot}${prefix}/bin/
xinstall -d ${destroot}${jtc_doc_dir}
xinstall -m 644 "${worksrcpath}/User Guide.md" ${destroot}${jtc_doc_dir}/
xinstall -m 644 "${worksrcpath}/Walk-path tutorial.md" ${destroot}${jtc_doc_dir}/
}