8000 pdtm 0.1.1 (new formula) · Homebrew/homebrew-core@bcc40dd · GitHub
[go: up one dir, main page]

Skip to content

Commit bcc40dd

Browse files
committed
pdtm 0.1.1 (new formula)
Signed-off-by: Rui Chen <rui@chenrui.dev>
1 parent b26cd07 commit bcc40dd

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/autobump.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2796,6 +2796,7 @@ pdftk-java
27962796
pdm
27972797
pdns
27982798
pdnsrec
2799+
pdtm
27992800
pedump
28002801
pegtl
28012802
percona-toolkit

Formula/p/pdtm.rb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
class Pdtm < Formula
2+
desc "ProjectDiscovery's Open Source Tool Manager"
3+
homepage "https://github.com/projectdiscovery/pdtm"
4+
url "https://github.com/projectdiscovery/pdtm/archive/refs/tags/v0.1.1.tar.gz"
5+
sha256 "3690cc1b3746b6bf1aff04e97b190aab28e835c9270c57555e5858553f103b6f"
6+
license "MIT"
7+
head "https://github.com/projectdiscovery/pdtm.git", branch: "main"
8+
9+
depends_on "go" => :build
10+
11+
def install
12+
# bump purego dep, upstream pr ref, https://github.com/projectdiscovery/pdtm/pull/410
13+
system "go", "get", "github.com/ebitengine/purego@v0.8.3"
14+
odie "Remove purego patch" if build.stable? && version > "0.1.1"
15+
16+
system "go", "build", *std_go_args(ldflags: "-s -w"), "./cmd/pdtm"
17+
end
18+
19+
test do
20+
assert_match version.to_s, shell_output("#{bin}/pdtm -version 2>&1")
21+
assert_match "#{testpath}/.pdtm/go/bin", shell_output("#{bin}/pdtm -show-path")
22+
end
23+
end

0 commit comments

Comments
 (0)
0