2012-02-24 19:39:26 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Gnunet < Formula
|
|
|
|
homepage 'https://gnunet.org/'
|
2012-06-05 20:05:58 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/gnunet/gnunet-0.9.3.tar.gz'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/gnunet/gnunet-0.9.3.tar.gz'
|
|
|
|
sha256 '50586ba4f82c4890f191bd79b1bb6504a5e9b9f90371f0c011879f25f9cef15e'
|
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
|
|
|
|
|
|
|
|
def test
|
|
|
|
system "#{bin}/gnunet-search", "--version"
|
|
|
|
end
|
|
|
|
end
|