mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
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.
This commit is contained in:
parent
5b0b33cc00
commit
6a1cfd2b6f
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user