radare2 2.6.0
Co-authored-by: Misty De Meo <mistydemeo@gmail.com> Closes #28296. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
This commit is contained in:
parent
11f55fe7c7
commit
78676ff220
1 changed files with 24 additions and 14 deletions
|
@ -21,25 +21,17 @@ class Radare2 < Formula
|
|||
homepage "https://radare.org"
|
||||
|
||||
stable do
|
||||
url "https://radare.mikelloc.com/get/2.5.0/radare2-2.5.0.tar.gz"
|
||||
sha256 "6713f8895fdb7855f7c28a36b14b8e17b383f0664d74122b8a0e2a8c8b5a049e"
|
||||
url "https://radare.mikelloc.com/get/2.6.0/radare2-2.6.0.tar.gz"
|
||||
sha256 "6653d5f7d10850a288abeea1ad892e2e6e0981e40bb58296d3b27ccfd88e7713"
|
||||
|
||||
resource "bindings" do
|
||||
url "https://radare.mikelloc.com/get/2.5.0/radare2-bindings-2.5.0.tar.gz"
|
||||
sha256 "f01e1530504a9d52a2ad21edbebb9b68c560b026e35fff406124947b1ea9d483"
|
||||
url "https://radare.mikelloc.com/get/2.6.0/radare2-bindings-2.6.0.tar.gz"
|
||||
sha256 "b97b256c99398d3bfc4d0b588a63814c95a028f8bb404c2512f1644b935ed824"
|
||||
end
|
||||
|
||||
resource "extras" do
|
||||
url "https://radare.mikelloc.com/get/2.5.0/radare2-extras-2.5.0.tar.gz"
|
||||
sha256 "dc7ec28cbbf0a5d3afd246f9a9d7341c4df8cf77c2719119e9294ba95ea2aad8"
|
||||
|
||||
# Remove for > 2.5.0
|
||||
# Fix "ld: library not found for -lr_reg"
|
||||
# Upstream commit from 11 Apr 2018 "x86_udis.mk: also pass LDFLAGS"
|
||||
patch do
|
||||
url "https://github.com/radare/radare2-extras/commit/8cce5eb.patch?full_index=1"
|
||||
sha256 "b02e7019ab963e5ec975997436a900b512c7cebf8652d2d7ecfa4772842a5215"
|
||||
end
|
||||
url "https://radare.mikelloc.com/get/2.6.0/radare2-extras-2.6.0.tar.gz"
|
||||
sha256 "bcc68f3facf4e977146a797d39722d0416195d4fbc835c62fcabe8b2055a94ba"
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -77,6 +69,24 @@ class Radare2 < Formula
|
|||
|
||||
depends_on CodesignRequirement if build.with? "code-signing"
|
||||
|
||||
# These three patches update the buildsystem to fix linking libr2 with openssl.
|
||||
# The first two are merged upstream, and the third has been submitted.
|
||||
# https://github.com/radare/radare2/pull/10188
|
||||
patch do
|
||||
url "https://github.com/radare/radare2/commit/3752d992f3140806ea1d513739b6f23addf52df1.patch?full_index=1"
|
||||
sha256 "ac0642a49603e572ef033c2f7c3225775b6996147bd7c7052d595b41edfdffca"
|
||||
end
|
||||
|
||||
patch do
|
||||
url "https://github.com/radare/radare2/commit/2ca2a0ae1565e89ed4c49813f05190c610fb37f1.patch?full_index=1"
|
||||
sha256 "5081a33e2af8483b035fc698c1814c1a68741aa793c5ccb60faa844343829c66"
|
||||
end
|
||||
|
||||
patch do
|
||||
url "https://github.com/Homebrew/formula-patches/raw/12d117bea567c5811a7bf1a70ccd0777ecb10997/radare2/fix_openssl_build.patch"
|
||||
sha256 "d952e048e8551017419520d29d75f988463155c2a79d89e2613423bbd9e91fd3"
|
||||
end
|
||||
|
||||
def install
|
||||
# Build Radare2 before bindings, otherwise compile = nope.
|
||||
system "./configure", "--prefix=#{prefix}", "--with-openssl"
|
||||
|
|
Loading…
Reference in a new issue