Skip to content

Commit

Permalink
feat(magnetico): add tgragnato/magnetico version 1.61.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tgragnato committed Sep 7, 2024
1 parent 63bb8de commit d04cfd6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ jobs:
- run: brew test-bot --only-tap-syntax

- run: brew test-bot --only-formulae --root-url=https://ghcr.io/v2/tgragnato/tap amule

- run: brew test-bot --only-formulae --root-url=https://ghcr.io/v2/tgragnato/tap magnetico
22 changes: 22 additions & 0 deletions Formula/magnetico.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
class Magnetico < Formula
desc "Autonomous (self-hosted) BitTorrent DHT search engine suite"
homepage "https://github.com/tgragnato/magnetico/"
url "https://github.com/tgragnato/magnetico.git",
tag: "v1.61.2",
revision: "5ed053c9c2d38c6650bc6ba22935326dc6d3b378"
license "AGPL-3.0-only"

depends_on "go" => :build
depends_on "czmq" => :build

Check failure on line 10 in Formula/magnetico.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-latest)

FormulaAudit/DependencyOrder: dependency "czmq" (line 10) should be put before dependency "go" (line 9)

def install
ENV["CGO_ENABLED"] = "1"
ENV["GOPATH"] = buildpath
system "go", "build", *std_go_args, "-o", bin/"magnetico", "."
end

test do
system "go", "test", "./..."
system "#{bin}/magnetico", "--version"
end
end

0 comments on commit d04cfd6

Please sign in to comment.