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