homebrew-core/Formula/cjdns.rb

32 lines
1.1 KiB
Ruby

class Cjdns < Formula
desc "Advanced mesh routing system with cryptographic addressing"
homepage "https://github.com/cjdelisle/cjdns/"
url "https://github.com/cjdelisle/cjdns/archive/cjdns-v21.1.tar.gz"
sha256 "a6158ce7847159aa44e86f74ccc7b6ded6910a230ed8f3830db53cda5838f0b0"
license all_of: ["GPL-3.0-or-later", "GPL-2.0-or-later", "BSD-3-Clause", "MIT"]
head "https://github.com/cjdelisle/cjdns.git"
bottle do
cellar :any_skip_relocation
sha256 "b57d1c38866eab0c671732fdf70890fde76e7b03a2fc6a3dc59d5dea29e9fbaa" => :big_sur
sha256 "dc8c73f740f3bfbde7db45dde12cbc57bc34c925b88a15be55e4ba47b73eb1d4" => :catalina
sha256 "6f5536caa2f432a96027fa223e20b12d54baa78f96a7d5cabb454ad380faf523" => :mojave
end
depends_on "node" => :build
def install
system "./do"
bin.install "cjdroute"
(pkgshare/"test").install "build_darwin/test_testcjdroute_c" => "cjdroute_test"
rm_f "build_darwin/test_testcjdroute_c"
(pkgshare/"test").install "build_darwin"
end
test do
cp_r pkgshare/"test/cjdroute_test", testpath
cp_r pkgshare/"test/build_darwin", testpath
system "./cjdroute_test", "all"
end
end