Skip to content

Commit a36a307

Browse files
authored
Merge pull request Homebrew#194101 from branchvincent/pidcat
pidcat: use macos python
2 parents fa476e0 + fd4495c commit a36a307

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Formula/p/pidcat.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ class Pidcat < Formula
99
head "https://github.com/JakeWharton/pidcat.git", branch: "master"
1010

1111
bottle do
12-
rebuild 1
13-
sha256 cellar: :any_skip_relocation, all: "2d0412351f2c3bc45c8b43d8aa9a9e3f1892f22824db054008d1efbef344a3d4"
12+
rebuild 2
13+
sha256 cellar: :any_skip_relocation, all: "c340b62825f294103c9e4866ca70e7cc13b85fd6adafcee7d9661bfad1743949"
1414
end
1515

16-
depends_on "python@3.12"
16+
uses_from_macos "python"
1717

1818
def install
19-
rewrite_shebang detected_python_shebang, "pidcat.py"
19+
# FIXME: `detected_python_shebang` doesn't correctly handle shebang with arguments
20+
inreplace "pidcat.py", "#!/usr/bin/python -u", "#!/usr/bin/env -S python3 -u"
2021
bin.install "pidcat.py" => "pidcat"
2122

2223
bash_completion.install "bash_completion.d/pidcat"

0 commit comments

Comments
 (0)