aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuhiro Kimura <yasu@FreeBSD.org>2022-02-20 22:26:52 +0000
committerYasuhiro Kimura <yasu@FreeBSD.org>2022-02-20 23:30:43 +0000
commitfba93de2e2d05c6501f70788e25969d9f3b43887 (patch)
tree0c3699242fa026acd3831468377a512a28ab40ec
parent332a6fdabed29282369024a35c7d7388313de295 (diff)
downloadports-fba93de2e2d05c6501f70788e25969d9f3b43887.tar.gz
ports-fba93de2e2d05c6501f70788e25969d9f3b43887.zip
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
-rw-r--r--devel/forge-devel/Makefile28
-rw-r--r--devel/forge-devel/pkg-plist1
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