blob: ba93b7687b3fa5ed775e1e624accf6f7ace817ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# $NetBSD: Makefile,v 1.1 2018/02/27 17:08:35 leot Exp $
DISTNAME= hub-2.2.9
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= man/hub.1
SUBST_SED.man+= -e 's/\\fBgit/\\fBhub/g'
SUBST_SED.man+= -e 's/\$$ git/$$ hub/'
SUBST_SED.man+= -e '/\$$ GITHUB_HOST=/ s/ git clone / hub clone /'
SUBST_SED.man+= -e 's/\.SS "git/.SS "hub/'
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
CHECK_RELRO_SKIP+= bin/hub
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/bin/hub ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/hub.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../lang/go/go-package.mk"
.include "../../mk/bsd.pkg.mk"
|