svn commit: r501577 - head/net/geoipupdate
Adam Weinberger
adamw at FreeBSD.org
Mon May 13 15:23:42 UTC 2019
Author: adamw
Date: Mon May 13 15:23:41 2019
New Revision: 501577
URL: https://svnweb.freebsd.org/changeset/ports/501577
Log:
Use lowdown to build manpages
Pandoc is a fantastic application. It's wonderful. I use it all the
time to write papers in markdown and have them converted to beautiful
LaTeX-driven PDFs. I have nothing against pandoc.
However, using it to make manpages is like driving a Mack truck down the
driveway to check the mailbox. On my system (8-core all-SSD on ZFS) it
takes nearly 6 hours to build pandoc, and also these days it doesn't
work (see PR below).
Instead, use lowdown to generate the manpages. They don't come out
exactly right, but it's close enough to be usable.
PR: 237878
Modified:
head/net/geoipupdate/Makefile
Modified: head/net/geoipupdate/Makefile
==============================================================================
--- head/net/geoipupdate/Makefile Mon May 13 15:21:40 2019 (r501576)
+++ head/net/geoipupdate/Makefile Mon May 13 15:23:41 2019 (r501577)
@@ -28,11 +28,9 @@ MAKE_ENV+= GOPATH=${WRKSRC} \
OPTIONS_DEFINE= DOCS MANPAGES
OPTIONS_DEFAULT=MANPAGES
-MANPAGES_BUILD_DEPENDS= pandoc:textproc/hs-pandoc
+MANPAGES_BUILD_DEPENDS= lowdown:textproc/lowdown
MANPAGES_PLIST_FILES= man/man1/geoipupdate.1.gz \
man/man5/GeoIP.conf.5.gz
-MANPAGES_USES= perl5
-MANPAGES_USE= perl5:build
PLIST_FILES= bin/geoipupdate \
'@sample etc/GeoIP.conf.sample' \
@@ -41,9 +39,11 @@ PORTDOCS= GeoIP.conf.md geoipupdate.md
post-extract:
${MV} ${WRKSRC}/vendor ${WRKSRC}/src
-
-post-patch-MANPAGES-off:
${REINPLACE_CMD} -e '/make-man-pages.pl/d' ${WRKSRC}/Makefile
+
+do-build-MANPAGES-on:
+ ${LOCALBASE}/bin/lowdown -s -Tman ${WRKSRC}/doc/GeoIP.conf.md > ${WRKSRC}/build/GeoIP.conf.5
+ ${LOCALBASE}/bin/lowdown -s -Tman ${WRKSRC}/doc/geoipupdate.md > ${WRKSRC}/build/geoipupdate.1
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/GeoIP
More information about the svn-ports-all
mailing list