aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2019-02-28 13:50:56 +0100
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-02-28 13:50:56 +0100
commit731c6132c4e4b2419d77d3770a654cada81e8cf2 (patch)
tree042b1e9bebf1b695d48fd9e6db8a7170db9ddd2d
parentfe64845d50e68f2b8fa623cff2da56c44c81cc19 (diff)
downloadgnunet-731c6132c4e4b2419d77d3770a654cada81e8cf2.tar.gz
gnunet-731c6132c4e4b2419d77d3770a654cada81e8cf2.zip
add 0.11 formula for homebrew
-rw-r--r--contrib/gnunet.rb25
1 files changed, 7 insertions, 18 deletions
diff --git a/contrib/gnunet.rb b/contrib/gnunet.rb
index 94625e6b8..bc6afd6a6 100644
--- a/contrib/gnunet.rb
+++ b/contrib/gnunet.rb
@@ -1,29 +1,15 @@
1class Gnunet < Formula 1class Gnunet < Formula
2 desc "GNUnet" 2 desc "GNUnet"
3 homepage "https://gnunet.org/" 3 homepage "https://gnunet.org/"
4 #url "http://ftpmirror.gnu.org/gnunet/gnunet-0.11.0pre66.tar.gz" 4 url "https://ftp.gnu.org/gnu/gnunet/gnunet-0.11.0.tar.gz"
5 head do 5 sha256 "b7477a3c3b0d5e8a013685dc208cfb4ccee4145f8668faa8eb5b382af36c7e9a"
6 url "https://gnunet.org/git/gnunet.git"
7 depends_on "automake"
8 end
9 mirror "http://ftpmirror.gnu.org/gnunet/gnunet-0.11.0pre66.tar.gz"
10 sha256 "07ed1e456c0cc982fe4c6d335eb2fd41820eb24dcf1c9abc93dad868aa72edbf"
11
12 #bottle do
13 # cellar :any
14 # sha256 "7507da89370f72be8fb22d1932524295231904a2a180ff0bfc4a14d3bd496e31" => :mojave
15 # sha256 "3bdf1fbe152231ba3a9cd19445c242cfb14140fa942a1df03af5c69754e09225" => :high_sierra
16 # sha256 "6dec32c6b29e69d051edd1220bc040cb01911cd20220687dd09bf6e76317b42a" => :sierra
17 #end
18 6
19 depends_on "pkg-config" => :build 7 depends_on "pkg-config" => :build
20 depends_on "glpk"
21 depends_on "gettext" 8 depends_on "gettext"
22 depends_on "gnutls" 9 depends_on "gnutls"
23 depends_on "jansson" 10 depends_on "jansson"
24 depends_on "libextractor" 11 depends_on "libextractor"
25 depends_on "libgcrypt" 12 depends_on "libgcrypt"
26 depends_on "libffi"
27 depends_on "libidn2" 13 depends_on "libidn2"
28 depends_on "libmicrohttpd" 14 depends_on "libmicrohttpd"
29 depends_on "libmpc" 15 depends_on "libmpc"
@@ -36,12 +22,15 @@ class Gnunet < Formula
36 --prefix=#{prefix} 22 --prefix=#{prefix}
37 ] 23 ]
38 24
39 system "./bootstrap" if build.head?
40 system "./configure", *args 25 system "./configure", *args
41 system "make", "install" 26 system "make", "install"
42 end 27 end
43 28
29 def post_install
30 chmod "+x", prefix/"bin/gnunet-qr.py"
31 end
32
44 test do 33 test do
45 system bin/"gnutls-arm", "--version" 34 system bin/"gnunet-config", "-s", "arm"
46 end 35 end
47end 36end