class Libgcrypt < Formula desc "Cryptographic library based on the code from GnuPG" homepage "https://directory.fsf.org/wiki/Libgcrypt" url "https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.6.4.tar.bz2" mirror "https://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.4.tar.bz2" sha256 "c9bc2c7fe2e5f4ea13b0c74f9d24bcbb1ad889bb39297d8082aebf23f4336026" revision 1 bottle do cellar :any sha256 "2b59bd7e872728065d2303b5da5f69a16dbcebc89394252ee48707cf14654c86" => :el_capitan sha256 "5f070f9cc28560ef51b21364be72eb3b42ff5eb32c19a4b4589d0ebe896f09f2" => :yosemite sha256 "5ce09777ff6a640092874ab3461f6f5699db045f7669530bf1059129c34fe7af" => :mavericks end option :universal depends_on "libgpg-error" resource "config.h.ed" do url "https://raw.githubusercontent.com/Homebrew/patches/ec8d133/libgcrypt/config.h.ed" version "113198" sha256 "d02340651b18090f3df9eed47a4d84bed703103131378e1e493c26d7d0c7aab1" end def install ENV.universal_binary if build.universal? system "./configure", "--disable-dependency-tracking", "--disable-silent-rules", "--prefix=#{prefix}", "--disable-asm", "--with-gpg-error-prefix=#{Formula["libgpg-error"].opt_prefix}" if build.universal? buildpath.install resource("config.h.ed") system "ed -s - config.h