homebrew-core/Formula/valabind.rb
2017-04-23 17:22:01 +02:00

45 lines
1.4 KiB
Ruby

class Valabind < Formula
desc "Vala bindings for radare, reverse engineering framework"
homepage "https://radare.org/"
revision 4
head "https://github.com/radare/valabind.git"
stable do
url "https://www.radare.org/get/valabind-0.10.0.tar.gz"
sha256 "35517455b4869138328513aa24518b46debca67cf969f227336af264b8811c19"
# patch necessary to support vala 0.36.0
# remove upon next release
patch do
url "https://github.com/radare/valabind/commit/f23ff9421c1875d18b1e558596557009b45faa19.patch"
sha256 "9fe8f9485e1a4f52c68831670b880efcbbae33c6bc70e67297a00cc1d2fe0d4f"
end
# patch to support BSD sed
# remove upon next release
patch do
url "https://github.com/radare/valabind/commit/03762a0fca7ff4bbfe3e668f70bb75422e05ac07.patch"
sha256 "13c5712ed5b081135d1e2df0dd04e1a05856b76de1e0acfef838c2fbc76964c5"
end
end
bottle do
cellar :any
sha256 "43ebff45cdbe8c7f8fcc098e65b37e07356e3f2889cd9ca674d90c7640d34cfa" => :sierra
sha256 "aa97b62c200bbf957d1e312bbd99f8f2100addbd43076b1a385c7e24321f6f9c" => :el_capitan
sha256 "b916fc236518c29a64f7f86e7b0be611564532ab21855822be966107e52d8103" => :yosemite
end
depends_on "pkg-config" => :build
depends_on "swig" => :run
depends_on "vala"
def install
system "make"
system "make", "install", "PREFIX=#{prefix}"
end
test do
system bin/"valabind", "--help"
end
end