homebrew-core/Formula/libgcrypt.rb
Jack Nagel eedfffffa3 libgcrypt: run "make check"
Rationale: It's a crypto library so we should make sure it works. It
doesn't take _that_ long even on my old, slow MBP.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-11 20:48:12 -05:00

22 lines
667 B
Ruby

require 'formula'
class Libgcrypt < Formula
url 'ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.5.0.tar.bz2'
sha1 '3e776d44375dc1a710560b98ae8437d5da6e32cf'
homepage 'http://directory.fsf.org/project/libgcrypt/'
depends_on 'libgpg-error'
def install
ENV.universal_binary # build fat so wine can use it
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-asm",
"--with-gpg-error-prefix=#{HOMEBREW_PREFIX}"
# Separate steps, or parallel builds fail
system "make"
system "make check"
system "make install"
end
end