diff options
| author | Amir Chaudhry | 2013-09-06 15:15:22 +0100 |
|---|---|---|
| committer | Jack Nagel | 2013-09-07 19:38:29 -0500 |
| commit | a302afd06426909e27720d4cec79a26e82e62439 (patch) | |
| tree | f3525b65640552bce5bf43428087e4199d997bb5 /Library/Formula | |
| parent | d949524561de9c88e6469467befb278a804ec744 (diff) | |
| download | homebrew-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.rb | 10 |
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" |
