2011-08-30 04:55:17 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Nettle < Formula
|
2011-09-03 19:34:54 +00:00
|
|
|
url 'http://www.lysator.liu.se/~nisse/archive/nettle-2.4.tar.gz'
|
2011-08-30 04:55:17 +00:00
|
|
|
homepage 'http://www.lysator.liu.se/~nisse/nettle/'
|
2011-09-03 19:34:54 +00:00
|
|
|
md5 '450be8c4886d46c09f49f568ad6fa013'
|
2011-08-30 04:55:17 +00:00
|
|
|
|
|
|
|
depends_on 'gmp'
|
|
|
|
|
2011-10-16 17:34:41 +00:00
|
|
|
def patches
|
|
|
|
# patch from MacPorts to sort out really ugly dylib mess
|
|
|
|
{ :p0 => "https://trac.macports.org/export/85828/trunk/dports/devel/nettle/files/patch-configure.diff" }
|
|
|
|
end
|
2011-08-30 04:55:17 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.universal_binary
|
|
|
|
ENV['DYLD_LIBRARY_PATH'] = lib # otherwise 'make check' fails
|
|
|
|
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--enable-shared",
|
|
|
|
"--disable-assembler"
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
system "make check"
|
|
|
|
end
|
|
|
|
end
|