From ca05bf41dae1dcaca1603d1679ff75b103ec4ae6 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Fri, 13 Dec 2024 23:26:04 -0500 Subject: [PATCH 1/2] sendme 0.20.0 (new formula) Signed-off-by: Rui Chen --- .github/autobump.txt | 1 + Formula/s/sendme.rb | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 Formula/s/sendme.rb diff --git a/.github/autobump.txt b/.github/autobump.txt index f3a4b83d87c52..6281b1d93d19f 100644 --- a/.github/autobump.txt +++ b/.github/autobump.txt @@ -2705,6 +2705,7 @@ securefs selene selenium-server semgrep +sendme sentencepiece seqkit sequin diff --git a/Formula/s/sendme.rb b/Formula/s/sendme.rb new file mode 100644 index 0000000000000..0bb5559028ac9 --- /dev/null +++ b/Formula/s/sendme.rb @@ -0,0 +1,29 @@ +class Sendme < Formula + desc "Tool to send files and directories, based on iroh" + homepage "https://iroh.computer/sendme" + url "https://github.com/n0-computer/sendme/archive/refs/tags/v0.20.0.tar.gz" + sha256 "1d69c1132e6da654f03a4b0ee57f47c1c67c99a05cc411d0198c75f560a129e2" + license "MIT" + head "https://github.com/n0-computer/sendme.git", branch: "main" + + depends_on "rust" => :build + + def install + system "cargo", "install", *std_cargo_args + end + + test do + assert_match version.to_s, shell_output("#{bin}/sendme --version") + + begin + output_log = testpath/"output.log" + pid = spawn bin/"sendme", "send", bin/"sendme", [:out, :err] => output_log.to_s + sleep 2 + assert_match "imported file #{bin}/sendme", output_log.read + assert_match "to get this data, use\nsendme receive", output_log.read + ensure + Process.kill("TERM", pid) + Process.wait(pid) + end + end +end From a16292916d44514b50b6e5932089f2fc6e7a64e2 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 15 Dec 2024 04:18:59 +0000 Subject: [PATCH 2/2] sendme: add 0.20.0 bottle. --- Formula/s/sendme.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Formula/s/sendme.rb b/Formula/s/sendme.rb index 0bb5559028ac9..4936a6ee9f1dc 100644 --- a/Formula/s/sendme.rb +++ b/Formula/s/sendme.rb @@ -6,6 +6,15 @@ class Sendme < Formula license "MIT" head "https://github.com/n0-computer/sendme.git", branch: "main" + bottle do + sha256 cellar: :any_skip_relocation, arm64_sequoia: "009742856c7989e0c079dc07f8dd8e29cde7d090758b79439b77df5e5348c12d" + sha256 cellar: :any_skip_relocation, arm64_sonoma: "35e189943605eee575b0ddb7eea8a2b786ff73702b48f859751cc8bd28e5f6f6" + sha256 cellar: :any_skip_relocation, arm64_ventura: "20920b258f088a7e190b751d0de305c0b52a5a60abc348d088202fabaf11c55c" + sha256 cellar: :any_skip_relocation, sonoma: "500c4f0987b1dd5fa6269f2a6b525f10f1a0ef09ce47316d7b4940c7069a60f5" + sha256 cellar: :any_skip_relocation, ventura: "b6b8cb416cb23b3ab863d81ab788e582e76ddfbf0510f9db7d069d8d33c551ca" + sha256 cellar: :any_skip_relocation, x86_64_linux: "5a1f013adf0db044df5de27999423c80d5edbb6926c8d7401f33d5ff7f21e10b" + end + depends_on "rust" => :build def install