diff options
author | davidovski <david@davidovski.xyz> | 2022-02-01 20:48:38 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-02-01 20:48:38 +0000 |
commit | 8e9ab121ce015fb2aec402e9ed232e4eb2eb3123 (patch) | |
tree | 1c6a4b53f57505d701cf14003e1fff33e72d728e | |
parent | b0a0ef262120b885fa6c9ff5e63582212c47ddb5 (diff) |
added docbook dtd
-rw-r--r-- | repo/devel/docbook-dtd.xibuild | 41 | ||||
-rw-r--r-- | repo/devel/sigml-common.xibuild | 33 | ||||
-rw-r--r-- | repo/system/glib.xibuild | 2 |
3 files changed, 75 insertions, 1 deletions
diff --git a/repo/devel/docbook-dtd.xibuild b/repo/devel/docbook-dtd.xibuild new file mode 100644 index 0000000..756b5f5 --- /dev/null +++ b/repo/devel/docbook-dtd.xibuild @@ -0,0 +1,41 @@ +#!/bin/bash + +MAKEDEPS=(unzip) +DEPS=(libxml2 sgml-common) + +PKG_VER=4.5 +SOURCE=https://www.docbook.org/sgml/$PKG_VER/docbook-$PKG_VER.zip +DESC="Document type definitions for verification of SGML data files" + +prepare() { + sed -i -e '/ISO 8879/d' \ + -e '/gml/d' docbook.cat + +} + +package () { + install -v -d $PKG_DEST/usr/share/sgml/docbook/sgml-dtd-$PKG_VER && + chown -R root:root . && + + install -v docbook.cat $PKG_DEST/usr/share/sgml/docbook/sgml-dtd-$PKG_VER/catalog && + cp -v -af *.dtd *.mod *.dcl $PKG_DEST/usr/share/sgml/docbook/sgml-dtd-$PKG_VER && + + install-catalog --add $PKG_DEST/etc/sgml/sgml-docbook-dtd-$PKG_VER.cat \ + /usr/share/sgml/docbook/sgml-dtd-$PKG_VER/catalog && + + install-catalog --add $PKG_DEST/etc/sgml/sgml-docbook-dtd-$PKG_VER.cat \ + $PKG_DEST/etc/sgml/sgml-docbook.cat + + + cat >> $PKG_DEST/usr/share/sgml/docbook/sgml-dtd-$PKG_VER/catalog << "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 +} diff --git a/repo/devel/sigml-common.xibuild b/repo/devel/sigml-common.xibuild new file mode 100644 index 0000000..c0a5cf4 --- /dev/null +++ b/repo/devel/sigml-common.xibuild @@ -0,0 +1,33 @@ +#!/bin/bash + +MAKEDEPS=(unzip) +DEPS=(libxml2 sgml-common) + +PKG_VER=0.6.3 +SOURCE=https://sourceware.org/ftp/docbook-tools/new-trials/SOURCES/sgml-common-$PKG_VER.tgz +ADDITIONAL=( + https://www.linuxfromscratch.org/patches/blfs/svn/sgml-common-$PKG_VER-manpage-1.patch + ) + +DESC="Tools for maintaining centralized SGML catalogs." + +prepare() { + patch -Np1 -i sgml-common-$PKG_VER-manpage-1.patch && + autoreconf -f -i +} + +build() { + ./configure --prefix=/usr --sysconfdir=/etc && + make +} + +package () { + make DESTDIR=$PKG_DEST docdir=/usr/share/doc install && + + install-catalog --add $PKG_DEST/etc/sgml/sgml-ent.cat \ + $PKG_DEST/usr/share/sgml/sgml-iso-entities-8879.1986/catalog && + + install-catalog --add $PKG_DEST/etc/sgml/sgml-docbook.cat \ + $PKG_DEST/etc/sgml/sgml-ent.cat + +} diff --git a/repo/system/glib.xibuild b/repo/system/glib.xibuild index 8342e5f..3a6cc8f 100644 --- a/repo/system/glib.xibuild +++ b/repo/system/glib.xibuild @@ -1,6 +1,6 @@ #!/bin/bash -MAKEDEPS=(meson ninja docbook-xsl) +MAKEDEPS=(meson ninja docbook-xsl docbook-dtd) DEPS=(pcre libffi zlib glibc libxslt gdb) PKG_VER=2.70.2 |