homebrew-core/Formula/cartridge-cli.rb
2019-11-19 21:00:50 -05:00

31 lines
1.1 KiB
Ruby

class CartridgeCli < Formula
desc "Tarantool Cartridge command-line utility"
homepage "https://tarantool.org/"
url "https://github.com/tarantool/cartridge-cli/archive/1.2.0.tar.gz"
sha256 "4668f84a779eb8f6ddfcafaf4c727899ef2fe31622e8999317c512b685bd1c31"
head "https://github.com/tarantool/cartridge-cli.git"
bottle do
cellar :any_skip_relocation
sha256 "a4790082a90287ce8911c60c2dc9fb7a2d60dcddcd4da17f94779332c4028958" => :catalina
sha256 "a4790082a90287ce8911c60c2dc9fb7a2d60dcddcd4da17f94779332c4028958" => :mojave
sha256 "a4790082a90287ce8911c60c2dc9fb7a2d60dcddcd4da17f94779332c4028958" => :high_sierra
end
depends_on "cmake" => :build
depends_on "tarantool"
def install
system "cmake", ".", *std_cmake_args, "-DVERSION=#{version}"
system "make"
system "make", "install"
end
test do
project_path = Pathname("test-project")
project_path.rmtree if project_path.exist?
system bin/"cartridge", "create", "--name", project_path
assert_predicate project_path, :exist?
assert_predicate project_path.join("init.lua"), :exist?
end
end