Skip to content

Instantly share code, notes, and snippets.

@Congee
Created March 30, 2015 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Congee/825d704d53ceaf7827e6 to your computer and use it in GitHub Desktop.
Save Congee/825d704d53ceaf7827e6 to your computer and use it in GitHub Desktop.
radare2 homebrew
require "formula"
class R2 < Formula
homepage "http://radare.org"
revision 2
head do
url "https://github.com/radare/radare2.git"
resource "bindings" do
url "https://github.com/radare/radare2-bindings.git"
end
end
depends_on "pkg-config" => :build
#depends_on "valabind" => :build
#depends_on "swig" => :build
#depends_on "gobject-introspection" => :build
#depends_on "libewf"
#depends_on "libmagic"
depends_on "gmp"
#depends_on "lua51" # It seems to latch onto Lua51 rather than Lua. Enquire this upstream.
depends_on "openssl"
def install
# Build Radare2 before bindings, otherwise compile = nope.
system "./configure", "--prefix=#{prefix}", "--with-openssl"
system "make"
system "make", "install"
#resource("bindings").stage do
# ENV.append_path "PKG_CONFIG_PATH", "#{lib}/pkgconfig"
# system "./configure", "--prefix=#{prefix}"
# system "make"
# system "make", "install", "DESTDIR=#{prefix}"
#end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment