1e49195c5e
pkgsrc changes: - Delete patch-github_editor.go, imported upstream - Adjust SUBST_SEDs commands for the current man page - Manually regen files/hub.1 man page Changes: 2.5.0 ----- Features - Have ci-status also query Checks API Fixes - Do not pass `--cmd' to vi editor to ensure compatibility with older vi - Simplify cherry-picking commits from pull request URLs - Allow single-character branches/tag names in hub compare - Fix hub compare for Enterprise when <USER> is specified - Support remote add -t BRANCH argument - Bash shell completion fixes for git 2.18 - Documentation fixes
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.9 2018/07/14 11:06:17 leot Exp $
|
|
|
|
DISTNAME= hub-2.5.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"
|