git: 6a1cfd2b6f29 - main - editors/with-editor: Add PDF option and change DOCS option
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Feb 2022 23:50:37 UTC
The branch main has been updated by yasu: URL: https://cgit.FreeBSD.org/ports/commit/?id=6a1cfd2b6f293188b6ca0d9c7cf7d7d02753f04a commit 6a1cfd2b6f293188b6ca0d9c7cf7d7d02753f04a Author: Yasuhiro Kimura <yasu@FreeBSD.org> AuthorDate: 2022-02-20 13:23:31 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2022-02-20 23:30:15 +0000 editors/with-editor: 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. --- editors/with-editor/Makefile | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/editors/with-editor/Makefile b/editors/with-editor/Makefile index dde7b0646c9b..6b1144e7d2c5 100644 --- a/editors/with-editor/Makefile +++ b/editors/with-editor/Makefile @@ -3,6 +3,7 @@ PORTNAME= with-editor DISTVERSIONPREFIX= v DISTVERSION= 3.2.0 +PORTREVISION= 1 CATEGORIES= editors elisp PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX} @@ -24,9 +25,19 @@ INFO= with-editor PLIST_FILES= ${EMACS_VERSION_SITE_LISPDIR}/with-editor-autoloads.el \ ${EMACS_VERSION_SITE_LISPDIR}/with-editor.el \ ${EMACS_VERSION_SITE_LISPDIR}/with-editor.elc -PORTDOCS= README.md +PORTDOCS= AUTHORS.md README.md with-editor.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}/with-editor.pdf do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} @@ -36,6 +47,11 @@ do-install: do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${WRKSRC}/docs/AUTHORS.md \ + ${WRKSRC}/docs/with-editor.html ${STAGEDIR}${DOCSDIR} + +do-install-PDF-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/with-editor.pdf ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk>