[weasel-commit] Source: xmlstarlet=1.0.1-1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Mon, 14 Jun 2010 15:42:53 -0400

================================
xmlstarlet:source=1.0.1-1
cvc rdiff xmlstarlet -1 /weasel.rpath.org@wgl:3-devel/1.0.1-1
================================
1.0.1-1 Filip Brcic (brcha@xxxxxxxxxxxx) Mon Jun 14 15:42:33 2010
    xmlstarlet 1.0.1

xmlstarlet-1.0.1.tar.gz: new
xmlstarlet.recipe: new
--- /dev/null
+++ xmlstarlet.recipe
@@ -0,0 +48 @@
+#
+# Copyright (c) 2010 Weasel GNU/Linux [Filip Brcic (brcha@xxxxxxxxxxxx)]
+# Distributed under the terms of the GNU General Public License v3
+#
+
+class Xmlstarlet(AutoPackageRecipe):
+    name = 'xmlstarlet'
+    version = '1.0.1'
+
+    buildRequires = [
+        'pkg-config:devel', 'libxml2:devel', 'libxslt:devel',
+        ]
+    runtimeRequires = [
+        'libxml2:runtime', 'libxslt:runtime',
+        ]
+    buildRequires.extend(runtimeRequires)
+
+    shortDesc  = 'A set of tools to transform, query, validate, and edit XML 
documents'
+    longDesc   = """
+XMLStarlet is a set of command line utilities (tools) which can be
+used to transform, query, validate, and edit XML documents and files
+using simple set of shell commands in similar way it is done for plain
+text files using UNIX grep, sed, awk, diff, patch, join, etc commands.
+"""
+    url        = 'http://xmlstar.sourceforge.net/'
+    licenses   = [ 'MIT' ]
+    categories = [ 'Applications/Text' ]
+
+    def unpack(r):
+        r.addArchive('mirror://sourceforge/xmlstar/')
+
+    def configure(r):
+        r.Configure(
+            preConfigure=(
+                ' LIBXSLT_LIBS="$(pkg-config --libs libxslt libexslt)"'
+                ' LIBXML_LIBS="$(pkg-config --libs libxml-2.0)"'
+                )
+            )
+
+    def policy(r):
+        r.Symlink('%(bindir)s/xml', '%(bindir)s/xmlstarlet')
+        
+        r.Doc('AUTHORS', 'ChangeLog', 'README', 'TODO')
+
+        r.Doc('doc')
+
+        for req in r.runtimeRequires:
+            r.Requires(req, '%(bindir)s/')


Committed by: brcha

Other related posts: