[123907] trunk/base/doc/Makefile.in

cal at macports.org cal at macports.org
Fri Aug 15 15:42:05 PDT 2014


Revision: 123907
          https://trac.macports.org/changeset/123907
Author:   cal at macports.org
Date:     2014-08-15 15:42:05 -0700 (Fri, 15 Aug 2014)
Log Message:
-----------
base: doc: require docbook-xsl to build manpages. xsltproc will fail without it.

Modified Paths:
--------------
    trunk/base/doc/Makefile.in

Modified: trunk/base/doc/Makefile.in
===================================================================
--- trunk/base/doc/Makefile.in	2014-08-15 22:03:37 UTC (rev 123906)
+++ trunk/base/doc/Makefile.in	2014-08-15 22:42:05 UTC (rev 123907)
@@ -8,8 +8,9 @@
 ASCIIDOC=
 XSLTPROC=
 else
-ASCIIDOC=	$(wildcard ${prefix}/bin/asciidoc)
-XSLTPROC=	$(wildcard ${prefix}/bin/xsltproc)
+ASCIIDOC=    $(wildcard ${prefix}/bin/asciidoc)
+XSLTPROC=    $(wildcard ${prefix}/bin/xsltproc)
+DOCBOOK_XSL= $(wildcard ${prefix}/share/xsl/docbook-xsl/manpages/docbook.xsl)
 endif
 
 ASCIIDOCFLAGS=	-f asciidoc.conf -a manversion=${MACPORTS_VERSION}
@@ -122,7 +123,7 @@
 	ln -sf $(shell basename $$(awk '{print $$2}' < $<)).html $@
 
 # Define these rules only if both asciidoc and xsltproc are available
-ifneq ($(and $(ASCIIDOC),$(XSLTPROC)),)
+ifneq ($(and $(ASCIIDOC),$(XSLTPROC),$(DOCBOOK_XSL)),)
 %: %.xml manpage.xsl
 	$(XSLTPROC) $(XSLTFLAGS) manpage.xsl $<
 
@@ -134,13 +135,13 @@
 else
 man: ${MAN} ${MAN:%=%.gz}
 	@echo "* Warning: Using pre-generated man pages only."
-	@echo "* asciidoc and xsltproc are required to generate man pages from source."
+	@echo "* asciidoc, xsltproc (port libxslt) and docbook-xsl are required to generate man pages from source."
 
 %.xml %.html: | %.txt
 	@echo "* In order to modify and generate output from these source files,"
-	@echo "* please install asciidoc and xsltproc or use"
-	@echo "*   $(MAKE) ASCIIDOC=.../bin/asciidoc XSLTPROC=../bin/xsltproc"
-	@echo "* with appropriate paths."
+	@echo "* please install asciidoc and xsltproc (port libxslt) and docbook-xsl or use"
+	@echo "*   $(MAKE) ASCIIDOC=.../bin/asciidoc XSLTPROC=../bin/xsltproc DOCBOOK_XSL=nonempty"
+	@echo "* with appropriate paths for asciidoc and xsltproc."
 	@exit 1
 endif
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140815/e0a29fb1/attachment.html>


More information about the macports-changes mailing list