2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-09 14:11:58 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libgcrypt < Formula
|
2012-02-20 23:25:42 +00:00
|
|
|
homepage 'http://gnupg.org/'
|
2014-03-06 15:16:51 +00:00
|
|
|
url 'ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.1.tar.bz2'
|
|
|
|
sha1 'f03d9b63ac3b17a6972fc11150d136925b702f02'
|
2009-09-09 14:11:58 +00:00
|
|
|
|
2014-02-22 14:49:09 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-03-06 15:16:51 +00:00
|
|
|
sha1 "aeebdee7d9887b3bf6ec5df41cc41c28dca98ce9" => :mavericks
|
|
|
|
sha1 "24efe9c0ff37edb0e88f94714c3e10483614cd07" => :mountain_lion
|
|
|
|
sha1 "f0c2d69e6552d69fa59342613831b96085ebd85e" => :lion
|
2014-02-22 14:49:09 +00:00
|
|
|
end
|
|
|
|
|
2009-09-21 18:00:13 +00:00
|
|
|
depends_on 'libgpg-error'
|
2009-09-09 14:11:58 +00:00
|
|
|
|
2013-01-26 17:57:14 +00:00
|
|
|
option :universal
|
|
|
|
|
2013-11-12 05:50:57 +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'
|
|
|
|
end if build.universal?
|
|
|
|
|
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",
|
|
|
|
"--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?
|
|
|
|
buildpath.install resource('config.h.ed')
|
|
|
|
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"
|
2011-10-12 01:46:28 +00:00
|
|
|
system "make check"
|
2009-09-09 14:11:58 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|