2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-01 00:33:33 +00:00
|
|
|
|
|
|
|
class Gnupg <Formula
|
2009-09-21 17:04:56 +00:00
|
|
|
@url='ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.10.tar.bz2'
|
2009-09-01 00:33:33 +00:00
|
|
|
@homepage='http://www.gnupg.org/'
|
2009-09-21 17:04:56 +00:00
|
|
|
@sha1='fd1b6a5f3b2dd836b598a1123ac257b8f105615d'
|
2009-09-01 00:33:33 +00:00
|
|
|
|
|
|
|
def install
|
2009-09-21 17:04:56 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking", "--disable-asm"
|
2009-09-01 00:33:33 +00:00
|
|
|
|
|
|
|
system "make"
|
|
|
|
system "make check"
|
|
|
|
|
|
|
|
# amazingly even the GNU folks can bugger up their Makefiles, so we need
|
2009-09-09 14:11:58 +00:00
|
|
|
# to create these directories because the install target has the
|
|
|
|
# dependency order wrong
|
2009-09-01 00:33:33 +00:00
|
|
|
bin.mkpath
|
|
|
|
(libexec+'gnupg').mkpath
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|