New port, devel/ghub: Minuscule client library for the Github API

WWW: https://github.com/magit/ghub

PR:		227135
Submitted by:	yasu@utahime.org (maintainer)
This commit is contained in:
Joseph Mingrone 2018-04-02 21:19:20 +00:00
parent 21830c187d
commit bd2d7975b9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=466263
4 changed files with 62 additions and 0 deletions

View File

@ -740,6 +740,7 @@
SUBDIR += gettext-runtime
SUBDIR += gettext-tools
SUBDIR += gflags
SUBDIR += ghub
SUBDIR += giggle
SUBDIR += gindent
SUBDIR += gio-sharp

39
devel/ghub/Makefile Normal file
View File

@ -0,0 +1,39 @@
# $FreeBSD$
PORTNAME= ghub
PORTVERSION= 2.0.0
DISTVERSIONPREFIX= v
CATEGORIES= devel elisp
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX}
MAINTAINER= yasu@utahime.org
COMMENT= Minuscule client library for the Github API
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= emacs gmake makeinfo
USE_GITHUB= yes
GH_ACCOUNT= magit
INFO= ghub
NO_ARCH= yes
PORTDOCS= README.md
PLIST_FILES= ${EMACS_VERSION_SITE_LISPDIR}/ghub.el \
${EMACS_VERSION_SITE_LISPDIR}/ghub.elc \
${EMACS_VERSION_SITE_LISPDIR}/ghub-autoloads.el
OPTIONS_DEFINE= DOCS
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
${INSTALL_DATA} ${WRKSRC}/ghub*.el* \
${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.info ${STAGEDIR}${PREFIX}/${INFO_PATH}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

3
devel/ghub/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1522501604
SHA256 (magit-ghub-v2.0.0_GH0.tar.gz) = 6c77664c36258a5af756781c0c8c9cba8f069a001974a8c443422802661f2bff
SIZE (magit-ghub-v2.0.0_GH0.tar.gz) = 48150

19
devel/ghub/pkg-descr Normal file
View File

@ -0,0 +1,19 @@
Ghub is a library that provides basic support for using the Github
REST (v3) and GraphQL (v4) APIs from Emacs packages. It abstracts
access to API resources using only a handful of functions that are not
resource-specific.
Ghub handles the creation, storage and use of access tokens using a
setup wizard to make it easier for users to get started and to reduce
the support burden imposed on package maintainers. It also comes with
a comprehensive manual to address the cases when things don't just
work as expected or in case you don't want to use the wizard.
Ghub is intentionally limited to only provide these two essential
features - basic request functions and guided setup - to avoid being
too opinionated, which would hinder wide adoption. It is assumed that
wide adoption would make life easier for users and maintainers alike,
because then all packages that talk to the Github API could be
configured the same way.
WWW: https://github.com/magit/ghub