2012-02-24 19:39:26 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Gnunet < Formula
|
|
|
|
homepage 'https://gnunet.org/'
|
2014-03-05 15:35:54 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/gnunet/gnunet-0.9.5a.tar.gz'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/gnunet/gnunet-0.9.5a.tar.gz'
|
|
|
|
sha256 '1d600717eee1f952e23d192288850a67948e92e0b1dee5d950d111b2670cbed7'
|
2014-03-06 15:28:03 +00:00
|
|
|
revision 1
|
2012-02-24 19:39:26 +00:00
|
|
|
|
|
|
|
depends_on 'libgcrypt'
|
|
|
|
depends_on 'libextractor'
|
2013-08-11 15:44:18 +00:00
|
|
|
depends_on 'libunistring'
|
2012-09-05 04:04:01 +00:00
|
|
|
depends_on 'curl' if MacOS.version < :lion # needs >= v7.20.1
|
2012-02-24 19:39:26 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-02-24 19:39:26 +00:00
|
|
|
system "#{bin}/gnunet-search", "--version"
|
|
|
|
end
|
|
|
|
end
|