# $NetBSD: Makefile,v 1.11 2018/10/31 08:35:32 leot Exp $ DISTNAME= hub-2.6.0 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_GITHUB:=github/} GITHUB_TAG= v${PKGVERSION_NOREV} MAINTAINER= leot@NetBSD.org HOMEPAGE= https://hub.github.com/ COMMENT= hub helps you win at git LICENSE= mit GO_DIST_BASE= ${DISTNAME} GO_SRCPATH= github.com/github/hub DEPENDS+= git-base>=1.7.3:../../devel/git-base SUBST_CLASSES+= man SUBST_STAGE.man= pre-configure SUBST_MESSAGE.man= Fix hub name in hub(1) man page SUBST_FILES.man= share/man/man1/hub.1 SUBST_SED.man+= -e 's/\$$ git/$$ hub/' SUBST_SED.man+= -e '/\$$ GITHUB_HOST=/ s/ git clone / hub clone /' INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 CHECK_RELRO_SKIP+= bin/hub # XXX: To avoid to (tool_)depends on devel/ruby-ronn, we (manually) generate # XXX: it via `ronn' and copy it to FILESDIR. pre-patch: ${CP} ${FILESDIR}/hub.1 ${WRKSRC}/share/man/man1 do-install: ${INSTALL_PROGRAM} ${WRKDIR}/bin/hub ${DESTDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/share/man/man1/hub.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 .include "../../lang/go/go-package.mk" .include "../../mk/bsd.pkg.mk"