Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
libgcrypt: fix universal builds
Browse files Browse the repository at this point in the history
Closes #18345.
  • Loading branch information
jacknagel committed Nov 12, 2013
1 parent e92e725 commit 6ee2f27
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Library/Formula/libgcrypt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 6ee2f27

Please sign in to comment.