diff --git a/textproc/docbook-xsl/docbook-xsl.conf b/textproc/docbook-xsl/docbook-xsl.conf new file mode 100644 index 000000000..a5729ff53 --- /dev/null +++ b/textproc/docbook-xsl/docbook-xsl.conf @@ -0,0 +1,41 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../docbook-xsl/docbook-xsl.conf +# Copyright (C) 2007 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +makeopt= +makeinstopt= + +datadir="/usr/share/xml/docbook/xsl-$ver" + +hook_add postmake 5 'docbook_install' + +docbook_install() { + local catalog=$root/etc/xml/docbook-xsl + local URI=http://docbook.sourceforge.net/release/xsl + + rm -rf "$root$datadir" + mkdir -p "$root$datadir" + + echo "Installing..." + tar -cO . | tar -C "$root$datadir" -xvf - + + echo "Populating /etc/xml/docbook" + [ -s "$catalog" ] || xmlcatalog --noout --create "$catalog" + + for x in $ver current; do + xmlcatalog --noout \ + --add 'rewriteURI' "$URI/$x/" "$datadir/" \ + --add 'rewriteSystem' "$URI/$x/" "$datadir/" \ + "$catalog" + done +} diff --git a/textproc/docbook-xsl/docbook-xsl.desc b/textproc/docbook-xsl/docbook-xsl.desc new file mode 100644 index 000000000..bf8f00219 --- /dev/null +++ b/textproc/docbook-xsl/docbook-xsl.desc @@ -0,0 +1,36 @@ +[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN --- +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] +[COPY] Filename: package/.../docbook-xsl/docbook-xsl.desc +[COPY] Copyright (C) 2007 The OpenSDE Project +[COPY] +[COPY] More information can be found in the files COPYING and README. +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; version 2 of the License. A copy of the +[COPY] GNU General Public License can be found in the file COPYING. +[COPY] --- SDE-COPYRIGHT-NOTE-END --- + +[I] DocBook Project XSL stylesheets + +[T] DocBook is an XML vocabulary which enables you to create document content +[T] in a presentation-neutral form that captures the logical structure of the +[T] content. Using the DocBook Project XSL stylesheets, you can publish DocBook +[T] content as HTML pages and PDF files and other formats, including man pages, +[T] HTML Help, and JavaHelp. + +[U] http://docbook.sourceforge.net/ + +[A] The DocBook Project Development Team +[M] Alejandro Mery + +[C] extra/documentation + +[L] MIT +[S] Stable +[V] 1.72.0 +[P] X -----5---9 129.200 + +[D] 2102264574 docbook-xsl-1.72.0.tar.bz2 http://dl.sourceforge.net/sourceforge/docbook/ + diff --git a/textproc/docbook-xsl/pkg_libxml_post.conf b/textproc/docbook-xsl/pkg_libxml_post.conf new file mode 100644 index 000000000..398202b27 --- /dev/null +++ b/textproc/docbook-xsl/pkg_libxml_post.conf @@ -0,0 +1,23 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../docbook-xsl/pkg_libxml_post.conf +# Copyright (C) 2007 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +hook_add postmake 5 'docbook_xsl_catalog' +docbook_xsl_catalog() { + local URI=http://docbook.sourceforge.net/release/xsl/ + local catalog=/etc/xml/docbook-xsl rootcatalog=$root/etc/xml/catalog + + xmlcatalog --noout --add 'delegateSystem' "$URI" file://$catalog $rootcatalog + xmlcatalog --noout --add 'delegateURI' "$URI" file://$catalog $rootcatalog +} +