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.7.0.tar.bz2" mirror "https://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.7.0.tar.bz2" sha256 "b0e67ea74474939913c4d9d9ef4ef5ec378efbe2bebe36389dee319c79bffa92" revision 1 bottle do cellar :any sha256 "0a413db08292c2963dc76ea5ace51084d6496ea238da65c58329b677f5c4a147" => :el_capitan sha256 "64ab4e6aa2e8bef022ee0884c4f2ec19c36a54fc77072d6f3e9baf1fd1d47c92" => :yosemite sha256 "80ae9b194176f762028bc2a952b2ac11ba06bbf287d12b0f98562bf11b81fbfd" => :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-libgpg-error-prefix=#{Formula["libgpg-error"].opt_prefix}" if build.universal? buildpath.install resource("config.h.ed") system "ed -s - config.h