[weasel-commit] Source: libxslt=1.1.24-1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Wed, 10 Jun 2009 11:42:45 -0400

================================
libxslt:source=1.1.24-1
cvc rdiff libxslt -1 /weasel.rpath.org@wgl:3-devel/1.1.24-1
================================
1.1.24-1 Filip Brcic (brcha@xxxxxxx) Wed Jun 10 11:42:11 2009
    Automatic commit by rbuild

libxslt.recipe: new
--- /dev/null
+++ libxslt.recipe
@@ -0,0 +45 @@
+#
+# Copyright (c) 2009 Filip Brcic <brcha@xxxxxxx>
+# Distributed under the terms of the GNU General Public License v3
+#
+
+class Libxslt(AutoPackageRecipe):
+    name = 'libxslt'
+    version = '1.1.24'
+
+    buildRequires = [
+        'binutils:devel', 'python:devel', 'libxml2:devel',
+#        'libgcrypt:devel', 'libgpg-error:devel',
+        ]
+
+    if Arch.x86_64:
+        buildRequires.extend(['multiarch_wrapper:runtime'])
+
+    def unpack(r):
+       r.Description(shortDesc='Version 2 of the library to manipulate XML 
files',
+                      longDesc='LibXML2 is the XML C parser and toolkit 
developed for the Gnome project (but usable outside of the Gnome platform). 
Although the library is written in C, a variety of language bindings make it 
available in other environments.')
+       r.PackageURL('http://www.xmlsoft.org/XSLT/')
+       r.Licenses('MIT')
+        r.addArchive('ftp://xmlsoft.org/libxml2/')
+
+        if Arch.x86_64:
+            # First build 32bit version
+            macros32 = r.macros.copy()
+            macros32.cc = '"gcc -m32"'
+            macros32.cxx = '"g++ -m32"'
+            macros32.libdir = '%(prefix)s/lib'
+            r.Configure(preConfigure='USE_ARCH=32', objDir='build32',
+                        overrideMacros=macros32)
+            r.Make(dir='build32', preMake='USE_ARCH=32', 
overrideMacros=macros32)
+            r.MakeInstall(dir='build32', preMake='USE_ARCH=32', 
overrideMacros=macros32)
+            r.Move('%(bindir)s/xslt-config', '%(bindir)s/xslt-config-32')
+            r.ComponentSpec('devel', '%(bindir)s/xslt-config-32')
+        
+    def policy(r):
+        if Arch.x86_64:
+            r.Move('%(bindir)s/xslt-config', '%(bindir)s/xslt-config-64')
+            r.ComponentSpec('devel', '%(bindir)s/xslt-config-64')
+            r.Symlink('%(bindir)s/multiarch_wrapper', '%(bindir)s/xslt-config')
+            r.DanglingSymlinks(exceptions='%(bindir)s/xslt-config')
+            r.NonMultilibComponent(exceptions='.*') # because of python modules
+            r.NormalizePkgConfig(exceptions='.*')

libxslt-1.1.24.tar.gz: new

Committed by: brcha

Other related posts:

  • » [weasel-commit] Source: libxslt=1.1.24-1 - rbuilder