[Lunar-commits] <moonbase-core> docbook-sgml: Moved from other to core.
Peter de Ridder
peter at lunar-linux.org
Fri Jun 7 09:02:46 CEST 2013
commit 6c59ee148572e1f5eec73b61912f38f13c1f5a3d
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Thu, 06 Jun 2013 10:31:06 -0700
URL: https://github.com/lunar-linux/moonbase-core/commit/6c59ee148572e1f5eec73b61912f38f13c1f5a3d
docbook-sgml: Moved from other to core.
---
doc-tools/docbook-sgml/BUILD | +14/-0
doc-tools/docbook-sgml/DEPENDS | +2/-0
doc-tools/docbook-sgml/DETAILS | +42/-0
doc-tools/docbook-sgml/POST_INSTALL | +19/-0
doc-tools/docbook-sgml/PRE_BUILD | +13/-0
doc-tools/docbook-sgml/PRE_REMOVE | +5/-0
6 files changed, 95 insertions(+)
--- /dev/null
+++ b/doc-tools/docbook-sgml/BUILD
@@ -0,0 +1,14 @@
+(
+
+ for DOCBOOK in `ls`; do
+ cd $DOCBOOK
+ ln -sf docbook.cat catalog
+ cd ..
+ done &&
+
+ prepare_install &&
+ rm -rf old.libraries &&
+ mkdir -p /usr/share/sgml/docbook &&
+ cp -rf $BUILD_DIRECTORY/sgml /usr/share/sgml/docbook
+
+) > $C_FIFO 2>&1
--- /dev/null
+++ b/doc-tools/docbook-sgml/DEPENDS
@@ -0,0 +1,2 @@
+depends sgml-common
+depends unzip
--- /dev/null
+++ b/doc-tools/docbook-sgml/DETAILS
@@ -0,0 +1,42 @@
+# All docbook packages are NOT cumulative so do NOT replace old releases with new one
+# If you need to add new docbook release add it as another SOURCE.
+# You have to review all scripts in this module to modify them to add another source.
+ MODULE=docbook-sgml
+ MOD=docbook
+ VERSION=4.5
+ SOURCE1=docbk31.zip
+ SOURCE2=docbk41.zip
+ SOURCE3=$MOD-4.2.zip
+ SOURCE4=$MOD-4.3.zip
+ SOURCE5=$MOD-$VERSION.zip
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/sgml
+ SOURCE5_URL[0]=http://www.oasis-open.org/docbook/sgml/4.5
+ SOURCE5_URL[1]=http://www.docbook.org/sgml/4.5
+ SOURCE4_URL[0]=http://www.oasis-open.org/docbook/sgml/4.3
+ SOURCE4_URL[1]=http://www.docbook.org/sgml/4.3
+ SOURCE3_URL[0]=http://www.oasis-open.org/docbook/sgml/4.2
+ SOURCE3_URL[1]=http://www.docbook.org/sgml/4.2
+ SOURCE2_URL[0]=http://www.oasis-open.org/docbook/sgml/4.1
+ SOURCE2_URL[1]=http://www.docbook.org/sgml/4.1
+ SOURCE1_URL[0]=http://www.oasis-open.org/docbook/sgml/3.1
+ SOURCE1_URL[1]=http://www.docbook.org/sgml/3.1
+ SOURCE1_VFY=sha1:75a5bb4f17b17ff0f7dd1cc2db7112bad0fb89e6
+ SOURCE2_VFY=sha1:3009fcc364511d186da40e828bf0d5d1556c020e
+ SOURCE3_VFY=sha1:98afcae616ed24edb30e40baa4ddd8cd8731f2c7
+ SOURCE4_VFY=sha1:c64759d07514a7ab4347b1fc03457664cdf98b3f
+ SOURCE5_VFY=sha1:5efeb22936ea30cdaf88053337de7966dfda02bd
+ WEB_SITE=http://www.oasis-open.org/docbook/sgml
+ ENTERED=20030103
+ UPDATED=20100814
+ SHORT="The DocBook SGML DTD pack"
+cat << EOF
+
+DocBook is an XML/SGML vocabulary particularly well suited to books
+and papers about computer hardware and software (though it is by no
+means limited to these applications).
+
+The DocBook Technical Committee maintains the DocBook schema.
+DocBook is officially available as a Document Type Definition (DTD)
+for both XML and SGML. It is unofficially available in other forms
+as well.
+EOF
--- /dev/null
+++ b/doc-tools/docbook-sgml/POST_INSTALL
@@ -0,0 +1,19 @@
+CENTRALIZED=/etc/sgml/catalog
+if ! [ -e "$CENTRALIZED" ]; then
+ echo "Creating $CENTRALIZED"
+ mkdir -p /etc/sgml
+ touch $CENTRALIZED
+fi
+
+DOCBOOK_INSTALL_DIR=/usr/share/sgml/docbook/sgml
+for DOCBOOK in `ls -d $DOCBOOK_INSTALL_DIR/*`
+do
+install-catalog --add $CENTRALIZED $DOCBOOK/catalog
+done
+
+# Do not loopback (breaks docbook-utils build)
+install-catalog -r $CENTRALIZED /etc/sgml/catalog
+
+if module_installed docbook-utils; then
+ lin -rc docbook-utils
+fi
--- /dev/null
+++ b/doc-tools/docbook-sgml/PRE_BUILD
@@ -0,0 +1,13 @@
+mk_source_dir $SOURCE_DIRECTORY &&
+cd $SOURCE_DIRECTORY &&
+for dir in '3.1 4.1 4.2 4.3 4.5'
+do mkdir $dir; done &&
+unzip $SOURCE_CACHE/$SOURCE1 -d $SOURCE_DIRECTORY/3.1 &&
+unzip $SOURCE_CACHE/$SOURCE2 -d $SOURCE_DIRECTORY/4.1 &&
+unzip $SOURCE_CACHE/$SOURCE3 -d $SOURCE_DIRECTORY/4.2 &&
+unzip $SOURCE_CACHE/$SOURCE4 -d $SOURCE_DIRECTORY/4.3 &&
+unzip $SOURCE_CACHE/$SOURCE5 -d $SOURCE_DIRECTORY/4.5 &&
+CENTRALIZED=/etc/sgml/catalog
+for DOCBOOK_INSTALL_DIR in `ls -d /usr/share/sgml/docbook/{3*,4*,docbook-sgml*,sgml} 2>/dev/null`
+do install-catalog -r $CENTRALIZED $DOCBOOK_INSTALL_DIR/catalog; done
+rm -rf /usr/share/sgml/docbook/{3*,4*,docbook-sgml-*,old.libraries,sgml}
--- /dev/null
+++ b/doc-tools/docbook-sgml/PRE_REMOVE
@@ -0,0 +1,5 @@
+CENTRALIZED=/etc/sgml/catalog
+for DOCBOOK_INSTALL_DIR in `ls -d /usr/share/sgml/docbook/sgml/* 2>/dev/null`
+do
+install-catalog -r $CENTRALIZED $DOCBOOK_INSTALL_DIR/catalog
+done
More information about the Lunar-commits
mailing list