svn commit: r460887 - in head/textproc/asciidoc: . files

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Sun Feb 4 10:12:41 UTC 2018


Author: sunpoet
Date: Sun Feb  4 10:12:40 2018
New Revision: 460887
URL: https://svnweb.freebsd.org/changeset/ports/460887

Log:
  Ensure the build without network

Added:
  head/textproc/asciidoc/files/
  head/textproc/asciidoc/files/patch-a2x.py   (contents, props changed)
Modified:
  head/textproc/asciidoc/Makefile

Modified: head/textproc/asciidoc/Makefile
==============================================================================
--- head/textproc/asciidoc/Makefile	Sun Feb  4 10:12:35 2018	(r460886)
+++ head/textproc/asciidoc/Makefile	Sun Feb  4 10:12:40 2018	(r460887)
@@ -28,6 +28,7 @@ python2_CMD=	${PYTHON_CMD}
 
 post-patch:
 	@${REINPLACE_CMD} -e '/^INSTALL_PROG/ s|INSTALL_PROGRAM|INSTALL_SCRIPT|; s|\.conf|&.sample|; s|python\( a2x.py\)|${PYTHON_CMD}\1|' ${WRKSRC}/Makefile.in
+	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/a2x.py
 	@${FIND} ${WRKSRC} -name '*.conf' | ${XARGS} -I % ${LN} % %.sample
 
 post-install:

Added: head/textproc/asciidoc/files/patch-a2x.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/asciidoc/files/patch-a2x.py	Sun Feb  4 10:12:40 2018	(r460887)
@@ -0,0 +1,11 @@
+--- a2x.py.orig	2018-01-13 22:10:35 UTC
++++ a2x.py
+@@ -498,7 +498,7 @@ class A2X(AttrDict):
+             self.asciidoc_opts += ' --doctype %s' % self.doctype
+         for attr in self.attributes:
+             self.asciidoc_opts += ' --attribute "%s"' % attr
+-#        self.xsltproc_opts += ' --nonet'
++        self.xsltproc_opts += ' --nonet --path /usr/local/share/xsl/docbook/manpages/'
+         if self.verbose:
+             self.asciidoc_opts += ' --verbose'
+             self.dblatex_opts += ' -V'


More information about the svn-ports-all mailing list