pkgsrc/net/hub/Makefile
leot 6b8d441280 hub: Update to 2.10.0
Changes:
2.10.0
------
Features
 - New hub pr list --format fields %pS and %pC for PR state and color
    o %pS: "open", "draft", "merged", or "closed"
    o %pC: green, gray, purple, or red
 - Have commands with rich output respect the --color flag
    o default: --color=auto
    o --color is equivalent to --color=always
    o --color=never disables color for TTYs

Fixes
 - Make man pages parseable with whatis
 - Make hub checkout work independently of remote refspec
2019-02-24 13:14:43 +00:00

42 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.20 2019/02/24 13:14:43 leot Exp $
DISTNAME= hub-2.10.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.md
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
# Generate hub(1) man page
pre-install:
cd ${WRKDIR} && \
./bin/md2roff-bin --manual="hub manual" \
--version=${PKGVERSION_NOREV} \
--template=src/github.com/github/hub/man-template.html \
src/github.com/github/hub/share/man/man1/hub.1.md
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"