Permalink
Browse files

libgcrypt: fix universal builds

Closes #18345.
  • Loading branch information...
jacknagel authored and yriveiro committed Nov 12, 2013
1 parent 9c83b76 commit 34f45f8ab3a540ae1e05e68afe5acd56a2417e23
Showing with 12 additions and 0 deletions.
  1. +12 −0 Library/Formula/libgcrypt.rb
@@ -9,6 +9,12 @@ class Libgcrypt < Formula
option :universal
+ resource 'config.h.ed' do
+ url 'http://trac.macports.org/export/113198/trunk/dports/devel/libgcrypt/files/config.h.ed'
+ version '113198'
+ sha1 '136f636673b5c9d040f8a55f59b430b0f1c97d7a'
+ end if build.universal?
+
fails_with :clang do
build 77
cause "basic test fails"
@@ -33,6 +39,12 @@ def install
"--prefix=#{prefix}",
"--disable-asm",
"--with-gpg-error-prefix=#{HOMEBREW_PREFIX}"
+
+ if build.universal?
+ buildpath.install resource('config.h.ed')
+ system "ed -s - config.h <config.h.ed"
+ end
+
# Parallel builds work, but only when run as separate steps
system "make", "CFLAGS=#{cflags}"
system "make check"

0 comments on commit 34f45f8

Please sign in to comment.