summaryrefslogtreecommitdiff
path: root/net/hub/Makefile
diff options
context:
space:
mode:
authorleot <leot@pkgsrc.org>2019-01-27 16:09:58 +0000
committerleot <leot@pkgsrc.org>2019-01-27 16:09:58 +0000
commit573dc34ee18bde3af0895286beb568cd85efcdb0 (patch)
tree19ebc17af00f5f53180449d09f20102cb24b5ede /net/hub/Makefile
parentd2d46a549667f600a896a7665ec47b65beacafb6 (diff)
downloadpkgsrc-573dc34ee18bde3af0895286beb568cd85efcdb0.tar.gz
hub: Update to 2.8.3
pkgsrc changes: * Add logic to generate man page via pre-install target instead of generating it manually Changes: ### Changes since v2.7 * New `hub api` command for scripting with GitHub API <https://github.com/github/hub/pull/2016> * Re-implement CLI flag parsing so that `--message <MSG>` is equivalent to `--message=<MSG>` <https://github.com/github/hub/pull/2008> * Re-implement `make man-pages` in Go instead of Ruby <https://github.com/github/hub/pull/1990> * `issue create --label` is now `issue create --labels` to align with existing documentation * Output crash debugging information on stderr instead of stdout * Build improvements: - respect environment LDFLAGS - strip the build path from resulting executable - enable reproducible builds with SOURCE_DATE_EPOCH
Diffstat (limited to 'net/hub/Makefile')
-rw-r--r--net/hub/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/net/hub/Makefile b/net/hub/Makefile
index 29669b79986..21a923d5970 100644
--- a/net/hub/Makefile
+++ b/net/hub/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.17 2019/01/24 10:00:42 bsiegert Exp $
+# $NetBSD: Makefile,v 1.18 2019/01/27 16:09:58 leot Exp $
-DISTNAME= hub-2.7.1
-PKGREVISION= 1
+DISTNAME= hub-2.8.3
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=github/}
GITHUB_TAG= v${PKGVERSION_NOREV}
@@ -19,7 +18,7 @@ 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_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 /'
@@ -27,10 +26,13 @@ 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
+# 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