Docbook additonal stuff to complement mingw-w64- versions.

docbook-dsssl - 1.79 - New Package
docbook-mathml - 1.1CR1 - New Package
docbook-sgml - 4.5 - New Package
docbook-sgml31 - 3.1 - New Package (legacy version)
sgml-common - 0.63 - New Package
This commit is contained in:
J. Peter Mugaas 2016-11-21 01:56:43 -05:00
parent d52263e218
commit 35159958d9
13 changed files with 465 additions and 0 deletions

33
docbook-dsssl/PKGBUILD Normal file
View File

@ -0,0 +1,33 @@
# $Id$
# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net>
# shamelessly stolen from Archlinux
pkgname='docbook-dsssl'
pkgver=1.79
pkgrel=1
pkgdesc="DSSSL Stylesheets for DocBook"
arch=('any')
url="http://docbook.sourceforge.net/"
license=('custom')
depends=('sgml-common' 'perl')
install=${pkgname}.install
source=(https://sourceforge.net/projects/docbook/files/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2
docbook-style-dsssl.Makefile)
sha1sums=('0ee935247c9f850e930f3b5c162dbc03915469cd'
'104a665b2c3e1520337533862cbd1c1c55d6e01c')
prepare() {
cd "${pkgname}-${pkgver}"
cp ${srcdir}/docbook-style-dsssl.Makefile Makefile
}
package(){
cd "${pkgname}-${pkgver}"
make install \
BINDIR="${pkgdir}/usr/bin" \
DESTDIR="${pkgdir}/usr/share/sgml/docbook/dsssl-stylesheets-${pkgver}" \
MANDIR="${pkgdir}/usr/share/man"
ln -s dsssl-stylesheets-${pkgver} ${pkgdir}/usr/share/sgml/docbook/dsssl-stylesheets
# license
install -Dm644 README "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

View File

@ -0,0 +1,24 @@
post_install() {
/usr/bin/install-catalog --add \
/etc/sgml/dsssl-docbook-stylesheets.cat \
/usr/share/sgml/docbook/dsssl-stylesheets-1.79/catalog
/usr/bin/install-catalog --add \
/etc/sgml/sgml-docbook.cat \
/etc/sgml/dsssl-docbook-stylesheets.cat
}
post_upgrade() {
post_install $1
}
post_remove() {
/usr/bin/install-catalog --remove \
/etc/sgml/dsssl-docbook-stylesheets.cat \
/usr/share/sgml/docbook/dsssl-stylesheets-1.79/catalog
/usr/bin/install-catalog --remove \
/etc/sgml/sgml-docbook.cat \
/etc/sgml/dsssl-docbook-stylesheets.cat
}

View File

@ -0,0 +1,51 @@
BINDIR = /usr/bin
DESTDIR = /usr/share/sgml/docbook/dsssl-stylesheets-1.74b
MANDIR= /usr/share/man
all: install
install: install-bin install-dtd install-dsl install-img install-misc install-man
install-bin:
mkdir -p $(BINDIR)
install -p bin/collateindex.pl $(BINDIR)
install-man:
mkdir -p $(MANDIR)/man1
install -m 644 -p bin/collateindex.pl.1 $(MANDIR)/man1
install-dtd:
mkdir -p $(DESTDIR)/dtds/{decls,dbdsssl,html,imagelib,olink}
cp -p dtds/decls/docbook.dcl $(DESTDIR)/dtds/decls
cp -p dtds/decls/xml.dcl $(DESTDIR)/dtds/decls
cp -p dtds/dbdsssl/dbdsssl.dtd $(DESTDIR)/dtds/dbdsssl
cp -p dtds/html/dbhtml.dtd $(DESTDIR)/dtds/html
cp -p dtds/html/ISOlat1.gml $(DESTDIR)/dtds/html
cp -p dtds/imagelib/imagelib.dtd $(DESTDIR)/dtds/imagelib
cp -p dtds/olink/olinksum.dtd $(DESTDIR)/dtds/olink
install-dsl:
mkdir -p $(DESTDIR)/{lib,common,html,print,olink}
cp -p lib/dblib.dsl $(DESTDIR)/lib
cp -p common/*.dsl $(DESTDIR)/common
cp -p common/*.ent $(DESTDIR)/common
cp -p html/*.dsl $(DESTDIR)/html
cp -p lib/dblib.dsl $(DESTDIR)/lib
cp -p print/*.dsl $(DESTDIR)/print
cp -p olink/*.dsl $(DESTDIR)/olink
install-img:
mkdir -p $(DESTDIR)/images/callouts
cp -p images/*.gif $(DESTDIR)/images
cp -p images/callouts/*.gif $(DESTDIR)/images/callouts
#install-test:
# mkdir -p $(DESTDIR)/test/{cases,imagelib,xml}
# cp test/*.* $(DESTDIR)/test
# cp test/cases/*.* $(DESTDIR)/test/cases
# cp test/imagelib/*.* $(DESTDIR)/test/imagelib
# cp test/xml/*.* $(DESTDIR)/test/xml
install-misc:
cp -p catalog $(DESTDIR)
cp -p VERSION $(DESTDIR)

20
docbook-mathml/LICENSE Normal file
View File

@ -0,0 +1,20 @@
Copyright (C) 2000, 2001, 2002, 2003, 2004 Organization for the Advancement
of Structured Information Standards (OASIS).
$Id: dbmathml.dtd,v 1.7 2004/07/27 16:08:17 nwalsh Exp $
Permission to use, copy, modify and distribute the DocBook MathML
Module and its accompanying documentation for any purpose and
without fee is hereby granted in perpetuity, provided that the
above copyright notice and this paragraph appear in all copies.
The copyright holders make no representation about the
suitability of the DTD for any purpose. It is provided "as is"
without expressed or implied warranty.
If you modify the DocBook MathML Module in any way, label your DTD
as a variant of DocBook. See the maintenance documentation for
more information.
Please direct all questions, bug reports, or suggestions for
changes to the docbook@lists.oasis-open.org mailing list. For more
information, see http://www.oasis-open.org/docbook/.

20
docbook-mathml/PKGBUILD Normal file
View File

@ -0,0 +1,20 @@
# Maintainer: J. Peter <jpmugaas@suddenlink.net>
# shamelessly stolen from Archlinux
pkgname=docbook-mathml
pkgver=1.1CR1
pkgrel=1
pkgdesc="MathML XML scheme"
arch=('any')
url="http://www.oasis-open.org/docbook/"
license=('MIT')
depends=('libxml2')
install=docbook-mathml.install
source=("http://www.docbook.org/xml/mathml/${pkgver}/dbmathml.dtd" 'LICENSE')
md5sums=('bbf92a1d88ce217d736c222470d6811c'
'78ef5b09cdf606e14f1b04380929abe7')
package() {
install -D -m644 dbmathml.dtd "${pkgdir}/usr/share/xml/docbook/mathml/${pkgver}/dbmathml.dtd"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

View File

@ -0,0 +1,19 @@
post_install() {
if [ ! -e etc/xml/catalog ]; then
xmlcatalog --noout --create etc/xml/catalog
fi
xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook MathML Module V1.1CR1//EN" \
"file:///usr/share/xml/docbook/mathml/1.1CR1/dbmathml.dtd" \
"etc/xml/catalog"
xmlcatalog --noout --add "system" \
"http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd" \
"file:///usr/share/xml/docbook/mathml/1.1CR1/dbmathml.dtd" \
"etc/xml/catalog"
}
post_remove() {
xmlcatalog --noout --del "-//OASIS//DTD DocBook MathML Module V1.1CR1//EN" etc/xml/catalog
xmlcatalog --noout --del "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd" etc/xml/catalog
}

51
docbook-sgml/PKGBUILD Normal file
View File

@ -0,0 +1,51 @@
# $Id$
# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net>
# shamelessly stolen from Archlinux
pkgname=docbook-sgml
pkgver=4.5
pkgrel=1
pkgdesc='Document type definitions for verification of SGML data files against the DocBook rule set.'
arch=('any')
url='http://www.docbook.org/sgml/'
license=('MIT')
depends=('sgml-common')
install='docbook-sgml.install'
source=("http://www.docbook.org/sgml/${pkgver}/docbook-${pkgver}.zip")
sha256sums=('8043e514e80c6c19cb146b5d37937d1305bf3abf9b0097c36df7f70f611cdf43')
build() {
cd "$srcdir"
local DTDDIR="usr/share/sgml/docbook-sgml-$pkgver"
sed -i \
-e '/ISO 8879/d' \
-e '/gml/d' \
docbook.cat
# Add support for previous versions.
cat >> docbook.cat << "EOF"
-- Begin Single Major Version catalog changes --
PUBLIC "-//OASIS//DTD DocBook V4.4//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.3//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.2//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.0//EN" "docbook.dtd"
-- End Single Major Version catalog changes --
EOF
}
package() {
cd "$srcdir"
local DTDDIR="usr/share/sgml/docbook-sgml-$pkgver"
install -dm755 "$pkgdir/$DTDDIR"
install -m644 docbook.cat "$pkgdir/$DTDDIR/catalog"
install -m644 *.dtd *.mod *.dcl "$pkgdir/$DTDDIR"
}

View File

@ -0,0 +1,55 @@
# arg 1: the new package version
pre_install() {
/bin/true
}
# arg 1: the new package version
post_install() {
add_catalog "${1%-*}"
}
# arg 1: the new package version
# arg 2: the old package version
pre_upgrade() {
remove_catalog "${2%-*}"
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
add_catalog "${1%-*}"
}
# arg 1: the old package version
pre_remove() {
remove_catalog "${1%-*}"
}
# arg 1: the old package version
post_remove() {
/bin/true
}
add_catalog() {
install-catalog --add /etc/sgml/sgml-docbook-dtd-$1.cat \
/usr/share/sgml/docbook-sgml-$1/catalog > /dev/null 2>&1
install-catalog --add /etc/sgml/sgml-docbook-dtd-$1.cat \
/etc/sgml/sgml-docbook.cat > /dev/null 2>&1
}
remove_catalog() {
install-catalog --remove /etc/sgml/sgml-docbook-dtd-$1.cat \
/usr/share/sgml/docbook-sgml-$1/catalog > /dev/null 2>&1
install-catalog --remove /etc/sgml/sgml-docbook-dtd-$1.cat \
/etc/sgml/sgml-docbook.cat > /dev/null 2>&1
}
op=$1
shift
$op "$@"
# vim:set syntax=sh ts=4 sw=4 noet:

36
docbook-sgml31/PKGBUILD Normal file
View File

@ -0,0 +1,36 @@
# $Id$
# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net>
# shamelessly stolen from Archlinux
pkgname=docbook-sgml31
pkgver=3.1
pkgrel=1
pkgdesc="Legacy docbook-sgml"
arch=('any')
url='http://www.docbook.org/sgml/'
license=('MIT')
depends=('sgml-common')
install=$pkgname.install
source=("http://www.docbook.org/sgml/${pkgver}/docbk31.zip")
sha256sums=('20261d2771b9a052abfa3d8fab1aa62be05791a010281c566f9073bf0e644538')
build() {
cd "$srcdir"
# This command removes the ENT definitions from the catalog file.
# This command replaces the DTDDECL catalog entry, which is not supported by Linux SGML tools,
# with the SGMLDECL catalog entry.
sed -i -e '/ISO 8879/d' \
-e 's|DTDDECL "-//OASIS//DTD DocBook V3.1//EN"|SGMLDECL|g' \
docbook.cat
}
package() {
cd "$srcdir"
local DTDDIR="usr/share/sgml/docbook-sgml-${pkgver}"
install -dm755 "$pkgdir/$DTDDIR"
install -m644 docbook.cat "$pkgdir/$DTDDIR/catalog"
install -m644 *.dtd *.mod *.dcl "$pkgdir/$DTDDIR"
}

View File

@ -0,0 +1,42 @@
# arg 1: the new package version
post_install() {
add_catalog "${1%-*}"
}
# arg 1: the new package version
# arg 2: the old package version
pre_upgrade() {
remove_catalog "${2%-*}"
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
add_catalog "${1%-*}"
}
# arg 1: the old package version
pre_remove() {
remove_catalog "${1%-*}"
}
add_catalog() {
install-catalog --add /etc/sgml/sgml-docbook-dtd-$1.cat \
/usr/share/sgml/docbook-sgml-$1/catalog > /dev/null 2>&1
install-catalog --add /etc/sgml/sgml-docbook-dtd-$1.cat \
/etc/sgml/sgml-docbook.cat > /dev/null 2>&1
}
remove_catalog() {
install-catalog --remove /etc/sgml/sgml-docbook-dtd-$1.cat \
/usr/share/sgml/docbook-sgml-$1/catalog > /dev/null 2>&1
install-catalog --remove /etc/sgml/sgml-docbook-dtd-$1.cat \
/etc/sgml/sgml-docbook.cat > /dev/null 2>&1
}
op=$1
shift
$op "$@"
# vim:set syntax=sh ts=4 sw=4 noet:

45
sgml-common/PKGBUILD Normal file
View File

@ -0,0 +1,45 @@
# $Id$
# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net>
# shamelessly stolen from Archlinux
pkgname='sgml-common'
pkgver=0.6.3
pkgrel=1
pkgdesc='Tools for maintaining centralized SGML catalogs.'
arch=('any')
url='http://www.docbook.org/xml/'
license=('GPL')
install='sgml-common.install'
depends=('sh')
source=("ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/sgml-common-${pkgver}.tgz"
'sgml-common-0.6.3-manpage-1.patch')
noextract=("sgml-common-${pkgver}.tgz")
sha512sums=('3c4a55f555596b2a6bf6af66c497679226e7b40625ac16832150488311cba7f9fc523435eea5837262a5517f5c09c4c0e07fe4a2cf02184d4027609c26e4bc0c'
'c584ff6e66e1d58456c07849bf96fedd3f1df0b93430f6301c4d4ab9906821dea0cbac82eada19197540b5e31f13febd04fadda5b6e2ba4b0b6ee8f0328292f7')
prepare() {
cd $srcdir
# work around an issue with symbolic links in the tarball.
/usr/bin/bsdtar zxvf $srcdir/sgml-common-${pkgver}.tgz || true
cd "${srcdir}"/${pkgname}-${pkgver}
# The symbolic links themselves were simply linking files from /usr/share/automake to the dist folder.
cp /usr/share/automake-1.15/install-sh .
cp /usr/share/automake-1.15/mkinstalldirs .
cp /usr/share/automake-1.15/missing .
cp /usr/share/automake-1.15/INSTALL .
cp /usr/share/automake-1.15/COPYING .
patch -Np1 -i ../sgml-common-0.6.3-manpage-1.patch
}
build() {
cd "${srcdir}"/${pkgname}-${pkgver}
autoreconf -vfi
./configure --prefix=/usr --sysconfdir=/etc
make
}
package(){
cd "${srcdir}"/${pkgname}-${pkgver}
make DESTDIR="$pkgdir" docdir=/usr/share/doc install
# "$pkgdir/usr/doc" "$pkgdir/usr/share/doc"
}

View File

@ -0,0 +1,14 @@
Submitted By: Thomas Pegg <lnxfreak123 at insightbb dot com>
Date: 2003-11-18
Initial Package Version: 0.6.3
Origin: Thomas Pegg
Description: Fixes syntax of Makefile.am for installation of man pages,
for use with current automake versions 1.7.8 and higher.
diff -Naur sgml-common-0.6.3.orig/doc/man/Makefile.am sgml-common-0.6.3/doc/man/Makefile.am
--- sgml-common-0.6.3.orig/doc/man/Makefile.am 2001-01-30 14:42:22.000000000 +0000
+++ sgml-common-0.6.3/doc/man/Makefile.am 2003-11-18 16:48:47.000000000 +0000
@@ -1,2 +1 @@
-man8dir = $(mandir)/man8
-man8_DATA = *.8
+man_MANS = install-catalog.8

View File

@ -0,0 +1,55 @@
# arg 1: the new package version
pre_install() {
/bin/true
}
# arg 1: the new package version
post_install() {
add_catalog "${1%-*}"
}
# arg 1: the new package version
# arg 2: the old package version
pre_upgrade() {
remove_catalog "${2%-*}"
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
add_catalog "${1%-*}"
}
# arg 1: the old package version
pre_remove() {
remove_catalog "${1%-*}"
}
# arg 1: the old package version
post_remove() {
/bin/true
}
add_catalog() {
install-catalog --add /etc/sgml/sgml-ent.cat \
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog > /dev/null 2>&1
install-catalog --add /etc/sgml/sgml-docbook.cat \
/etc/sgml/sgml-ent.cat > /dev/null 2>&1
}
remove_catalog() {
install-catalog --remove /etc/sgml/sgml-ent.cat \
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog > /dev/null 2>&1
install-catalog --remove /etc/sgml/sgml-docbook.cat \
/etc/sgml/sgml-ent.cat > /dev/null 2>&1
}
op=$1
shift
$op "$@"
# vim:set syntax=sh ts=4 sw=4 noet: