diff options
author | davidovski <david@davidovski.xyz> | 2022-02-01 20:05:27 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-02-01 20:05:27 +0000 |
commit | 688133d42de652808bebc2032660e529cab3546b (patch) | |
tree | 2601a95811bdd8b5d30fdbb746823661e6a6531b | |
parent | 7f9ffb0e9f0f73de7b636d99f72393955c02248f (diff) |
added docbook xml and xsl
-rw-r--r-- | repo/devel/docbook-xml.xibuild | 131 | ||||
-rw-r--r-- | repo/devel/docbook-xsl.xibuild | 71 | ||||
-rw-r--r-- | repo/system/glib.xibuild | 2 |
3 files changed, 203 insertions, 1 deletions
diff --git a/repo/devel/docbook-xml.xibuild b/repo/devel/docbook-xml.xibuild new file mode 100644 index 0000000..bda441c --- /dev/null +++ b/repo/devel/docbook-xml.xibuild @@ -0,0 +1,131 @@ +#!/bin/bash + +MAKEDEPS=() +DEPS=(libxml2) + +PKG_VER=5.1 +SOURCE=https://docbook.org/xml/$PKG_VER/docbook-v$PKG_VER-os.zip +DESC="A widely used XML scheme for writing documentation and help" + +package () { + install -vdm755 $PKG_DEST/usr/share/xml/docbook/schema/{rng,sch}/$PKG_VER && + install -m644 schemas/rng/* $PKG_DEST/usr/share/xml/docbook/schema/rng/$PKG_VER && + install -m644 schemas/sch/* $PKG_DEST/usr/share/xml/docbook/schema/sch/$PKG_VER && + install -m755 tools/db4-entities.pl $PKG_DEST/usr/bin && + install -vdm755 $PKG_DEST/usr/share/xml/docbook/stylesheet/docbook5 && + install -m644 tools/db4-upgrade.xsl \ + $PKG_DEST/usr/share/xml/docbook/stylesheet/docbook5 + + + if [ ! -e /etc/xml/docbook-$PKG_VER ]; then + xmlcatalog --noout --create /etc/xml/docbook-$PKG_VER +fi && + +xmlcatalog --noout --add "uri" \ + "http://www.oasis-open.org/docbook/xml/$PKG_VER/rng/docbook.rng" \ + "file:///usr/share/xml/docbook/schema/rng/$PKG_VER/docbook.rng" \ + $PKG_DEST/etc/xml/docbook-$PKG_VER && +xmlcatalog --noout --add "uri" \ + "http://docbook.org/xml/$PKG_VER/rng/docbook.rng" \ + "file:///usr/share/xml/docbook/schema/rng/$PKG_VER/docbook.rng" \ + $PKG_DEST/etc/xml/docbook-$PKG_VER && +xmlcatalog --noout --add "uri" \ + "http://www.oasis-open.org/docbook/xml/$PKG_VER/rng/docbookxi.rng" \ + "file:///usr/share/xml/docbook/schema/rng/$PKG_VER/docbookxi.rng" \ + $PKG_DEST/etc/xml/docbook-$PKG_VER && +xmlcatalog --noout --add "uri" \ + "http://docbook.org/xml/$PKG_VER/rng/docbookxi.rng" \ + "file:///usr/share/xml/docbook/schema/rng/$PKG_VER/docbookxi.rng" \ + $PKG_DEST/etc/xml/docbook-$PKG_VER && +xmlcatalog --noout --add "uri" \ + "http://www.oasis-open.org/docbook/xml/$PKG_VER/rnc/docbook.rnc" \ + "file:///usr/share/xml/docbook/schema/rng/$PKG_VER/docbook.rnc" \ + $PKG_DEST/etc/xml/docbook-$PKG_VER && +xmlcatalog --noout --add "uri" \ + "http://docbook.org/xml/$PKG_VER/rng/docbook.rnc" \ + "file:///usr/share/xml/docbook/schema/rng/$PKG_VER/docbook.rnc" \ + $PKG_DEST/etc/xml/docbook-$PKG_VER && +xmlcatalog --noout --add "uri" \ + "http://www.oasis-open.org/docbook/xml/$PKG_VER/rnc/docbookxi.rnc" \ + "file:///usr/share/xml/docbook/schema/rng/$PKG_VER/docbookxi.rnc" \ + $PKG_DEST/etc/xml/docbook-$PKG_VER && +xmlcatalog --noout --add "uri" \ + "http://docbook.org/xml/$PKG_VER/rng/docbookxi.rnc" \ + "file:///usr/share/xml/docbook/schema/rng/$PKG_VER/docbookxi.rnc" \ + $PKG_DEST/etc/xml/docbook-$PKG_VER && + +xmlcatalog --noout --add "uri" \ + "http://www.oasis-open.org/docbook/xml/$PKG_VER/sch/docbook.sch" \ + "file:///usr/share/xml/docbook/schema/sch/$PKG_VER/docbook.sch" \ + $PKG_DEST/etc/xml/docbook-$PKG_VER && +xmlcatalog --noout --add "uri" \ + "http://docbook.org/xml/$PKG_VER/sch/docbook.sch" \ + "file:///usr/share/xml/docbook/schema/sch/$PKG_VER/docbook.sch" \ + $PKG_DEST/etc/xml/docbook-$PKG_VER + + +xmlcatalog --noout --create /usr/share/xml/docbook/schema/rng/$PKG_VER/catalog.xml && + +xmlcatalog --noout --add "uri" \ + "http://docbook.org/xml/$PKG_VER/schemas/rng/docbook.schemas/rng" \ + "docbook.schemas/rng" $PKG_DEST/usr/share/xml/docbook/schema/rng/$PKG_VER/catalog.xml && +xmlcatalog --noout --add "uri" \ + "http://www.oasis-open.org/docbook/xml/$PKG_VER/schemas/rng/docbook.schemas/rng" \ + "docbook.schemas/rng" $PKG_DEST/usr/share/xml/docbook/schema/rng/$PKG_VER/catalog.xml && +xmlcatalog --noout --add "uri" \ + "http://docbook.org/xml/$PKG_VER/schemas/rng/docbookxi.schemas/rng" \ + "docbookxi.schemas/rng" $PKG_DEST/usr/share/xml/docbook/schema/rng/$PKG_VER/catalog.xml && +xmlcatalog --noout --add "uri" \ + "http://www.oasis-open.org/docbook/xml/$PKG_VER/schemas/rng/docbookxi.schemas/rng" \ + "docbookxi.schemas/rng" $PKG_DEST/usr/share/xml/docbook/schema/rng/$PKG_VER/catalog.xml && +xmlcatalog --noout --add "uri" \ + "http://docbook.org/xml/$PKG_VER/schemas/rng/docbook.rnc" \ + "docbook.rnc" $PKG_DEST/usr/share/xml/docbook/schema/rng/$PKG_VER/catalog.xml && +xmlcatalog --noout --add "uri" \ + "http://www.oasis-open.org/docbook/xml/$PKG_VER/schemas/rng/docbook.rnc" \ + "docbook.rnc" $PKG_DEST/usr/share/xml/docbook/schema/rng/$PKG_VER/catalog.xml && +xmlcatalog --noout --add "uri" \ + "http://docbook.org/xml/$PKG_VER/schemas/rng/docbookxi.rnc" \ + "docbookxi.rnc" $PKG_DEST/usr/share/xml/docbook/schema/rng/$PKG_VER/catalog.xml && +xmlcatalog --noout --add "uri" \ + "http://www.oasis-open.org/docbook/xml/$PKG_VER/schemas/rng/docbookxi.rnc" \ + "docbookxi.rnc" $PKG_DEST/usr/share/xml/docbook/schema/rng/$PKG_VER/catalog.xml +xmlcatalog --noout --create $PKG_DEST/usr/share/xml/docbook/schema/sch/$PKG_VER/catalog.xml && + +xmlcatalog --noout --add "uri" \ + "http://docbook.org/xml/$PKG_VER/schemas/sch/docbook.schemas/sch" \ + "docbook.schemas/sch" $PKG_DEST/usr/share/xml/docbook/schema/sch/$PKG_VER/catalog.xml && +xmlcatalog --noout --add "uri" \ + "http://www.oasis-open.org/docbook/xml/$PKG_VER/schemas/sch/docbook.schemas/sch" \ + "docbook.schemas/sch" $PKG_DEST/usr/share/xml/docbook/schema/sch/$PKG_VER/catalog.xml + + +if [ ! -e /etc/xml/catalog ]; then + xmlcatalog --noout --create /etc/xml/catalog +fi && +xmlcatalog --noout --add "delegatePublic" \ + "-//OASIS//DTD DocBook XML $PKG_VER//EN" \ + "file:///usr/share/xml/docbook/schema/dtd/$PKG_VER/catalog.xml" \ + $PKG_DEST/etc/xml/catalog && +xmlcatalog --noout --add "delegateSystem" \ + "http://docbook.org/xml/$PKG_VER/dtd/" \ + "file:///usr/share/xml/docbook/schema/dtd/$PKG_VER/catalog.xml" \ + $PKG_DEST/etc/xml/catalog && +xmlcatalog --noout --add "delegateURI" \ + "http://docbook.org/xml/$PKG_VER/dtd/" \ + "file:///usr/share/xml/docbook/schema/dtd/$PKG_VER/catalog.xml" \ + $PKG_DEST/etc/xml/catalog && +xmlcatalog --noout --add "delegateURI" \ + "http://docbook.org/xml/$PKG_VER/rng/" \ + "file:///usr/share/xml/docbook/schema/rng/$PKG_VER/catalog.xml" \ + $PKG_DEST/etc/xml/catalog && +xmlcatalog --noout --add "delegateURI" \ + "http://docbook.org/xml/$PKG_VER/sch/" \ + "file:///usr/share/xml/docbook/schema/sch/$PKG_VER/catalog.xml" \ + $PKG_DEST/etc/xml/catalog && +xmlcatalog --noout --add "delegateURI" \ + "http://docbook.org/xml/$PKG_VER/xsd/" \ + "file:///usr/share/xml/docbook/schema/xsd/$PKG_VER/catalog.xml" \ + $PKG_DEST/etc/xml/catalog + +} diff --git a/repo/devel/docbook-xsl.xibuild b/repo/devel/docbook-xsl.xibuild new file mode 100644 index 0000000..f4280be --- /dev/null +++ b/repo/devel/docbook-xsl.xibuild @@ -0,0 +1,71 @@ +#!/bin/bash + +MAKEDEPS=() +DEPS=(libxml2 libxslt docbook-xml) + +PKG_VER=1.79.2 +SOURCE=https://github.com/docbook/xslt10-stylesheets/releases/download/release/$PKG_VER/docbook-xsl-nons-$PKG_VER.tar.bz2 +ADDITIONAL=( + https://www.linuxfromscratch.org/patches/blfs/svn/docbook-xsl-nons-$PKG_VER-stack_fix-1.patch +) + +DESC="XML stylesheets for Docbook-xml transformations" + +prepare() { + patch -Np1 -i docbook-xsl-nons-$PKG_VER-stack_fix-1.patch + +} + +package () { + install -v -m755 -d $PKG_DEST/usr/share/xml/docbook/xsl-stylesheets-nons-$PKG_VER && + + cp -v -R VERSION assembly common eclipse epub epub3 extensions fo \ + highlighting html htmlhelp images javahelp lib manpages params \ + profiling roundtrip slides template tests tools webhelp website \ + xhtml xhtml-1_1 xhtml5 \ + $PKG_DEST/usr/share/xml/docbook/xsl-stylesheets-nons-$PKG_VER && + + ln -s VERSION $PKG_DEST/usr/share/xml/docbook/xsl-stylesheets-nons-$PKG_VER/VERSION.xsl && + + install -v -m644 -D README \ + $PKG_DEST/usr/share/doc/docbook-xsl-nons-$PKG_VER/README.txt && + install -v -m644 RELEASE-NOTES* NEWS* \ + $PKG_DEST/usr/share/doc/docbook-xsl-nons-$PKG_VER + + + if [ ! -d /etc/xml ]; then install -v -m755 -d /etc/xml; fi && +if [ ! -f /etc/xml/catalog ]; then + xmlcatalog --noout --create /etc/xml/catalog +fi && + +xmlcatalog --noout --add "rewriteSystem" \ + "https://cdn.docbook.org/release/xsl-nons/$PKG_VER" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-$PKG_VER" \ + $PKG_DEST/etc/xml/catalog && + +xmlcatalog --noout --add "rewriteURI" \ + "https://cdn.docbook.org/release/xsl-nons/$PKG_VER" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-$PKG_VER" \ + $PKG_DEST/etc/xml/catalog && + +xmlcatalog --noout --add "rewriteSystem" \ + "https://cdn.docbook.org/release/xsl-nons/current" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-$PKG_VER" \ + $PKG_DEST/etc/xml/catalog && + +xmlcatalog --noout --add "rewriteURI" \ + "https://cdn.docbook.org/release/xsl-nons/current" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-$PKG_VER" \ + $PKG_DEST/etc/xml/catalog && + +xmlcatalog --noout --add "rewriteSystem" \ + "http://docbook.sourceforge.net/release/xsl/current" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-$PKG_VER" \ + $PKG_DEST/etc/xml/catalog && + +xmlcatalog --noout --add "rewriteURI" \ + "http://docbook.sourceforge.net/release/xsl/current" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-$PKG_VER" \ + $PKG_DEST/etc/xml/catalog + +} diff --git a/repo/system/glib.xibuild b/repo/system/glib.xibuild index daaabed..8342e5f 100644 --- a/repo/system/glib.xibuild +++ b/repo/system/glib.xibuild @@ -1,6 +1,6 @@ #!/bin/bash -MAKEDEPS=(meson ninja) +MAKEDEPS=(meson ninja docbook-xsl) DEPS=(pcre libffi zlib glibc libxslt gdb) PKG_VER=2.70.2 |