Skip to content

Commit

Permalink
Add DocBook 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
BoQsc authored Aug 5, 2021
1 parent 47fd8ad commit 370fe21
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 0 deletions.
31 changes: 31 additions & 0 deletions DocBook-XML-DTD/4.3/Recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Recipe (MakeRecipe) for DocBook-XML-DTD by Andreas Köhler <[email protected]>, on Fri Aug 15 07:54:42 CEST 2008
# Recipe for version 4.3 by Andreas Köhler <[email protected]>, on Fri Aug 15 07:54:42 CEST 2008
compile_version=1.11.2
url="http://docbook.org/xml/string_pointer_copy/docbook-xml-string_pointer_copy.zip"
file_size=98497
file_md5=AB200202B9E136A144DB1E0864C45074
unpack_files=files_in_root
recipe_type=manifest
#dir=docbook-xml-4.3
manifest=(
docbook.cat:share/xml/docbook/xml-dtd-4.3/.
calstblx.dtd:share/xml/docbook/xml-dtd-4.3/.
docbookx.dtd:share/xml/docbook/xml-dtd-4.3/.
soextblx.dtd:share/xml/docbook/xml-dtd-4.3/.
dbcentx.mod:share/xml/docbook/xml-dtd-4.3/.
dbgenent.mod:share/xml/docbook/xml-dtd-4.3/.
dbhierx.mod:share/xml/docbook/xml-dtd-4.3/.
dbnotnx.mod:share/xml/docbook/xml-dtd-4.3/.
dbpoolx.mod:share/xml/docbook/xml-dtd-4.3/.
htmltblx.mod:share/xml/docbook/xml-dtd-4.3/.
ent:share/xml/docbook/xml-dtd-4.3/ent
)
pre_link() {
cp -v -af *.dtd ent/ *.mod $target/share/xml/docbook/xml-dtd-4.3/
}
sandbox_options=(
--allow-leftovers
)
unmanaged_files=(
$goboVariable/lib/xml
)
1 change: 1 addition & 0 deletions DocBook-XML-DTD/4.3/Resources/BuildDependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Unzip
1 change: 1 addition & 0 deletions DocBook-XML-DTD/4.3/Resources/BuildInformation
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 2 additions & 0 deletions DocBook-XML-DTD/4.3/Resources/Dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
LibXML2 >= 2.6.0
Scripts >= 2.9.5
5 changes: 5 additions & 0 deletions DocBook-XML-DTD/4.3/Resources/Description
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Name] DocBook-XML-DTD
[Summary] XML DTDs for DocBook V4.3
[Description] DocBook is a general purpose XML and SGML document type particularly well suited to books and papers about computer hardware and software (though it is by no means limited to these applications). This package contains the XML DTDs for it.
[License] MIT/X Consortium License
[Homepage] http://www.oasis-open.org/docbook/
27 changes: 27 additions & 0 deletions DocBook-XML-DTD/4.3/Resources/PostInstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/sh

# source GoboPath, just in case somebody wants to launch this script from the shell
source GoboPath

mkdir -p $goboVariable/lib/xml

# Create (or update) the $goboVariable/lib/xml/docbook catalog file
if [ ! -e $goboVariable/lib/xml/docbook ]; then
xmlcatalog --noout --create $goboVariable/lib/xml/docbook
fi

# Create (or update) the $goboVariable/lib/xml/catalog catalog file
if [ ! -e $goboVariable/lib/xml/catalog ]; then
xmlcatalog --noout --create $goboVariable/lib/xml/catalog
fi

# Update the catalog files
xmlcatalogdata=$(dirname $(readlink -f $0))/XmlCatalogData
cat "$xmlcatalogdata" | sed -e 's,${target},/usr,g' -e "s,\${goboVariable},$goboVariable,g" | while read line
do
entrytype=$(echo "$line" | cut -d\; -f1)
entryorig=$(echo "$line" | cut -d\; -f2)
entryreplace=$(echo "$line" | cut -d\; -f3)
catalogfile=$(echo "$line" | cut -d\; -f4)
xmlcatalog --noout --add "$entrytype" "$entryorig" "$entryreplace" "$catalogfile"
done
35 changes: 35 additions & 0 deletions DocBook-XML-DTD/4.3/Resources/XmlCatalogData
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
public;-//OASIS//DTD DocBook XML V4.3//EN;http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd;${goboVariable}/lib/xml/docbook
public;-//OASIS//DTD DocBook XML CALS Table Model V4.3//EN;file://${target}/share/xml/docbook/xml-dtd-4.3/calstblx.dtd;${goboVariable}/lib/xml/docbook
public;-//OASIS//DTD DocBook XML Exchange Table Model 19990315//EN;file://${target}/share/xml/docbook/xml-dtd-4.3/soextblx.dtd;${goboVariable}/lib/xml/docbook
public;-//OASIS//ELEMENTS DocBook XML Information Pool V4.3//EN;file://${target}/share/xml/docbook/xml-dtd-4.3/dbpoolx.mod;${goboVariable}/lib/xml/docbook
public;-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.3//EN;file://${target}/share/xml/docbook/xml-dtd-4.3/dbhierx.mod;${goboVariable}/lib/xml/docbook
public;-//OASIS//ELEMENTS DocBook XML HTML Tables V4.3//EN;file://${target}/share/xml/docbook/xml-dtd-4.3/htmltblx.mod;${goboVariable}/lib/xml/docbook
public;-//OASIS//ENTITIES DocBook XML Notations V4.3//EN;file://${target}/share/xml/docbook/xml-dtd-4.3/dbnotnx.mod;${goboVariable}/lib/xml/docbook
public;-//OASIS//ENTITIES DocBook XML Character Entities V4.3//EN;file://${target}/share/xml/docbook/xml-dtd-4.3/dbcentx.mod;${goboVariable}/lib/xml/docbook
public;-//OASIS//ENTITIES DocBook XML Additional General Entities V4.3//EN;file://${target}/share/xml/docbook/xml-dtd-4.3/dbgenent.mod;${goboVariable}/lib/xml/docbook
rewriteSystem;http://www.oasis-open.org/docbook/xml/4.3;file://${target}/share/xml/docbook/xml-dtd-4.3;${goboVariable}/lib/xml/docbook
rewriteURI;http://www.oasis-open.org/docbook/xml/4.3;file://${target}/share/xml/docbook/xml-dtd-4.3;${goboVariable}/lib/xml/docbook
delegatePublic;-//OASIS//ENTITIES DocBook XML;file://${goboVariable}/lib/xml/docbook;${goboVariable}/lib/xml/catalog
delegatePublic;-//OASIS//DTD DocBook XML;file://${goboVariable}/lib/xml/docbook;${goboVariable}/lib/xml/catalog
delegateSystem;http://www.oasis-open.org/docbook/;file://${goboVariable}/lib/xml/docbook;${goboVariable}/lib/xml/catalog
delegateURI;http://www.oasis-open.org/docbook/;file://${goboVariable}/lib/xml/docbook;${goboVariable}/lib/xml/catalog
public;-//OASIS//DTD DocBook XML V4.1.2//EN;http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd;${goboVariable}/lib/xml/docbook
public;-//OASIS//DTD DocBook XML V4.2//EN;http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd;${goboVariable}/lib/xml/docbook
public;-//OASIS//DTD DocBook XML V4.3//EN;http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd;${goboVariable}/lib/xml/docbook
public;-//OASIS//DTD DocBook XML V4.4//EN;http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd;${goboVariable}/lib/xml/docbook
rewriteSystem;http://www.oasis-open.org/docbook/xml/4.1.2;file://${target}/share/xml/docbook/xml-dtd-4.3;${goboVariable}/lib/xml/docbook
rewriteSystem;http://www.oasis-open.org/docbook/xml/4.2;file://${target}/share/xml/docbook/xml-dtd-4.3;${goboVariable}/lib/xml/docbook
rewriteSystem;http://www.oasis-open.org/docbook/xml/4.3;file://${target}/share/xml/docbook/xml-dtd-4.3;${goboVariable}/lib/xml/docbook
rewriteSystem;http://www.oasis-open.org/docbook/xml/4.4;file://${target}/share/xml/docbook/xml-dtd-4.3;${goboVariable}/lib/xml/docbook
rewriteURI;http://www.oasis-open.org/docbook/xml/4.1.2;file://${target}/share/xml/docbook/xml-dtd-4.3;${goboVariable}/lib/xml/docbook
rewriteURI;http://www.oasis-open.org/docbook/xml/4.2;file://${target}/share/xml/docbook/xml-dtd-4.3;${goboVariable}/lib/xml/docbook
rewriteURI;http://www.oasis-open.org/docbook/xml/4.3;file://${target}/share/xml/docbook/xml-dtd-4.3;${goboVariable}/lib/xml/docbook
rewriteURI;http://www.oasis-open.org/docbook/xml/4.4;file://${target}/share/xml/docbook/xml-dtd-4.3;${goboVariable}/lib/xml/docbook
delegateSystem;http://www.oasis-open.org/docbook/xml/4.1.2;file://${goboVariable}/lib/xml/docbook;${goboVariable}/lib/xml/catalog
delegateSystem;http://www.oasis-open.org/docbook/xml/4.2;file://${goboVariable}/lib/xml/docbook;${goboVariable}/lib/xml/catalog
delegateSystem;http://www.oasis-open.org/docbook/xml/4.3;file://${goboVariable}/lib/xml/docbook;${goboVariable}/lib/xml/catalog
delegateSystem;http://www.oasis-open.org/docbook/xml/4.4;file://${goboVariable}/lib/xml/docbook;${goboVariable}/lib/xml/catalog
delegateURI;http://www.oasis-open.org/docbook/xml/4.1.2;file://${goboVariable}/lib/xml/docbook;${goboVariable}/lib/xml/catalog
delegateURI;http://www.oasis-open.org/docbook/xml/4.2;file://${goboVariable}/lib/xml/docbook;${goboVariable}/lib/xml/catalog
delegateURI;http://www.oasis-open.org/docbook/xml/4.3;file://${goboVariable}/lib/xml/docbook;${goboVariable}/lib/xml/catalog
delegateURI;http://www.oasis-open.org/docbook/xml/4.4;file://${goboVariable}/lib/xml/docbook;${goboVariable}/lib/xml/catalog

0 comments on commit 370fe21

Please sign in to comment.