From owner-svn-ports-head@freebsd.org Mon Dec 3 17:38:17 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5FE07132D9F0; Mon, 3 Dec 2018 17:38:17 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 04E8A8BDA8; Mon, 3 Dec 2018 17:38:17 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D9F6B1926F; Mon, 3 Dec 2018 17:38:16 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wB3HcGr6003202; Mon, 3 Dec 2018 17:38:16 GMT (envelope-from 0mp@FreeBSD.org) Received: (from 0mp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wB3HcGAa003199; Mon, 3 Dec 2018 17:38:16 GMT (envelope-from 0mp@FreeBSD.org) Message-Id: <201812031738.wB3HcGAa003199@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: 0mp set sender to 0mp@FreeBSD.org using -f From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Mon, 3 Dec 2018 17:38:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r486525 - head/textproc/jshon X-SVN-Group: ports-head X-SVN-Commit-Author: 0mp X-SVN-Commit-Paths: head/textproc/jshon X-SVN-Commit-Revision: 486525 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 04E8A8BDA8 X-Spamd-Result: default: False [-0.16 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-0.34)[-0.338,0]; NEURAL_SPAM_LONG(0.05)[0.050,0]; NEURAL_SPAM_SHORT(0.13)[0.131,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Dec 2018 17:38:17 -0000 Author: 0mp Date: Mon Dec 3 17:38:16 2018 New Revision: 486525 URL: https://svnweb.freebsd.org/changeset/ports/486525 Log: textproc/jshon: Update to 20170302.1 - Take over MAINTAINER'ship. - Sort variables. - Remove the COMMIT_HASH variable. Use only GH_TAGNAME instead. - Add ZSH to OPTIONS_DEFAULT as suggested by the handbook. - Do not strip in post-install since INSTALL_PROGRAM is already used in do-install. - Improve pkg-descr. Reviewed by: krion Approved by: krion (mentor) Differential Revision: https://reviews.freebsd.org/D18422 Modified: head/textproc/jshon/Makefile head/textproc/jshon/distinfo head/textproc/jshon/pkg-descr Modified: head/textproc/jshon/Makefile ============================================================================== --- head/textproc/jshon/Makefile Mon Dec 3 17:37:27 2018 (r486524) +++ head/textproc/jshon/Makefile Mon Dec 3 17:38:16 2018 (r486525) @@ -1,10 +1,10 @@ # $FreeBSD$ PORTNAME= jshon -DISTVERSION= 20160111.2 +DISTVERSION= 20170302.1 CATEGORIES= textproc -MAINTAINER= ports@FreeBSD.org +MAINTAINER= 0mp@FreeBSD.org COMMENT= JSON parser for the shell LICENSE= MIT @@ -12,34 +12,29 @@ LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libjansson.so:devel/jansson -COMMIT_HASH= 783d3bf -GH_TAGNAME= ${COMMIT_HASH} - USES= gmake USE_GITHUB= yes GH_ACCOUNT= keenerd +GH_TAGNAME= d919aea -OPTIONS_DEFINE= ZSH -OPTIONS_DEFAULT= - CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib PLIST_FILES= bin/jshon man/man1/jshon.1.gz +OPTIONS_DEFINE= ZSH +OPTIONS_DEFAULT=ZSH + ZSH_PLIST_FILES= share/zsh/site-functions/jshon_zsh_completion pre-configure: - @${REINPLACE_CMD} -e 's|^\(#define JSHONVER \).*|\1"${PORTVERSION}-${COMMIT_HASH}"|' \ + @${REINPLACE_CMD} -e 's|^\(#define JSHONVER \).*|\1"${PORTVERSION}-${GH_TAGNAME}"|' \ -e 's|\({printf("%\)i\(\\n", JSHONVER); exit(0);}\)|\1s\2|' \ ${WRKSRC}/jshon.c do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1 - -post-install: - ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} post-install-ZSH-on: @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions Modified: head/textproc/jshon/distinfo ============================================================================== --- head/textproc/jshon/distinfo Mon Dec 3 17:37:27 2018 (r486524) +++ head/textproc/jshon/distinfo Mon Dec 3 17:38:16 2018 (r486525) @@ -1,3 +1,3 @@ -TIMESTAMP = 1509170073 -SHA256 (keenerd-jshon-20160111.2-783d3bf_GH0.tar.gz) = b50bcab22ff609bf54b09f580b2882a5aa2c1882205b6914d766495e2d4765e8 -SIZE (keenerd-jshon-20160111.2-783d3bf_GH0.tar.gz) = 14123 +TIMESTAMP = 1543855297 +SHA256 (keenerd-jshon-20170302.1-d919aea_GH0.tar.gz) = a14521b9a0bf06e48949d6bd233403b754a8ac47b08f37244e589c34d8a4db0f +SIZE (keenerd-jshon-20170302.1-d919aea_GH0.tar.gz) = 14126 Modified: head/textproc/jshon/pkg-descr ============================================================================== --- head/textproc/jshon/pkg-descr Mon Dec 3 17:37:27 2018 (r486524) +++ head/textproc/jshon/pkg-descr Mon Dec 3 17:38:16 2018 (r486525) @@ -1,6 +1,18 @@ -jshon parses, reads and creates JSON. It is designed to be as usable as -possible from within the shell and replaces fragile adhoc parsers made +Jshon parses, reads and creates JSON. It is designed to be as usable as +possible from within the shell and replaces fragile ad hoc parsers made from grep/sed/awk as well as heavyweight one-line parsers made from perl/python. + +Jshon loads JSON text from stdin, performs actions, then displays the last +action on stdout. Some of the options output JSON, others output plain text +meta information. Because Bash has very poor nested data structures, Jshon does +not try to return a native bash data structure as a typical library would. +Instead, Jshon provides a history stack containing all the manipulations. + +The big change in the latest release is switching the everything from +pass-by-value to pass-by-reference. In a typical use case (processing AUR +search results for 'python') by-ref is twice as fast and uses one sixth the +memory. If you are editing JSON, by-ref also makes your life a lot easier as +modifications do not need to be manually inserted through the entire stack. WWW: http://kmkeen.com/jshon/