diff options
author | leot <leot@pkgsrc.org> | 2018-02-27 17:08:35 +0000 |
---|---|---|
committer | leot <leot@pkgsrc.org> | 2018-02-27 17:08:35 +0000 |
commit | 3a9f7f6d3dc00835b0f30ce0d5bb0d2e8ca698ab (patch) | |
tree | 797086307815184836169263a2ee0e72dc952d73 /net/hub | |
parent | d7e4beb351337a2c37e10f87b256cfd9e3f303f3 (diff) | |
download | pkgsrc-3a9f7f6d3dc00835b0f30ce0d5bb0d2e8ca698ab.tar.gz |
hub: Import hub-2.2.9 as net/hub
hub is a command line tool that wraps git in order to extend it
with extra features and commands that make working with GitHub
easier.
$ hub clone rtomayko/tilt
# expands to:
$ git clone git://github.com/rtomayko/tilt.git
hub is best aliased as `git', so you can type `git <command>' in the
shell and get all the usual hub features.
Diffstat (limited to 'net/hub')
-rw-r--r-- | net/hub/DESCR | 10 | ||||
-rw-r--r-- | net/hub/Makefile | 36 | ||||
-rw-r--r-- | net/hub/PLIST | 3 | ||||
-rw-r--r-- | net/hub/distinfo | 6 |
4 files changed, 55 insertions, 0 deletions
diff --git a/net/hub/DESCR b/net/hub/DESCR new file mode 100644 index 00000000000..6b99e90812d --- /dev/null +++ b/net/hub/DESCR @@ -0,0 +1,10 @@ +hub is a command line tool that wraps git in order to extend it +with extra features and commands that make working with GitHub +easier. + + $ hub clone rtomayko/tilt + # expands to: + $ git clone git://github.com/rtomayko/tilt.git + +hub is best aliased as `git', so you can type `git <command>' in the +shell and get all the usual hub features. diff --git a/net/hub/Makefile b/net/hub/Makefile new file mode 100644 index 00000000000..ba93b7687b3 --- /dev/null +++ b/net/hub/Makefile @@ -0,0 +1,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" diff --git a/net/hub/PLIST b/net/hub/PLIST new file mode 100644 index 00000000000..bd853df8e97 --- /dev/null +++ b/net/hub/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1 2018/02/27 17:08:35 leot Exp $ +bin/hub +man/man1/hub.1 diff --git a/net/hub/distinfo b/net/hub/distinfo new file mode 100644 index 00000000000..15c9a66f343 --- /dev/null +++ b/net/hub/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2018/02/27 17:08:35 leot Exp $ + +SHA1 (hub-2.2.9.tar.gz) = 2389395a7f64bdc122a48d513e03b7b751f0389d +RMD160 (hub-2.2.9.tar.gz) = eb83e4d6ec843d485d56da7b2e862e32ba328f3b +SHA512 (hub-2.2.9.tar.gz) = eec9624e77937787b2a8c6a70ae0cb0ffd5db021c665e8e3b9d0b1293ea3f54b1d540cd1e9a45569967b2e5e16ee41289479a19c9fc0868076e904755a7d2438 +Size (hub-2.2.9.tar.gz) = 318298 bytes |