fix removal of file for make dist
[oweals/gnunet.git] / contrib / gnunet.rb
1 class Gnunet < Formula
2   desc "Framework for distributed, secure and privacy-preserving applications"
3   homepage "https://gnunet.org/"
4   url "https://ftp.gnu.org/gnu/gnunet/gnunet-0.11.5.tar.gz"
5   sha256 "98e0355ff0627bf88112b3b92a7522e98c0ae6071fc45efda5a33daed28199b3"
6
7   bottle do
8     cellar :any
9     sha256 "3c2971584ed0a709b5c59c3f844e5966049b90461043af93ba10e167c134a284" => :mojave
10     sha256 "81e3f400e41674f919a2656217bd4e1ce825505d9e3939acdc0b3efcfa8949d4" => :high_sierra
11     sha256 "0d5a57bacf57f3a78b2a96e1c0b9d22db5385255211b5bd9b8334ffe57925136" => :sierra
12   end
13
14   depends_on "pkg-config" => :build
15   depends_on "gettext"
16   depends_on "gnutls"
17   depends_on "jansson"
18   depends_on "libextractor"
19   depends_on "libgcrypt"
20   depends_on "libidn2"
21   depends_on "libmicrohttpd"
22   depends_on "libmpc"
23   depends_on "libunistring"
24   depends_on "unbound"
25
26   def install
27     system "./configure", "--prefix=#{prefix}"
28     system "make", "install"
29   end
30
31   test do
32     output = shell_output("#{bin}/gnunet-config -s arm")
33     assert_match "BINARY = gnunet-service-arm", output
34   end
35 end