git: 9ada097d0bf6 - main - devel/ghub-devel: Add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 01 Aug 2022 16:19:32 UTC
The branch main has been updated by yasu: URL: https://cgit.FreeBSD.org/ports/commit/?id=9ada097d0bf6b8932d6073c49fd59b5cb4159e1b commit 9ada097d0bf6b8932d6073c49fd59b5cb4159e1b Author: Yasuhiro Kimura <yasu@FreeBSD.org> AuthorDate: 2022-08-01 10:34:59 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2022-08-01 16:13:03 +0000 devel/ghub-devel: Add new port Add devel/ghub-devel, development version of client libraries for the APIs of various Git forges. https://github.com/magit/ghub --- devel/Makefile | 1 + devel/ghub-devel/Makefile | 64 ++++++++++++++++++++++++++++++++++++++++++++++ devel/ghub-devel/distinfo | 3 +++ devel/ghub-devel/pkg-descr | 19 ++++++++++++++ devel/ghub-devel/pkg-plist | 15 +++++++++++ devel/ghub/Makefile | 2 ++ 6 files changed, 104 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 200d075b6753..1e7d62e70de7 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -776,6 +776,7 @@ SUBDIR += ghidra SUBDIR += ghq SUBDIR += ghub + SUBDIR += ghub-devel SUBDIR += gindent SUBDIR += gio-sharp SUBDIR += git diff --git a/devel/ghub-devel/Makefile b/devel/ghub-devel/Makefile new file mode 100644 index 000000000000..1f510c5734ba --- /dev/null +++ b/devel/ghub-devel/Makefile @@ -0,0 +1,64 @@ +PORTNAME= ghub +DISTVERSIONPREFIX= v +DISTVERSION= 3.5.6-33 +DISTVERSIONSUFFIX= -g94f5aa2 +CATEGORIES= devel elisp +PKGNAMESUFFIX= -devel${EMACS_PKGNAMESUFFIX} + +MAINTAINER= yasu@FreeBSD.org +COMMENT= Client libraries for the APIs of various Git forges + +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= compat.el${EMACS_PKGNAMESUFFIX}>=28.1.1.0:misc/compat.el@${EMACS_FLAVOR} \ + treepy.el${EMACS_PKGNAMESUFFIX}>=0.1.1:devel/treepy.el@${EMACS_FLAVOR} +RUN_DEPENDS= compat.el${EMACS_PKGNAMESUFFIX}>=28.1.1.0:misc/compat.el@${EMACS_FLAVOR} \ + treepy.el${EMACS_PKGNAMESUFFIX}>=0.1.1:devel/treepy.el@${EMACS_FLAVOR} + +USES= emacs gmake makeinfo +USE_GITHUB= yes +GH_ACCOUNT= magit + +MAKE_ARGS= LOAD_PATH="-L ${PREFIX}/${EMACS_SITE_LISPDIR} -L ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} -L ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/compat -L ." +ALL_TARGET= lisp info + +CONFLICTS_INSTALL= ghub-emacs* + +NO_ARCH= yes + +INFO= ghub +PORTDOCS= CHANGELOG README.org ghub.html + +OPTIONS_DEFINE= DOCS PDF + +PDF_DESC= Build and install PDF document + +DOCS_BUILD_DEPENDS= gsed:textproc/gsed +DOCS_ALL_TARGET= html +DOCS_BINARY_ALIAS= sed=gsed +PDF_BUILD_DEPENDS= texi2pdf:print/texinfo +PDF_USE= TEX=dvipdfmx:build +PDF_ALL_TARGET= pdf +PDF_PLIST_FILES= ${DOCSDIR}/ghub.pdf + +ELISP_FILES= buck.el buck.elc ghub-autoloads.el ghub-graphql.el \ + ghub-graphql.elc ghub.el ghub.elc glab.el glab.elc gogs.el \ + gogs.elc gsexp.el gsexp.elc gtea.el gtea.elc + +do-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME} + ${INSTALL_DATA} ${ELISP_FILES:C/^/${WRKSRC}\/lisp\//} \ + ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/docs/*.info ${STAGEDIR}${PREFIX}/${INFO_PATH} + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${WRKSRC}/README.org \ + ${WRKSRC}/docs/ghub.html ${STAGEDIR}${DOCSDIR} + +do-install-PDF-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/ghub.pdf ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> diff --git a/devel/ghub-devel/distinfo b/devel/ghub-devel/distinfo new file mode 100644 index 000000000000..da9d0d6b133c --- /dev/null +++ b/devel/ghub-devel/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1659350355 +SHA256 (magit-ghub-v3.5.6-33-g94f5aa2_GH0.tar.gz) = ce99027a5783ae85557535e8ca251de14845143887cf3ddfeb384550437fbee2 +SIZE (magit-ghub-v3.5.6-33-g94f5aa2_GH0.tar.gz) = 62306 diff --git a/devel/ghub-devel/pkg-descr b/devel/ghub-devel/pkg-descr new file mode 100644 index 000000000000..1117508cb34f --- /dev/null +++ b/devel/ghub-devel/pkg-descr @@ -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 diff --git a/devel/ghub-devel/pkg-plist b/devel/ghub-devel/pkg-plist new file mode 100644 index 000000000000..361c139c979c --- /dev/null +++ b/devel/ghub-devel/pkg-plist @@ -0,0 +1,15 @@ +%%EMACS_VERSION_SITE_LISPDIR%%/ghub/buck.el +%%EMACS_VERSION_SITE_LISPDIR%%/ghub/buck.elc +%%EMACS_VERSION_SITE_LISPDIR%%/ghub/ghub-autoloads.el +%%EMACS_VERSION_SITE_LISPDIR%%/ghub/ghub-graphql.el +%%EMACS_VERSION_SITE_LISPDIR%%/ghub/ghub-graphql.elc +%%EMACS_VERSION_SITE_LISPDIR%%/ghub/ghub.el +%%EMACS_VERSION_SITE_LISPDIR%%/ghub/ghub.elc +%%EMACS_VERSION_SITE_LISPDIR%%/ghub/glab.el +%%EMACS_VERSION_SITE_LISPDIR%%/ghub/glab.elc +%%EMACS_VERSION_SITE_LISPDIR%%/ghub/gogs.el +%%EMACS_VERSION_SITE_LISPDIR%%/ghub/gogs.elc +%%EMACS_VERSION_SITE_LISPDIR%%/ghub/gsexp.el +%%EMACS_VERSION_SITE_LISPDIR%%/ghub/gsexp.elc +%%EMACS_VERSION_SITE_LISPDIR%%/ghub/gtea.el +%%EMACS_VERSION_SITE_LISPDIR%%/ghub/gtea.elc diff --git a/devel/ghub/Makefile b/devel/ghub/Makefile index a7df54301633..7df6f8212b34 100644 --- a/devel/ghub/Makefile +++ b/devel/ghub/Makefile @@ -21,6 +21,8 @@ GH_ACCOUNT= magit MAKE_ARGS= LOAD_PATH="-L ${PREFIX}/${EMACS_SITE_LISPDIR} -L ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} -L ." ALL_TARGET= lisp info +CONFLICTS_INSTALL= ghub-emacs* + NO_ARCH= yes INFO= ghub