Skip to content

Commit 5960fe6

Browse files
committed
patchpal v0.4.0: (new formula)
Initial homebrew packaging. This is software developed by some folks at Red Hat, looking to improve the patch backporting experience, even for those using macOS. It's a rust-based frontend that can be run entirely without the backend, but can also hook into a python-based backend AI server that helps provide AI assistance with backporting patches from a development branch to an older stable maintenance branch, such as, say, from the upstream Linux kernel branch to an old Red Hat Enterprise Linux kernel branch. Signed-off-by: Jarod Wilson <jarod@redhat.com>
1 parent cdac3d3 commit 5960fe6

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Formula/p/patchpal.rb

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
class Patchpal < Formula
2+
desc "AI Assisted Patch Backporting Tool Frontend"
3+
homepage "https://gitlab.com/patchpal-ai/patchpal-gui"
4+
url "https://gitlab.com/patchpal-ai/patchpal-gui/-/archive/v0.4.0/patchpal-gui-v0.4.0.tar.bz2"
5+
sha256 "69e949af1c458879ffbc7198fffc16f7fae288825dc012045224d108be9be339"
6+
license "Apache-2.0"
7+
8+
depends_on "llvm" => :build
9+
depends_on "pkgconf" => :build
10+
depends_on "rust" => :build
11+
12+
depends_on "cairo"
13+
depends_on "gdk-pixbuf"
14+
depends_on "glib"
15+
depends_on "graphene"
16+
depends_on "gtk4"
17+
depends_on "pango"
18+
19+
def install
20+
inreplace "tests/run.sh", "readlink -e", "echo"
21+
inreplace "tests/run.sh", "target/release/patchpal", "bin/patchpal"
22+
system "cargo", "install", *std_cargo_args
23+
prefix.install "tests"
24+
end
25+
26+
test do
27+
system "#{prefix}/tests/run.sh"
28+
end
29+
end

0 commit comments

Comments
 (0)