Browse Source

ap/docbook: Added docbook-5.0.

slackware-14.2
Damien Goutte-Gattat 11 years ago
parent
commit
128d35759e
  1. 33
      ap/docbook/catalog.xml
  2. 2
      ap/docbook/checksums
  3. 118
      ap/docbook/docbook.SlackBuild
  4. 12
      ap/docbook/slack-desc

33
ap/docbook/catalog.xml

@ -0,0 +1,33 @@
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public">
<public publicId="-//OASIS//DTD DocBook XML 5.0//EN" uri="file:///usr/share/xml/docbook/xml-5.0/dtd/docbook.dtd"/>
<system systemId="http://www.oasis-open.org/docbook/xml/5.0/dtd/docbook.dtd" uri="file:///usr/share/xml/docbook/xml-5.0/dtd/docbook.dtd"/>
<system systemId="http://docbook.org/xml/5.0/dtd/docbook.dtd" uri="file:///usr/share/xml/docbook/xml-5.0/dtd/docbook.dtd"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rng" uri="file:///usr/share/xml/docbook/xml-5.0/rng/docbook.rng"/>
<uri name="http://docbook.org/xml/5.0/rng/docbook.rng" uri="file:///usr/share/xml/docbook/xml-5.0/rng/docbook.rng"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rng" uri="file:///usr/share/xml/docbook/xml-5.0/rng/docbookxi.rng"/>
<uri name="http://docbook.org/xml/5.0/rng/docbookxi.rng" uri="file:///usr/share/xml/docbook/xml-5.0/rng/docbookxi.rng"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rnc" uri="file:///usr/share/xml/docbook/xml-5.0/rng/docbook.rnc"/>
<uri name="http://docbook.org/xml/5.0/rng/docbook.rnc" uri="file:///usr/share/xml/docbook/xml-5.0/rng/docbook.rnc"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rnc" uri="file:///usr/share/xml/docbook/xml-5.0/rng/docbookxi.rnc"/>
<uri name="http://docbook.org/xml/5.0/rng/docbookxi.rnc" uri="file:///usr/share/xml/docbook/xml-5.0/rng/docbookxi.rnc"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.0/xsd/docbook.xsd" uri="file:///usr/share/xml/docbook/xml-5.0/xsd/docbook.xsd"/>
<uri name="http://docbook.org/xml/5.0/xsd/docbook.xsd" uri="file:///usr/share/xml/docbook/xml-5.0/xsd/docbook.xsd"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.0/xsd/docbookxi.xsd" uri="file:///usr/share/xml/docbook/xml-5.0/xsd/docbookxi.xsd"/>
<uri name="http://docbook.org/xml/5.0/xsd/docbookxi.xsd" uri="file:///usr/share/xml/docbook/xml-5.0/xsd/docbookxi.xsd"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.0/xsd/xi.xsd" uri="file:///usr/share/xml/docbook/xml-5.0/xsd/xi.xsd"/>
<uri name="http://docbook.org/xml/5.0/xsd/xi.xsd" uri="file:///usr/share/xml/docbook/xml-5.0/xsd/xi.xsd"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.0/xsd/xlink.xsd" uri="file:///usr/share/xml/docbook/xml-5.0/xsd/xlink.xsd"/>
<uri name="http://docbook.org/xml/5.0/xsd/xlink.xsd" uri="file:///usr/share/xml/docbook/xml-5.0/xsd/xlink.xsd"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.0/xsd/xml.xsd" uri="file:///usr/share/xml/docbook/xml-5.0/xsd/xml.xsd"/>
<uri name="http://docbook.org/xml/5.0/xsd/xml.xsd" uri="file:///usr/share/xml/docbook/xml-5.0/xsd/xml.xsd"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.0/sch/docbook.sch" uri="file:///usr/share/xml/docbook/xml-5.0/sch/docbook.sch"/>
<uri name="http://docbook.org/xml/5.0/sch/docbook.sch" uri="file:///usr/share/xml/docbook/xml-5.0/sch/docbook.sch"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.0/docbook.nvdl" uri="file:///usr/share/xml/docbook/xml-5.0/docbook.nvdl"/>
<uri name="http://docbook.org/xml/5.0/docbook.nvdl" uri="file:///usr/share/xml/docbook/xml-5.0/docbook.nvdl"/>
<rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl-ns/current/" rewritePrefix="/usr/share/xml/docbook/xsl-stylesheets-ns-1.76.0/"/>
<rewriteSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl-ns/current/" rewritePrefix="/usr/share/xml/docbook/xsl-stylesheets-ns-1.76.0/"/>
<rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl-ns/1.76.0/" rewritePrefix="/usr/share/xml/docbook/xsl-stylesheets-ns-1.76.0/"/>
<rewriteSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl-ns/1.76.0/" rewritePrefix="/usr/share/xml/docbook/xsl-stylesheets-ns-1.76.0/"/>
</catalog>

2
ap/docbook/checksums

@ -0,0 +1,2 @@
49f274e67efdee771300cba4da1f3e4bc00be1ec docbook-5.0.zip
969772991b61e673580fdbf88daa19b3e91ccc32 docbook-xsl-ns-1.76.0.tar.bz2

118
ap/docbook/docbook.SlackBuild

@ -0,0 +1,118 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2010 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest docbook sourcecode is available at:
# <http://docbook.sourceforge.net/>.
# Source package infos
DBVERSION=5.0
DBARCHIVE=docbook-$DBVERSION.zip
DBURL=http://www.docbook.org/xml/$DBVERSION/$DBARCHIVE
XSLVERSION=1.76.0
XSLARCHIVE=docbook-xsl-ns-$XSLVERSION.tar.bz2
XSLURL=http://downloads.sourceforge.net/docbook/$XSLARCHIVE
# Build infos
NAMEPKG=${NAMEPKG:-docbook}
VERSION=$DBVERSION
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
# Sanity checks
if [ $UID -eq 0 ]; then
echo "You should NOT run this script as ROOT!"
exit 1
fi
if [ ! -d $TMP ]; then
echo "$TMP does not exist or is not a directory!"
exit 1
fi
# Get and verify the source archives
if [ ! -r $DBARCHIVE ]; then
wget -c -O $DBARCHIVE.part "$DBURL"
mv $DBARCHIVE.part $DBARCHIVE
fi
if [ ! -r $XSLARCHIVE ]; then
wget -c -O $XSLARCHIVE.part "$XSLURL"
mv $XSLARCHIVE.part $XSLARCHIVE
fi
sha1sum -c checksums
# Install DocBook schemas
cd $TMP
unzip $CWD/$DBARCHIVE
cd docbook-$DBVERSION
mkdir -p $PKG/usr/share/xml/docbook/xml-$DBVERSION
install -m 644 docbook.nvdl $PKG/usr/share/xml/docbook/xml-$DBVERSION
cp -a dtd rng sch tools xsd $PKG/usr/share/xml/docbook/xml-$DBVERSION
mkdir -p $PKG/usr/doc/docbook-$DBVERSION
install -m 644 ChangeLog $PKG/usr/doc/docbook-$DBVERSION
cp -a docs $PKG/usr/doc/docbook-$DBVERSION
mkdir -p $PKG/etc/xml $PKG/usr/share/xml/docbook \
$PKG/usr/doc/docbook-$DBVERSION
# Install XSL stylesheets
cd $TMP
tar xf $CWD/$XSLARCHIVE
cd docbook-xsl-ns-$XSLVERSION
mkdir -p $PKG/usr/share/xml/docbook/xsl-stylesheets-ns-$XSLVERSION
cp -a common eclipse epub extensions fo highlighting html htmlhelp \
images javahelp lib manpages params profiling roundtrip slides \
template tools webhelp website xhtml xhtml-1_1 VERSION \
$PKG/usr/share/xml/docbook/xsl-stylesheets-ns-$XSLVERSION
install -m 644 AUTHORS BUGS COPYING NEWS* README RELEASE-NOTES* \
TODO $PKG/usr/doc/docbook-$DBVERSION
cp -a docsrc $PKG/usr/doc/docbook-$DBVERSION/xsl-doc
# Install updated XML catalog
install -D -m 644 $CWD/catalog.xml $PKG/etc/xml/docbook5.xml
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Package the tree
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/docbook-$DBVERSION
rm -rf $TMP/docbook-xsl-ns-$XSLVERSION
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else
su -c "$PACKAGING"
fi

12
ap/docbook/slack-desc

@ -0,0 +1,12 @@
|-----handy-ruler------------------------------------------------------|
docbook: docbook (DocBook 5.0 schemas and stylesheets)
docbook:
docbook: This package provides RelaxNG/Schematron schemas for DocBook version
docbook: 5.0 and the corresponding namespace-enabled XSL stylesheets.
docbook:
docbook:
docbook:
docbook:
docbook:
docbook:
docbook:
Loading…
Cancel
Save