homebrew-core/Formula/libassuan.rb
2016-09-11 21:01:29 -04:00

33 lines
1.2 KiB
Ruby

class Libassuan < Formula
desc "Assuan IPC Library"
homepage "https://www.gnupg.org/related_software/libassuan/"
url "https://gnupg.org/ftp/gcrypt/libassuan/libassuan-2.4.3.tar.bz2"
mirror "https://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/libassuan/libassuan-2.4.3.tar.bz2"
sha256 "22843a3bdb256f59be49842abf24da76700354293a066d82ade8134bb5aa2b71"
revision 1
bottle do
cellar :any
sha256 "807776139dc1196a6107d83cd69d3e81ae9530554933a07cb7c3db7591e795a9" => :sierra
sha256 "4c657d8c083e8f5835b98eb850a520d2bb9b597afda9229c501fe7cf4e2a1f58" => :el_capitan
sha256 "9fa0afe044cd12b0cf6509db7c25e90f222e1c41297da41da89524ba0440f1cd" => :yosemite
sha256 "725c600d3790054cb27290f63256a35d7ab07ea40a05e34c2a8ca4a65b6411ea" => :mavericks
end
depends_on "libgpg-error"
def install
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--enable-static"
system "make", "install"
# avoid triggering mandatory rebuilds of software that hard-codes this path
inreplace bin/"libassuan-config", prefix, opt_prefix
end
test do
system bin/"libassuan-config", "--version"
end
end