Skip to content

Ghidra 11.3.2 (new formula) #226642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions Formula/g/ghidra.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
class Ghidra < Formula
desc "Multi-platform software reverse engineering framework"
homepage "https://www.nsa.gov/ghidra"
version "11.3.2"
url "https://github.com/NationalSecurityAgency/ghidra/archive/refs/tags/Ghidra_#{version}_build.tar.gz"
sha256 "cb456614e125fc9958bc46104d3e6d688f718a79bbb81da850a1f3719f2fc4b6"
license "Apache-2.0"

depends_on "gcc" => :build # Ghidra build system also supports g++ and clang
depends_on "gradle" => :build
depends_on "make" => :build
depends_on "[email protected]" => :build
depends_on "openjdk"
def install
inreplace "Ghidra/application.properties", "DEV", "PUBLIC" # Mark as a release
system "gradle", "-I", "gradle/support/fetchDependencies.gradle"
system "gradle", "buildNatives"
system "gradle", "assembleAll"

prefix.install Dir["build/dist/ghidra_#{version}_PUBLIC/*"]
bin.install_symlink prefix/"ghidraRun"
end

test do
(testpath/"project").mkpath
mkdir("#{HOMEBREW_CACHE}/java_cache")
system "#{prefix}/support/analyzeHeadless", "#{testpath}/project", "HomebrewTest", "-import", "/bin/bash", "-noanalysis"
assert_path_exists testpath/"project/HomebrewTest.rep"
end
end
Loading