View | Details | Raw Unified | Return to bug 223280
Collapse All | Expand All

(-)Makefile (-1 / +21 lines)
Lines 1-7 Link Here
1
# $FreeBSD: head/textproc/jshon/Makefile 412349 2016-04-01 14:25:16Z mat $
1
# $FreeBSD: head/textproc/jshon/Makefile 412349 2016-04-01 14:25:16Z mat $
2
2
3
PORTNAME=	jshon
3
PORTNAME=	jshon
4
PORTVERSION=	20131105
4
PORTVERSION=	20160111.2
5
CATEGORIES=	textproc
5
CATEGORIES=	textproc
6
6
7
MAINTAINER=	ports@FreeBSD.org
7
MAINTAINER=	ports@FreeBSD.org
Lines 12-20 Link Here
12
12
13
LIB_DEPENDS=	libjansson.so:devel/jansson
13
LIB_DEPENDS=	libjansson.so:devel/jansson
14
14
15
COMMIT_HASH=	783d3bf
16
GH_TAGNAME=	${COMMIT_HASH}
17
15
USE_GITHUB=	yes
18
USE_GITHUB=	yes
16
GH_ACCOUNT=	keenerd
19
GH_ACCOUNT=	keenerd
17
20
21
OPTIONS_DEFINE=	ZSH
22
OPTIONS_DEFAULT=
23
18
USES=		gmake
24
USES=		gmake
19
25
20
CPPFLAGS+=	-I${LOCALBASE}/include
26
CPPFLAGS+=	-I${LOCALBASE}/include
Lines 22-29 Link Here
22
28
23
PLIST_FILES=	bin/jshon man/man1/jshon.1.gz
29
PLIST_FILES=	bin/jshon man/man1/jshon.1.gz
24
30
31
ZSH_PLIST_FILES=	share/zsh/site-functions/jshon_zsh_completion
32
33
pre-configure:
34
	@${REINPLACE_CMD} -e 's|^\(#define JSHONVER \).*|\1"${PORTVERSION}-${COMMIT_HASH}"|' \
35
	-e 's|\({printf("%\)i\(\\n", JSHONVER); exit(0);}\)|\1s\2|' \
36
	${WRKSRC}/jshon.c
37
25
do-install:
38
do-install:
26
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
39
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
27
	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
40
	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
28
41
42
post-install:
43
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
44
45
post-install-ZSH-on:
46
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
47
	${INSTALL_DATA} ${WRKSRC}/jshon_zsh_completion ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
48
29
.include <bsd.port.mk>
49
.include <bsd.port.mk>
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (keenerd-jshon-20131105_GH0.tar.gz) = 28420f6f02c6b762732898692cc0b0795cfe1a59fbfb24e67b80f332cf6d4fa2
1
SHA256 (keenerd-jshon-20160111.2-783d3bf_GH0.tar.gz) = b50bcab22ff609bf54b09f580b2882a5aa2c1882205b6914d766495e2d4765e8
2
SIZE (keenerd-jshon-20131105_GH0.tar.gz) = 12870
2
SIZE (keenerd-jshon-20160111.2-783d3bf_GH0.tar.gz) = 14123

Return to bug 223280