Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Oct 2017 05:56:55 +0000 (UTC)
From:      "Tobias C. Berner" <tcberner@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r453046 - head/textproc/jshon
Message-ID:  <201710280556.v9S5utBR084444@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tcberner
Date: Sat Oct 28 05:56:54 2017
New Revision: 453046
URL: https://svnweb.freebsd.org/changeset/ports/453046

Log:
  Update textproc/jshon to 20160111.2
  
  PR:		223280
  Submitted by:	kalten@gmx.at

Modified:
  head/textproc/jshon/Makefile
  head/textproc/jshon/distinfo

Modified: head/textproc/jshon/Makefile
==============================================================================
--- head/textproc/jshon/Makefile	Sat Oct 28 05:05:01 2017	(r453045)
+++ head/textproc/jshon/Makefile	Sat Oct 28 05:56:54 2017	(r453046)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	jshon
-PORTVERSION=	20131105
+DISTVERSION=	20160111.2
 CATEGORIES=	textproc
 
 MAINTAINER=	ports@FreeBSD.org
@@ -12,18 +12,37 @@ 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
 
-USES=		gmake
+OPTIONS_DEFINE=	ZSH
+OPTIONS_DEFAULT=
 
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
 PLIST_FILES=	bin/jshon man/man1/jshon.1.gz
 
+ZSH_PLIST_FILES=	share/zsh/site-functions/jshon_zsh_completion
+
+pre-configure:
+	@${REINPLACE_CMD} -e 's|^\(#define JSHONVER \).*|\1"${PORTVERSION}-${COMMIT_HASH}"|' \
+	-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
+	${INSTALL_DATA} ${WRKSRC}/jshon_zsh_completion ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
 
 .include <bsd.port.mk>

Modified: head/textproc/jshon/distinfo
==============================================================================
--- head/textproc/jshon/distinfo	Sat Oct 28 05:05:01 2017	(r453045)
+++ head/textproc/jshon/distinfo	Sat Oct 28 05:56:54 2017	(r453046)
@@ -1,2 +1,3 @@
-SHA256 (keenerd-jshon-20131105_GH0.tar.gz) = 28420f6f02c6b762732898692cc0b0795cfe1a59fbfb24e67b80f332cf6d4fa2
-SIZE (keenerd-jshon-20131105_GH0.tar.gz) = 12870
+TIMESTAMP = 1509170073
+SHA256 (keenerd-jshon-20160111.2-783d3bf_GH0.tar.gz) = b50bcab22ff609bf54b09f580b2882a5aa2c1882205b6914d766495e2d4765e8
+SIZE (keenerd-jshon-20160111.2-783d3bf_GH0.tar.gz) = 14123



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710280556.v9S5utBR084444>