1
0
forked from ports/contrib

docbook-xsl: adopted, updated to version 1.79.1

This commit is contained in:
Matt Housh 2016-02-02 22:56:10 -06:00
parent 37ab1b6d50
commit 4dd70730c7
4 changed files with 1704 additions and 1638 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1 +1 @@
6dd0f89131cc35bf4f2ed105a1c17771 docbook-xsl-1.78.1.tar.bz2
b48cbf929a2ad85e6672f710777ca7bc docbook-xsl-1.79.1.tar.bz2

View File

@ -1,12 +1,10 @@
# Description: A collection of XSL stylesheets that are useful for performing transformations on XML DocBook files.
# URL: http://docbook.sourceforge.net/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: libxslt
## http://www.linuxfromscratch.org/blfs/view/svn/pst/docbook-xsl.html
# Maintainer: Matt Housh, jaeger at crux dot ninja
# Depends on: libxslt docbook-xml
name=docbook-xsl
version=1.78.1
version=1.79.1
release=1
source=(http://downloads.sourceforge.net/project/docbook/$name/$version/$name-$version.tar.bz2)
@ -22,7 +20,7 @@ build() {
xhtml xhtml-1_1 \
$PKG/usr/share/xml/docbook/xsl-stylesheets-$version
ln -s VERSION $PKG/usr/share/xml/docbook/xsl-stylesheets-1.78.1/VERSION.xsl
ln -s VERSION $PKG/usr/share/xml/docbook/xsl-stylesheets-${version}/VERSION.xsl
ln -sf xsl-stylesheets-$version $PKG/usr/share/xml/docbook/xsl-stylesheets
@ -31,7 +29,4 @@ build() {
install -v -m 0755 RELEASE-NOTES* NEWS* \
$PKG/usr/share/doc/docbook-xsl-$version
# documentation
#cp -v -R doc/* $PKG/usr/share/doc/docbook-xsl-$version
}

31
docbook-xsl/post-install Normal file → Executable file
View File

@ -1,31 +1,36 @@
#!/bin/sh
set -e
PREV=1.78.1
CUR=1.79.1
CATALOG=/etc/xml/catalog
if [ ! -d /etc/xml ]; then
install -m 0755 -d /etc/xml
fi
if [ ! -f /etc/xml/catalog ]; then
xmlcatalog --noout --create /etc/xml/catalog
if [ ! -f ${CATALOG} ]; then
xmlcatalog --noout --create ${CATALOG}
fi
xmlcatalog --noout --del "/usr/share/xml/docbook/xsl-stylesheets-${PREV}" \
${CATALOG}
xmlcatalog --noout --add "rewriteSystem" \
"http://docbook.sourceforge.net/release/xsl/1.78.1" \
"/usr/share/xml/docbook/xsl-stylesheets-1.78.1" \
/etc/xml/catalog
"http://docbook.sourceforge.net/release/xsl/${CUR}" \
"/usr/share/xml/docbook/xsl-stylesheets-${CUR}" \
${CATALOG}
xmlcatalog --noout --add "rewriteURI" \
"http://docbook.sourceforge.net/release/xsl/1.78.1" \
"/usr/share/xml/docbook/xsl-stylesheets-1.78.1" \
/etc/xml/catalog
"http://docbook.sourceforge.net/release/xsl/${CUR}" \
"/usr/share/xml/docbook/xsl-stylesheets-${CUR}" \
${CATALOG}
xmlcatalog --noout --add "rewriteSystem" \
"http://docbook.sourceforge.net/release/xsl/current" \
"/usr/share/xml/docbook/xsl-stylesheets-1.78.1" \
/etc/xml/catalog
"/usr/share/xml/docbook/xsl-stylesheets-${CUR}" \
${CATALOG}
xmlcatalog --noout --add "rewriteURI" \
"http://docbook.sourceforge.net/release/xsl/current" \
"/usr/share/xml/docbook/xsl-stylesheets-1.78.1" \
/etc/xml/catalog
"/usr/share/xml/docbook/xsl-stylesheets-${CUR}" \
${CATALOG}