Files
haikuports/app-text/docbook_xsl_stylesheets/docbook_xsl_stylesheets-1.79.2.recipe
2018-08-08 14:24:56 +02:00

69 lines
2.2 KiB
Bash
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
SUMMARY="XSL stylesheets for DocBook XML document instances"
DESCRIPTION="
DocBook is an XML vocabulary that lets you create documents in a \
presentation-neutral form that captures the logical structure of your content. \
Using free tools along with the DocBook XSL stylesheets, you can publish your \
content as HTML pages and PDF files, and in many other formats.
"
HOMEPAGE="http://docbook.sourceforge.net"
COPYRIGHT="
1999-2007 Norman Walsh
2003 Jiří Kosek
2004-2007 Steve Ball
2005-2014 The DocBook Project
2011-2012 O'Reilly Media
"
LICENSE="BSD (3-clause)"
REVISION="2"
SOURCE_URI="https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F$portVersion/docbook-xsl-nons-$portVersion.tar.gz"
CHECKSUM_SHA256="f89425b44e48aad24319a2f0d38e0cb6059fdc7dbaf31787c8346c748175ca8e"
SOURCE_DIR="docbook-xsl-nons-$portVersion"
ARCHITECTURES="any"
PROVIDES="
docbook_xsl_stylesheets = $portVersion
"
BUILD_PREREQUIRES="
cmd:find
cmd:xmlcatalog
"
INSTALL()
{
mkdir -p $dataDir/xml/docbook/xsl-stylesheets-$portVersion
cp -v -R VERSION common eclipse epub extensions fo highlighting html \
htmlhelp images javahelp lib manpages params profiling \
roundtrip slides template tests tools webhelp website \
xhtml xhtml-1_1 $dataDir/xml/docbook/xsl-stylesheets-$portVersion
ln -s VERSION $dataDir/xml/docbook/xsl-stylesheets-$portVersion/VERSION.xsl
mkdir -p $dataDir/xml/catalog
CATALOG=$dataDir/xml/catalog/docbook-xsl
xmlcatalog --noout --create $CATALOG
xmlcatalog --noout --add "rewriteSystem" \
"http://docbook.sourceforge.net/release/xsl/$portVersion" \
"$dataDir/xml/docbook/xsl-stylesheets-$portVersion" \
$CATALOG
xmlcatalog --noout --add "rewriteURI" \
"http://docbook.sourceforge.net/release/xsl/$portVersion" \
"$dataDir/xml/docbook/xsl-stylesheets-$portVersion" \
$CATALOG
xmlcatalog --noout --add "rewriteSystem" \
"http://docbook.sourceforge.net/release/xsl/current" \
"$dataDir/xml/docbook/xsl-stylesheets-$portVersion" \
$CATALOG
xmlcatalog --noout --add "rewriteURI" \
"http://docbook.sourceforge.net/release/xsl/current" \
"$dataDir/xml/docbook/xsl-stylesheets-$portVersion" \
$CATALOG
}