diff options
| author | Jack Nagel | 2013-11-11 23:50:57 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-11-11 23:50:57 -0600 |
| commit | 6ee2f279402ee69609fa2f1fe1f1beb5554ad635 (patch) | |
| tree | 520c138b86bf2e67e8ad64b67908b8ffcfb1a8de /Library/Formula | |
| parent | e92e725c6e919684d7fdffe2bf61544d25f3ba33 (diff) | |
| download | homebrew-6ee2f279402ee69609fa2f1fe1f1beb5554ad635.tar.bz2 | |
libgcrypt: fix universal builds
Closes #18345.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libgcrypt.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Formula/libgcrypt.rb b/Library/Formula/libgcrypt.rb index f6fa1960e..ba901762a 100644 --- a/Library/Formula/libgcrypt.rb +++ b/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 @@ class Libgcrypt < Formula "--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" |
