git: fba93de2e2d0 - main - devel/forge-devel: Add PDF option and change DOCS option
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Feb 2022 23:50:44 UTC
The branch main has been updated by yasu: URL: https://cgit.FreeBSD.org/ports/commit/?id=fba93de2e2d05c6501f70788e25969d9f3b43887 commit fba93de2e2d05c6501f70788e25969d9f3b43887 Author: Yasuhiro Kimura <yasu@FreeBSD.org> AuthorDate: 2022-02-20 22:26:52 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2022-02-20 23:30:43 +0000 devel/forge-devel: 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. * Add NO_ARCH --- devel/forge-devel/Makefile | 28 +++++++++++++++++++++++----- devel/forge-devel/pkg-plist | 1 + 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/devel/forge-devel/Makefile b/devel/forge-devel/Makefile index db0379e06b50..4a9fd26743cf 100644 --- a/devel/forge-devel/Makefile +++ b/devel/forge-devel/Makefile @@ -2,6 +2,7 @@ PORTNAME= forge DISTVERSIONPREFIX= v DISTVERSION= 0.3.0-44 DISTVERSIONSUFFIX= -g43055ac +PORTREVISION= 1 CATEGORIES= devel elisp PKGNAMESUFFIX= -devel${EMACS_PKGNAMESUFFIX} @@ -33,19 +34,31 @@ USE_GITHUB= yes GH_ACCOUNT= magit MAKE_ENV+= INSTALL_INFO=install-info \ - LOAD_PATH="${_LOAD_PATH}" + LOAD_PATH="${LOAD_PATH}" # Parallel build fails if Emacs is built with native compilation enabled MAKE_JOBS_UNSAFE= yes ALL_TARGET= lisp info CONFLICTS= forge-emacs* +NO_ARCH= yes + INFO= forge -PORTDOCS= README.md +PORTDOCS= CHANGELOG README.md forge.html + +OPTIONS_DEFINE= DOCS PDF +OPTIONS_SUB= yes + +PDF_DESC= Build and install PDF document -OPTIONS_DEFINE= DOCS +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 -_LOAD_PATH= -L ${PREFIX}/${EMACS_SITE_LISPDIR} -L \ +LOAD_PATH= -L ${PREFIX}/${EMACS_SITE_LISPDIR} -L \ ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} -L \ ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/closql -L \ ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/emacsql -L \ @@ -60,6 +73,11 @@ do-install: do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${WRKSRC}/README.md \ + ${WRKSRC}/docs/forge.html ${STAGEDIR}${DOCSDIR} + +do-install-PDF-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/forge.pdf ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/devel/forge-devel/pkg-plist b/devel/forge-devel/pkg-plist index 1158b77cdf44..14bebdd0f4f5 100644 --- a/devel/forge-devel/pkg-plist +++ b/devel/forge-devel/pkg-plist @@ -35,3 +35,4 @@ %%EMACS_VERSION_SITE_LISPDIR%%/forge/forge-topic.elc %%EMACS_VERSION_SITE_LISPDIR%%/forge/forge.el %%EMACS_VERSION_SITE_LISPDIR%%/forge/forge.elc +%%PDF%%%%DOCSDIR%%/forge.pdf