Skip to content

Commit

Permalink
libsodium: add HEAD
Browse files Browse the repository at this point in the history
Allows use of libsodium trunk.
With thanks to @dsheets

Closes Homebrew#22355.

Signed-off-by: Jack Nagel <[email protected]>
  • Loading branch information
amirmc authored and jacknagel committed Sep 8, 2013
1 parent d949524 commit a302afd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Library/Formula/libsodium.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a302afd

Please sign in to comment.