Date: Sun, 20 Feb 2022 23:50:40 GMT From: Yasuhiro Kimura <yasu@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: d07bdca15651 - main - devel/ghub: Add PDF option and change DOCS option Message-ID: <202202202350.21KNoe4v076980@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by yasu: URL: https://cgit.FreeBSD.org/ports/commit/?id=d07bdca15651c7cf2aba4cbeb75b25eabca28a70 commit d07bdca15651c7cf2aba4cbeb75b25eabca28a70 Author: Yasuhiro Kimura <yasu@FreeBSD.org> AuthorDate: 2022-02-20 17:26:45 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2022-02-20 23:30:27 +0000 devel/ghub: Add PDF option and change DOCS option * Add new option PDF. If it is enabled PDF document is built and installed. * Change DOCS option so HTML document is built and installed if it is enabled. --- devel/ghub/Makefile | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/devel/ghub/Makefile b/devel/ghub/Makefile index f4f2ab52fd63..f64fdc7d0489 100644 --- a/devel/ghub/Makefile +++ b/devel/ghub/Makefile @@ -1,6 +1,7 @@ PORTNAME= ghub DISTVERSIONPREFIX= v DISTVERSION= 3.5.5 +PORTREVISION= 1 CATEGORIES= devel elisp PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX} @@ -23,9 +24,19 @@ ALL_TARGET= lisp info NO_ARCH= yes INFO= ghub -PORTDOCS= CHANGELOG README.md +PORTDOCS= CHANGELOG README.md ghub.html -OPTIONS_DEFINE= DOCS +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 \ @@ -39,6 +50,11 @@ do-install: do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:C/^/${WRKSRC}\//} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${WRKSRC}/README.md \ + ${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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202202350.21KNoe4v076980>