Docbook 5.0 adds an XML namespace to the specification. The docbook-xsl
stylesheets are not namespace aware, and strip the namespace prior to
transforming XML. The docbook-xsl-ns stylesheets solve this issue.
ClosesHomebrew/homebrew#14064.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Rather than download a shell script and tell users to run it with
`sudo`, it is better to keep everything under Homebrew's control.
Luckily, the XML toolchain provides the environment variable
XML_CATALOG_FILES to allow files otehr than /etc/xml/catalog to be used.
So remove the shell script, and do all the work inside the formula
itself. When we're done, we just tell the user to add
HOMEBREW_PREFIX/etc/xml/catalog to their shell configuration, rather
than tell them to `sudo docbook-register`.
Rather than download the shell script, just download docbook 5.0, which
we need anyway.
This also simplifies the logic in a handful of docbook-using formula.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
DocBook is XML. A lot of XML.
Unfortunately, to some people, it is still used by a lot of projects,
like git, to generate their documentation, and not all of these, like
everything except git, provide pre-built documentation for download.
This formula installs all currently released docbook-xml and the most
recent docbook-xsl package and stuffs them all in the Cellar. In
addition, a script is provided that registers all of these packages in
the global XML catalog, as noted in the caveats.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>