# Created by: Simon Olofsson # $FreeBSD: head/devel/hub/Makefile 528232 2020-03-11 13:41:15Z egypcio $ PORTNAME= hub PORTVERSION= 2.14.2 DISTVERSIONPREFIX= v CATEGORIES= devel sysutils MAINTAINER= egypcio@FreeBSD.org COMMENT= Introduces git to GitHub LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= git:devel/git USES= go:modules USE_GITHUB= yes GH_ACCOUNT= github GO_PKGNAME= github.com/github/hub PLIST_FILES= bin/hub \ etc/bash_completion.d/hub \ man/man1/hub.1.gz \ share/fish/completions/hub.fish \ share/zsh/site-functions/_hub post-build: (cd ${GO_WRKSRC} && \ ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} install ${GO_BUILDFLAGS} ${GO_TARGET}/md2roff-bin) (cd ${GO_WRKSRC} && \ ${WRKDIR}/bin/md2roff-bin --manual="hub" --version="${PORTVERSION}" \ --template=${GO_WRKSRC}/man-template.html share/man/man1/*.md) post-install: ${MKDIR} ${STAGEDIR}${MAN1PREFIX}/man/man1 \ ${STAGEDIR}${PREFIX}/etc/bash_completion.d \ ${STAGEDIR}${PREFIX}/share/fish/completions \ ${STAGEDIR}${PREFIX}/share/zsh/site-functions ${INSTALL_DATA} ${WRKSRC}/etc/hub.bash_completion.sh ${STAGEDIR}${PREFIX}/etc/bash_completion.d/hub ${INSTALL_DATA} ${WRKSRC}/etc/hub.fish_completion ${STAGEDIR}${PREFIX}/share/fish/completions/hub.fish ${INSTALL_DATA} ${WRKSRC}/etc/hub.zsh_completion ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_hub ${INSTALL_MAN} ${WRKSRC}/share/man/man1/*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 .include