2011-03-10 05:11:03 +00:00
|
|
|
class Libgcrypt < Formula
|
2014-08-22 02:12:23 +00:00
|
|
|
homepage "https://gnupg.org/"
|
2015-02-27 20:46:31 +00:00
|
|
|
url "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.3.tar.bz2"
|
|
|
|
mirror "http://ftp.heanet.ie/mirrors/ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.3.tar.bz2"
|
|
|
|
mirror "ftp://mirror.tje.me.uk/pub/mirrors/ftp.gnupg.org/libgcrypt/libgcrypt-1.6.3.tar.bz2"
|
|
|
|
sha1 "9456e7b64db9df8360a1407a38c8c958da80bbf1"
|
2009-09-09 14:11:58 +00:00
|
|
|
|
2014-02-22 14:49:09 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-02-27 22:07:04 +00:00
|
|
|
sha1 "d24142fb501c015dc669d9c0a8d94c5dc7123ee0" => :yosemite
|
|
|
|
sha1 "1ca2c47570a91ffe6e6c96a6d50627a8cce1e58e" => :mavericks
|
|
|
|
sha1 "3bf6ac3f6bc55a8fbd51b3fc9d7fd6677469d14e" => :mountain_lion
|
2014-02-22 14:49:09 +00:00
|
|
|
end
|
|
|
|
|
2014-05-25 14:26:14 +00:00
|
|
|
depends_on "libgpg-error"
|
2009-09-09 14:11:58 +00:00
|
|
|
|
2013-01-26 17:57:14 +00:00
|
|
|
option :universal
|
|
|
|
|
2014-05-25 14:26:14 +00:00
|
|
|
resource "config.h.ed" do
|
|
|
|
url "http://trac.macports.org/export/113198/trunk/dports/devel/libgcrypt/files/config.h.ed"
|
|
|
|
version "113198"
|
|
|
|
sha1 "136f636673b5c9d040f8a55f59b430b0f1c97d7a"
|
2014-08-25 01:20:49 +00:00
|
|
|
end
|
2013-11-12 05:50:57 +00:00
|
|
|
|
2009-09-09 14:11:58 +00:00
|
|
|
def install
|
2013-01-26 17:57:14 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2010-12-29 04:52:32 +00:00
|
|
|
|
2009-12-21 00:04:42 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2015-02-27 20:46:31 +00:00
|
|
|
"--disable-silent-rules",
|
2009-12-21 00:04:42 +00:00
|
|
|
"--prefix=#{prefix}",
|
2010-02-13 11:54:21 +00:00
|
|
|
"--disable-asm",
|
2014-05-15 04:50:42 +00:00
|
|
|
"--with-gpg-error-prefix=#{Formula["libgpg-error"].opt_prefix}"
|
2013-11-12 05:50:57 +00:00
|
|
|
|
|
|
|
if build.universal?
|
2014-05-25 14:26:14 +00:00
|
|
|
buildpath.install resource("config.h.ed")
|
2013-11-12 05:50:57 +00:00
|
|
|
system "ed -s - config.h <config.h.ed"
|
|
|
|
end
|
|
|
|
|
2012-03-11 20:36:37 +00:00
|
|
|
# Parallel builds work, but only when run as separate steps
|
2014-05-15 04:50:42 +00:00
|
|
|
system "make"
|
2014-05-25 14:26:14 +00:00
|
|
|
system "make", "check"
|
|
|
|
system "make", "install"
|
2009-09-09 14:11:58 +00:00
|
|
|
end
|
2014-12-27 16:09:14 +00:00
|
|
|
|
|
|
|
test do
|
2015-02-27 20:46:31 +00:00
|
|
|
system bin/"libgcrypt-config", "--libs"
|
2014-12-27 16:09:14 +00:00
|
|
|
end
|
2009-09-09 14:11:58 +00:00
|
|
|
end
|