git: f381a55933c6 - main - devel/transient: Add PDF option and change DOCS option
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Feb 2022 23:50:39 UTC
The branch main has been updated by yasu:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f381a55933c67d9a4d0b9856487ac841299d02c6
commit f381a55933c67d9a4d0b9856487ac841299d02c6
Author: Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2022-02-20 14:13:40 +0000
Commit: Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2022-02-20 23:30:20 +0000
devel/transient: 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/transient/Makefile | 24 +++++++++++++++++++-----
1 file changed, 19 insertions(+), 5 deletions(-)
diff --git a/devel/transient/Makefile b/devel/transient/Makefile
index b55944b9ee4a..136f229e395f 100644
--- a/devel/transient/Makefile
+++ b/devel/transient/Makefile
@@ -1,7 +1,7 @@
PORTNAME= transient
DISTVERSIONPREFIX= v
DISTVERSION= 0.3.7
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel elisp
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX}
@@ -21,9 +21,19 @@ NO_ARCH= yes
INFO= transient
-PORTDOCS= CHANGELOG README.md
+PORTDOCS= CHANGELOG README.md transient.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}/transient.pdf
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
@@ -34,7 +44,11 @@ do-install:
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/docs/CHANGELOG ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.md ${WRKSRC}/docs/CHANGELOG \
+ ${WRKSRC}/docs/transient.html ${STAGEDIR}${DOCSDIR}
+
+do-install-PDF-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/transient.pdf ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>