Skip to content

Instantly share code, notes, and snippets.

@jedisct1
Created March 9, 2013 04:24
Show Gist options
  • Select an option

  • Save jedisct1/5122524 to your computer and use it in GitHub Desktop.

Select an option

Save jedisct1/5122524 to your computer and use it in GitHub Desktop.
Add --universal to the libsodium Homebrew formula
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