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

(-)devel/gh/Makefile (-5 / +23 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=	gh
3
PORTNAME=	gh
4
DISTVERSIONPREFIX=	v
4
DISTVERSIONPREFIX=	v
5
DISTVERSION=	0.5.2
5
DISTVERSION=	0.5.4
6
CATEGORIES=	devel
6
CATEGORIES=	devel
7
7
8
MAINTAINER=	vulcan@wired.sh
8
MAINTAINER=	vulcan@wired.sh
Lines 51-70 Link Here
51
		-X github.com/${GH_ACCOUNT}/${GH_PROJECT}/command.Version=${BUILD_VERSION} \
51
		-X github.com/${GH_ACCOUNT}/${GH_PROJECT}/command.Version=${BUILD_VERSION} \
52
		-X github.com/${GH_ACCOUNT}/${GH_PROJECT}/command.BuildDate=${BUILD_DATE}"
52
		-X github.com/${GH_ACCOUNT}/${GH_PROJECT}/command.BuildDate=${BUILD_DATE}"
53
53
54
BUILD_HASH=	739b0af
54
BUILD_VERSION=	${DISTVERSION}
55
BUILD_VERSION=	${DISTVERSIONFULL}-${BUILD_HASH}
56
BUILD_DATE=	$$(date +%Y-%m-%d)
55
BUILD_DATE=	$$(date +%Y-%m-%d)
57
56
58
PLIST_FILES=	bin/${PORTNAME}
57
PLIST_FILES=	bin/${PORTNAME} \
58
		etc/bash_completion.d/${PORTNAME}.bash \
59
		share/fish/completions/${PORTNAME}.fish \
60
		share/zsh/site_functions/_${PORTNAME}
59
PORTDOCS=	README.md
61
PORTDOCS=	README.md
60
62
61
OPTIONS_DEFINE=	DOCS
63
OPTIONS_DEFINE=	DOCS
62
64
65
post-build:
66
.for shell in bash zsh fish
67
	${WRKDIR}/bin/${PORTNAME} completion -s ${shell} > ${WRKSRC}/${shell}
68
.endfor
69
70
post-install:
71
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
72
	${INSTALL_DATA} ${WRKSRC}/bash \
73
		${STAGEDIR}${PREFIX}/etc/bash_completion.d/${PORTNAME}.bash
74
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions
75
	${INSTALL_DATA} ${WRKSRC}/fish \
76
		${STAGEDIR}${PREFIX}/share/fish/completions/${PORTNAME}.fish
77
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site_functions
78
	${INSTALL_DATA} ${WRKSRC}/zsh \
79
		${STAGEDIR}${PREFIX}/share/zsh/site_functions/_${PORTNAME}
80
63
post-install-DOCS-on:
81
post-install-DOCS-on:
64
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
82
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
65
	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
83
	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
66
84
67
do-test:
85
do-test:
68
	cd ${GO_WRKSRC} && ${SETENV} ${GO_ENV} ${GO_CMD} test ./...
86
	@cd ${GO_WRKSRC} && ${SETENV} ${GO_ENV} ${GO_CMD} test ./...
69
87
70
.include <bsd.port.mk>
88
.include <bsd.port.mk>
(-)devel/gh/distinfo (-3 / +3 lines)
Lines 1-6 Link Here
1
TIMESTAMP = 1580601780
1
TIMESTAMP = 1581591387
2
SHA256 (cli-cli-v0.5.2_GH0.tar.gz) = bdd7c8681b711d0d1d4dc027c06ab88e89d2f43af40eba6865cad52ee460bec9
2
SHA256 (cli-cli-v0.5.4_GH0.tar.gz) = eacf8dcc085e0a65a76bbc94b8501fd7c2b37e511dd2e24361c02e80e87ba642
3
SIZE (cli-cli-v0.5.2_GH0.tar.gz) = 539355
3
SIZE (cli-cli-v0.5.4_GH0.tar.gz) = 174930
4
SHA256 (AlecAivazis-survey-v2.0.4_GH0.tar.gz) = 6beef8372a03c7461901640ff349214104a27ef36ff8a86416bee01c6794fb1e
4
SHA256 (AlecAivazis-survey-v2.0.4_GH0.tar.gz) = 6beef8372a03c7461901640ff349214104a27ef36ff8a86416bee01c6794fb1e
5
SIZE (AlecAivazis-survey-v2.0.4_GH0.tar.gz) = 1324023
5
SIZE (AlecAivazis-survey-v2.0.4_GH0.tar.gz) = 1324023
6
SHA256 (alecthomas-chroma-v0.6.8_GH0.tar.gz) = b76b5ea13171f286cdb28f2942784fafa69adf8e120ed4e68cd05484428a09b1
6
SHA256 (alecthomas-chroma-v0.6.8_GH0.tar.gz) = b76b5ea13171f286cdb28f2942784fafa69adf8e120ed4e68cd05484428a09b1

Return to bug 244094