Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Feb 2018 10:12:40 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r460887 - in head/textproc/asciidoc: . files
Message-ID:  <201802041012.w14ACeTx023241@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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'



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802041012.w14ACeTx023241>