[weasel-commit] Source: libgcrypt=1.4.4-1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Wed, 06 Jan 2010 10:54:41 -0500

================================
libgcrypt:source=1.4.4-1
cvc rdiff libgcrypt -1 /weasel.rpath.org@wgl:3-devel/1.4.4-1
================================
1.4.4-1 Filip Brcic (brcha@xxxxxxx) Wed Jan  6 10:54:29 2010
    Automatic promote by rBuild.

libgcrypt-1.4.4.tar.bz2: new
libgcrypt.recipe: new
--- /dev/null
+++ libgcrypt.recipe
@@ -0,0 +42 @@
+#
+# Copyright (c) 2005-2007 rPath, Inc.
+# This file is distributed under the terms of the MIT License.
+# A copy is available at http://www.rpath.com/permanent/mit-license.html
+#
+
+class Libgcrypt(AutoPackageRecipe) :
+    name = 'libgcrypt'
+    version = '1.4.4'
+    buildRequires = [ 'libgpg-error:devel', 'install-info:runtime' ]
+
+    if Arch.x86_64:
+        buildRequires.extend(['multiarch_wrapper:runtime'])
+
+    def unpack(r):
+        r.addArchive('ftp://ftp.gnupg.org/gcrypt/%(name)s/', keyid='1CE0C630')
+
+        if Arch.x86_64:
+            # First build 32bit library
+            macros32 = r.macros.copy()
+            macros32.cc = '"gcc -m32"'
+            macros32.cxx = '"g++ -m32"'
+            macros32.libdir = '%(prefix)s/lib'
+            r.Configure('--build=%(target32)s --host=%(target32)s',
+                        objDir='build32', overrideMacros=macros32,
+                        preConfigure='CXXCPP=%(bindir)s/cpp USE_ARCH=32')
+            r.Make(dir='build32', overrideMacros=macros32, 
preMake='USE_ARCH=32')
+            r.MakeInstall(dir='build32', overrideMacros=macros32, 
preMake='USE_ARCH=32')
+            r.Move('%(bindir)s/libgcrypt-config', 
'%(bindir)s/libgcrypt-config-32')
+            r.ComponentSpec('devel', '%(bindir)s/libgcrypt-config-32')
+
+    def configure(r):
+        # FIXME: hack to get around missing /lib/cpp link in bootstrap
+        # gcc - specify where to find the g++ cpp
+        r.Configure(preConfigure='CXXCPP=%(bindir)s/cpp')
+
+    def policy(r):
+        if Arch.x86_64:
+            r.Move('%(bindir)s/libgcrypt-config', 
'%(bindir)s/libgcrypt-config-64')
+            r.ComponentSpec('devel', '%(bindir)s/libgcrypt-config-64')
+            r.Symlink('%(bindir)s/multiarch_wrapper', 
'%(bindir)s/libgcrypt-config')
+            r.DanglingSymlinks(exceptions='%(bindir)s/libgcrypt-config')


Committed by: brcha

Other related posts:

  • » [weasel-commit] Source: libgcrypt=1.4.4-1 - rbuilder