This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

libgcrypt: fix universal builds

Closes #18345.
  • Loading branch information...
1 parent e92e725 commit 6ee2f279402ee69609fa2f1fe1f1beb5554ad635 @jacknagel jacknagel committed Nov 12, 2013
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 6ee2f27

Please sign in to comment.