Created
March 9, 2013 04:24
-
-
Save jedisct1/5122524 to your computer and use it in GitHub Desktop.
Add --universal to the libsodium Homebrew formula
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/Library/Formula/libsodium.rb b/Library/Formula/libsodium.rb | |
| index 31b76a2..75c6c0f 100644 | |
| --- a/Library/Formula/libsodium.rb | |
| +++ b/Library/Formula/libsodium.rb | |
| @@ -5,7 +5,10 @@ class Libsodium < Formula | |
| url 'http://download.dnscrypt.org/libsodium/releases/libsodium-0.3.tar.gz' | |
| sha1 '3d486dc40e7cbd9542d00088d3b73a719d7746fa' | |
| + option :universal | |
| + | |
| def install | |
| + ENV.universal_binary if build.universal? | |
| system "./configure", "--disable-debug", "--disable-dependency-tracking", | |
| "--prefix=#{prefix}" | |
| system "make check" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment