Added docbook-4.5 for SGML.

This commit is contained in:
Juan RP 2011-06-17 09:02:47 +02:00
parent 31652a8b96
commit f22443991f
10 changed files with 266 additions and 0 deletions

View File

@ -0,0 +1,8 @@
-- Catalog file for Docbook 2.4.1 --
-- DTDDECL "-//Davenport//DTD DocBook V2.4.1//EN" "docbook.dcl" --
PUBLIC "-//Davenport//DTD DocBook V2.4.1//EN" "docbook.dtd"
PUBLIC "-//Davenport//ELEMENTS CALS-Based DocBook Table Model V2.4.1//EN" "calstbl.mod"
PUBLIC "-//Davenport//ELEMENTS DocBook Information Pool V2.4.1//EN" "dbpool.mod"
PUBLIC "-//Davenport//ELEMENTS DocBook Document Hierarchy V2.4.1//EN" "dbhier.mod"
PUBLIC "-//Davenport//ELEMENTS DocBook Additional General Entities//EN" "dbgenent.mod"

View File

@ -0,0 +1,8 @@
-- Catalog file for Docbook 3.0 --
-- DTDDECL "-//Davenport//DTD DocBook V3.0//EN" "docbook.dcl" --
PUBLIC "-//Davenport//DTD DocBook V3.0//EN" "docbook.dtd"
PUBLIC "-//USA-DOD//DTD Table Model 951010//EN" "cals-tbl.dtd"
PUBLIC "-//Davenport//ELEMENTS DocBook Information Pool V3.0//EN" "dbpool.mod"
PUBLIC "-//Davenport//ELEMENTS DocBook Document Hierarchy V3.0//EN" "dbhier.mod"
PUBLIC "-//Davenport//ENTITIES DocBook Additional General Entities V3.0//EN" "dbgenent.mod"

View File

@ -0,0 +1,10 @@
-- Catalog file for Docbook 3.1 --
-- DTDDECL "-//OASIS//DTD DocBook V3.1//EN" "docbook.dcl" --
PUBLIC "-//OASIS//DTD DocBook V3.1//EN" "docbook.dtd"
PUBLIC "-//USA-DOD//DTD Table Model 951010//EN" "cals-tbl.dtd"
PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V3.1//EN" "dbpool.mod"
PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V3.1//EN" "dbhier.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V3.1//EN" "dbgenent.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Notations V3.1//EN" "dbnotn.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V3.1//EN" "dbcent.mod"

View File

@ -0,0 +1,9 @@
-- Catalog file for Docbook 4.0 --
PUBLIC "-//OASIS//DTD DocBook V4.0//EN" "docbook.dtd"
PUBLIC "-//USA-DOD//DTD Table Model 951010//EN" "cals-tbl.dtd"
PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V4.0//EN" "dbpool.mod"
PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.0//EN" "dbhier.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.0//EN" "dbgenent.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.0//EN" "dbnotn.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.0//EN" "dbcent.mod"

View File

@ -0,0 +1,25 @@
-- Catalog file for DocBook V4.1 --
DTDDECL "-//OASIS//DTD DocBook V4.1//EN"
"docbook.dcl"
PUBLIC "-//OASIS//DTD DocBook V4.1//EN"
"docbook.dtd"
PUBLIC "-//USA-DOD//DTD Table Model 951010//EN"
"cals-tbl.dtd"
PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V4.1//EN"
"dbpool.mod"
PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.1//EN"
"dbhier.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.1//EN"
"dbgenent.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.1//EN"
"dbnotn.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.1//EN"
"dbcent.mod"

View File

@ -0,0 +1,28 @@
-- Catalog file for DocBook V4.2 --
PUBLIC "-//OASIS//DTD DocBook V4.2//EN"
"docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"docbookx.dtd"
PUBLIC "-//OASIS//DTD DocBook CALS Table Model V4.2//EN"
"calstblx.dtd"
PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN"
"soextblx.dtd"
PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V4.2//EN"
"dbpoolx.mod"
PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.2//EN"
"dbhierx.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.2//EN"
"dbgenent.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.2//EN"
"dbnotnx.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.2//EN"
"dbcentx.mod"

View File

@ -0,0 +1,31 @@
-- Catalog file for DocBook V4.3 --
PUBLIC "-//OASIS//DTD DocBook V4.3//EN"
"docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"docbookx.dtd"
PUBLIC "-//OASIS//DTD DocBook CALS Table Model V4.3//EN"
"calstblx.dtd"
PUBLIC "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.3//EN"
"htmltblx.mod"
PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN"
"soextblx.dtd"
PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V4.3//EN"
"dbpoolx.mod"
PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.3//EN"
"dbhierx.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.3//EN"
"dbgenent.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.3//EN"
"dbnotnx.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.3//EN"
"dbcentx.mod"

View File

@ -0,0 +1,31 @@
-- Catalog file for DocBook V4.4 --
PUBLIC "-//OASIS//DTD DocBook V4.4//EN"
"docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"docbookx.dtd"
PUBLIC "-//OASIS//DTD DocBook CALS Table Model V4.4//EN"
"calstblx.dtd"
PUBLIC "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN"
"htmltblx.mod"
PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN"
"soextblx.dtd"
PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V4.4//EN"
"dbpoolx.mod"
PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.4//EN"
"dbhierx.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.4//EN"
"dbgenent.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.4//EN"
"dbnotnx.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.4//EN"
"dbcentx.mod"

View File

@ -0,0 +1,31 @@
-- Catalog file for DocBook V4.5 --
PUBLIC "-//OASIS//DTD DocBook V4.5//EN"
"docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"docbookx.dtd"
PUBLIC "-//OASIS//DTD DocBook CALS Table Model V4.5//EN"
"calstblx.dtd"
PUBLIC "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN"
"htmltblx.mod"
PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN"
"soextblx.dtd"
PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V4.5//EN"
"dbpoolx.mod"
PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.5//EN"
"dbhierx.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.5//EN"
"dbgenent.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.5//EN"
"dbnotnx.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.5//EN"
"dbcentx.mod"

85
srcpkgs/docbook/template Normal file
View File

@ -0,0 +1,85 @@
# Template file for 'docbook'
pkgname=docbook
version=4.5
distfiles="
http://www.docbook.org/sgml/$version/$pkgname-$version.zip
http://www.docbook.org/sgml/4.4/$pkgname-4.4.zip
http://www.docbook.org/sgml/4.3/$pkgname-4.3.zip
http://www.docbook.org/sgml/4.2/$pkgname-4.2.zip
http://www.oasis-open.org/docbook/sgml/4.1/docbk41.zip
http://www.oasis-open.org/docbook/sgml/4.0/docbk40.zip
http://www.oasis-open.org/docbook/sgml/3.1/docbk31.zip
http://www.oasis-open.org/docbook/sgml/3.0/docbk30.zip
http://www.oasis-open.org/docbook/sgml/2.4.1/docbk241.zip"
build_style=custom-install
short_desc="SGML DTD designed for computer documentation"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum="
8043e514e80c6c19cb146b5d37937d1305bf3abf9b0097c36df7f70f611cdf43
0ac7960409b032c8e517483523ecb92af4e59196a33b3e2c5617daa22b7a8a6c
88f52fab7bd49b2e8f40c525014129c26a5a4b8bbd1494e00387556ec76f95ee
67ebd2c94b342718c6865d2de60f5d4ff02d77a7e4b0d9e72a48c45f2b2635c3
deaafcf0a3677692e7ad4412c0e41c1db3e9da6cdcdb3dd32b2cc1f9c97d6311
dfef22f109779e4cfaafa27b6d381d975ac05eaafb5b3d4407d7043e310817bb
20261d2771b9a052abfa3d8fab1aa62be05791a010281c566f9073bf0e644538
ecf71cbe8ddbad7494ff520d5b4edf73a428c0b159178cb0cb619cba685e61c6
dbac0694e9bcaec43cab80c755ffb02cf8f613bf785ff8506e5ed72efa76a272"
long_desc="
DocBook provides a system for writing structured documents using
SGML or XML. It is particularly well-suited to books and papers
about computer hardware and software, though it is by no means
limited to them.
In short, DocBook is an easy-to-understand and widely used DTD.
Dozens of organizations use DocBook for millions of pages of
documentation, in various print and online formats, worldwide."
noarch=yes
noextract=yes
Add_dependency full xmlcatmgr
Add_dependency full ISOEnts
Add_dependency build bsdtar
export sgml_entries="
CATALOG /usr/share/sgml/docbook/2.4.1/catalog --
CATALOG /usr/share/sgml/docbook/3.0/catalog --
CATALOG /usr/share/sgml/docbook/3.1/catalog --
CATALOG /usr/share/sgml/docbook/4.0/catalog --
CATALOG /usr/share/sgml/docbook/4.1/catalog --
CATALOG /usr/share/sgml/docbook/4.2/catalog --
CATALOG /usr/share/sgml/docbook/4.3/catalog --
CATALOG /usr/share/sgml/docbook/4.4/catalog --
CATALOG /usr/share/sgml/docbook/4.5/catalog --"
do_install()
{
local ver dir
for ver in 4.2 4.3 4.4 4.5; do
vernodot=$(echo $ver|sed -e "s|\.||g")
dir=${DESTDIR}/usr/share/sgml/docbook/${ver}
install -d -m755 ${dir}
bsdtar xf ${XBPS_SRCDISTDIR}/docbook-${ver}.zip -C ${dir}
install -m644 ${FILESDIR}/catalog${vernodot} ${dir}/catalog
done
for ver in 2.4.1 3.0 3.1 4.0 4.1; do
vernodot=$(echo $ver|sed -e "s|\.||g")
dir=${DESTDIR}/usr/share/sgml/docbook/${ver}
install -d -m755 ${dir}
bsdtar xf ${XBPS_SRCDISTDIR}/docbk${vernodot}.zip -C ${dir}
install -m644 ${FILESDIR}/catalog${vernodot} ${dir}/catalog
done
}
post_stow()
{
# Register SGML catalogs.
cd ${XBPS_MASTERDIR} && ${XBPS_TRIGGERSDIR}/xml-catalog run post-install
}
pre_remove()
{
# Unregister SGML catalogs.
cd ${XBPS_MASTERDIR} && ${XBPS_TRIGGERSDIR}/xml-catalog run pre-remove
}