homebrew-core/Formula/keystone.rb

28 lines
1.2 KiB
Ruby

class Keystone < Formula
desc "Assembler framework: Core + bindings"
homepage "https://www.keystone-engine.org/"
url "https://github.com/keystone-engine/keystone/archive/0.9.2.tar.gz"
sha256 "c9b3a343ed3e05ee168d29daf89820aff9effb2c74c6803c2d9e21d55b5b7c24"
license "GPL-2.0"
head "https://github.com/keystone-engine/keystone.git"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "26b09a5083cf57b1004ad52ce590d1a6a0a4208d59176d40ec39d1be65377353"
sha256 cellar: :any_skip_relocation, big_sur: "2274b6cf90bf0b1b49d3aa6e0a527911e71438903c228bfd37644d58ac3ad22d"
sha256 cellar: :any_skip_relocation, catalina: "84cdef2aa8a5697ce2fc62e6ae1316f2dcca6fcd0f92d2bba68b399af9c48440"
sha256 cellar: :any_skip_relocation, mojave: "814feeee85e111a21fdd287fbed3fca3e1cd86be396dcba7612c3e1aec7dd4d3"
sha256 cellar: :any_skip_relocation, high_sierra: "77740af9b9e48baaf0a7d1dc4d74b883c1babbaab6a7e9bf65a00035b59c546d"
end
depends_on "cmake" => :build
def install
system "cmake", ".", *std_cmake_args
system "make", "install"
end
test do
assert_equal "nop = [ 90 ]", shell_output("#{bin}/kstool x16 nop").strip
end
end