Skip to content

Commit b48aae6

Browse files
authored
Merge pull request #224635 from Homebrew/pdtm
pdtm 0.1.3 (new formula)
2 parents 53d5324 + 7ff69b3 commit b48aae6

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/autobump.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2807,6 +2807,7 @@ pdftk-java
28072807
pdm
28082808
pdns
28092809
pdnsrec
2810+
pdtm
28102811
pedump
28112812
pegtl
28122813
percona-toolkit

Formula/p/pdtm.rb

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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.3.tar.gz"
5+
sha256 "5aa5611e3a61df37a2e4030fd8742d4a1278840fe91c1e1fde129aab81f4fe45"
6+
license "MIT"
7+
head "https://github.com/projectdiscovery/pdtm.git", branch: "main"
8+
9+
bottle do
10+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "c9ef2bbd6f036e5c3ce6629905c5c02908ca51440cad3319094771c32077962f"
11+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "96751029319e738c50fa86960e7764d68def5c5b0a08b86d4bb7aa1aafabb1ce"
12+
sha256 cellar: :any_skip_relocation, arm64_ventura: "1f8cff333aeb9050e11e8e346b54855c55a2690b697ae033db3b41a239310df1"
13+
sha256 cellar: :any_skip_relocation, sonoma: "c0f4d7527f5baa186c8cfad4d0d956b7494af38818efeee4adbc09f908b7e0cd"
14+
sha256 cellar: :any_skip_relocation, ventura: "1783d258be29384be1a3db469de6e1cd8bdfc9d077f0c6bd4bfe8861fc00f1fa"
15+
sha256 cellar: :any_skip_relocation, x86_64_linux: "6dfea4fd9e25c41239d8126f941591db53887aa456d43396bfbad42fe29b19bd"
16+
end
17+
18+
depends_on "go" => :build
19+
20+
def install
21+
system "go", "build", *std_go_args(ldflags: "-s -w"), "./cmd/pdtm"
22+
end
23+
24+
test do
25+
assert_match version.to_s, shell_output("#{bin}/pdtm -version 2>&1")
26+
assert_match "#{testpath}/.pdtm/go/bin", shell_output("#{bin}/pdtm -show-path")
27+
end
28+
end

0 commit comments

Comments
 (0)