blob: 593dafb2957e23f53794cb0c77700443eb0ddd7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  | 
require 'formula'
class Gnunet < Formula
  homepage 'https://gnunet.org/'
  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'
  revision 1
  depends_on 'libgcrypt'
  depends_on 'libextractor'
  depends_on 'libunistring'
  depends_on 'curl' if MacOS.version < :lion # needs >= v7.20.1
  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
  test do
    system "#{bin}/gnunet-search", "--version"
  end
end
  |