aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAmir Chaudhry2013-09-06 15:15:22 +0100
committerJack Nagel2013-09-07 19:38:29 -0500
commita302afd06426909e27720d4cec79a26e82e62439 (patch)
treef3525b65640552bce5bf43428087e4199d997bb5 /Library/Formula
parentd949524561de9c88e6469467befb278a804ec744 (diff)
downloadhomebrew-a302afd06426909e27720d4cec79a26e82e62439.tar.bz2
libsodium: add HEAD
Allows use of libsodium trunk. With thanks to @dsheets Closes #22355. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libsodium.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Formula/libsodium.rb b/Library/Formula/libsodium.rb
index 234f4bc91..920509450 100644
--- a/Library/Formula/libsodium.rb
+++ b/Library/Formula/libsodium.rb
@@ -5,10 +5,20 @@ class Libsodium < Formula
url 'http://download.dnscrypt.org/libsodium/releases/libsodium-0.4.2.tar.gz'
sha256 '1a7901cdd127471724e854a8eb478247dc0ca67be549345c75fc6f2d4e05ed39'
+ head 'https://github.com/jedisct1/libsodium.git'
+
option :universal
+ if build.head?
+ depends_on 'libtool' => :build
+ depends_on 'autoconf' => :build
+ depends_on 'automake' => :build
+ end
+
def install
ENV.universal_binary if build.universal?
+ system "./autogen.sh" if build.head?
+
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make check"