diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-05-15 13:59:37 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-05-15 13:59:37 +0200 |
commit | 9772c51f8450e3432e06b2562a9c62b07eea1d04 (patch) | |
tree | 5fd888b7a285169299ea4cb07009e3b550eb20f2 /contrib | |
parent | bf59da41dd5042cc679ae0e39755d9fad9cb80f0 (diff) | |
download | gnunet-9772c51f8450e3432e06b2562a9c62b07eea1d04.tar.gz gnunet-9772c51f8450e3432e06b2562a9c62b07eea1d04.zip |
update homebrew formula
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/gnunet.rb | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/contrib/gnunet.rb b/contrib/gnunet.rb index bc6afd6a6..490bcc666 100644 --- a/contrib/gnunet.rb +++ b/contrib/gnunet.rb | |||
@@ -1,8 +1,15 @@ | |||
1 | class Gnunet < Formula | 1 | class Gnunet < Formula |
2 | desc "GNUnet" | 2 | desc "Framework for distributed, secure and privacy-preserving applications" |
3 | homepage "https://gnunet.org/" | 3 | homepage "https://gnunet.org/" |
4 | url "https://ftp.gnu.org/gnu/gnunet/gnunet-0.11.0.tar.gz" | 4 | url "https://ftp.gnu.org/gnu/gnunet/gnunet-0.11.3.tar.gz" |
5 | sha256 "b7477a3c3b0d5e8a013685dc208cfb4ccee4145f8668faa8eb5b382af36c7e9a" | 5 | sha256 "2405db9232ae6ded57e7ff513abdf810c65e3861823b3985717ce990b8d87a37" |
6 | |||
7 | bottle do | ||
8 | cellar :any | ||
9 | sha256 "8a28d2c64bf814bcd629b66715b553bee3031c05f98075dd0f1bc79acb4fe840" => :mojave | ||
10 | sha256 "9fc7995800f8c74266313e9ccc274b625debc4033221dae729936821400a4c87" => :high_sierra | ||
11 | sha256 "c75feb5d2bfcb379c0025645d0d8ab7c2e5fce938901ec53c841bbeafbf684c1" => :sierra | ||
12 | end | ||
6 | 13 | ||
7 | depends_on "pkg-config" => :build | 14 | depends_on "pkg-config" => :build |
8 | depends_on "gettext" | 15 | depends_on "gettext" |
@@ -17,20 +24,12 @@ class Gnunet < Formula | |||
17 | depends_on "unbound" | 24 | depends_on "unbound" |
18 | 25 | ||
19 | def install | 26 | def install |
20 | args = %W[ | 27 | system "./configure", "--prefix=#{prefix}" |
21 | --disable-documentation | ||
22 | --prefix=#{prefix} | ||
23 | ] | ||
24 | |||
25 | system "./configure", *args | ||
26 | system "make", "install" | 28 | system "make", "install" |
27 | end | 29 | end |
28 | 30 | ||
29 | def post_install | ||
30 | chmod "+x", prefix/"bin/gnunet-qr.py" | ||
31 | end | ||
32 | |||
33 | test do | 31 | test do |
34 | system bin/"gnunet-config", "-s", "arm" | 32 | output = shell_output("#{bin}/gnunet-config -s arm") |
33 | assert_match "BINARY = gnunet-service-arm", output | ||
35 | end | 34 | end |
36 | end | 35 | end |