[weasel-commit] Source: docbook-xml-simple-dtd-10=1.0-1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Tue, 29 Jun 2010 14:05:46 -0400

================================
docbook-xml-simple-dtd-10:source=1.0-1
cvc rdiff docbook-xml-simple-dtd-10 -1 /weasel.rpath.org@wgl:3-devel/1.0-1
================================
1.0-1 Filip Brcic (brcha@xxxxxxxxxxxx) Tue Jun 29 14:05:36 2010
    docbook-xml-simple-dtd 1.0

docbook-xml-simple-dtd-10.recipe: new
--- /dev/null
+++ docbook-xml-simple-dtd-10.recipe
@@ -0,0 +50 @@
+#
+# Copyright (c) 2010 Weasel GNU/Linux [Filip Brcic (brcha@xxxxxxxxxxxx)]
+# Distributed under the terms of the GNU General Public License v3
+#
+
+loadSuperClass('sgmlcatalog')
+class DocbookXmlSimpleDtd10(SgmlCatalogRecipe):
+    name = 'docbook-xml-simple-dtd-10'
+    version = '1.0'
+
+    buildRequires = [
+        'libxml2:runtime', 'build-docbook-catalog:runtime',
+        'unzip:runtime',
+        ]
+
+    shortDesc  = 'Simplified Docbook DTD for XML'
+    url        = 'http://www.oasis-open.org/docbook/'
+    licenses   = [ 'as-is' ]
+    categories = [ 'Applications/Text' ]
+
+    def setup(r):
+        r.macros.archive_name = 'docbook-simple'
+        
r.addArchive('http://www.oasis-open.org/docbook/xml/simple/%(version)s/',
+                     dir='%(name)s-%(version)s')
+
+        r.macros.targetdir = '%(datadir)s/sgml/docbook/' + 
r.name.replace('docbook-', '')
+
+        r.Install('*.{dtd,mod,css}',
+                  '%(targetdir)s/')
+
+        r.addSource('docbook-xml-simple-dtd-1.0.cat',
+                    dest='%(targetdir)s/catalog')
+
+        
r.sgmlCatalogInclude('%(sysconfdir)s/sgml/xml-simple-docbook-%(version)s.cat',
+                             '%(targetdir)s/catalog')
+
+        postInstUpdScr = r.sgmlPostInstall()
+        postEraseScr   = r.sgmlPostErase()
+
+        r.ScriptPostInstall(contents=postInstUpdScr)
+        r.ScriptPostUpdate(contents=postInstUpdScr)
+        r.ScriptPostErase(contents=postEraseScr)
+
+        # Require sgml-common for post-scripts
+        r.Requires('sgml-common:runtime',
+                   '%(targetdir)s/catalog')
+        # Require libxml2:runtime
+        r.Requires('libxml2:runtime',
+                   '%(targetdir)s/catalog')
+

docbook-simple-1.0.zip: new
docbook-xml-simple-dtd-1.0.cat: new
--- /dev/null
+++ docbook-xml-simple-dtd-1.0.cat
@@ -0,0 +7 @@
+OVERRIDE YES
+
+DTDDECL "-//OASIS//DTD Simplified DocBook XML V1.0//EN" 
"/usr/share/sgml/xml.dcl"
+PUBLIC  "-//OASIS//DTD Simplified DocBook XML V1.0//EN" 
"/usr/share/sgml/docbook/xml-simple-dtd-1.0/sdocbook.dtd"
+
+DTDDECL "-//OASIS//DTD Simplified DocBook RefEntry XML V1.0//EN" 
"/usr/share/sgml/xml.dcl"
+PUBLIC  "-//OASIS//DTD Simplified DocBook RefEntry XML V1.0//EN" 
"/usr/share/sgml/docbook/xml-simple-dtd-1.0/sdocbookref.dtd"


Committed by: brcha

Other related posts: