homebrew-core/Formula/bit.rb

27 lines
973 B
Ruby
Raw Normal View History

require "language/node"
class Bit < Formula
desc "Distributed Code Component Manager"
homepage "https://www.bitsrc.io"
url "https://bitsrc.jfrog.io/bitsrc/bit-brew/stable/bit/0.6.0/bit-0.6.0-brew.tar.gz"
sha256 "9c24796300d53d7cd1a1b14abc2456505692bb6193df9537f9e550698be719f1"
2017-03-07 16:33:40 +00:00
bottle do
2017-04-04 15:13:49 +00:00
cellar :any_skip_relocation
2017-05-15 12:56:11 +00:00
sha256 "1d7402ed5fdc6c857f14f865bdee62b100930f4187d31ad84a649e88fb62f45a" => :sierra
sha256 "f4cf14bb7eb79800cde0cdf752130b8de850f17431e43f145b04c5d1437896d8" => :el_capitan
sha256 "f4cf14bb7eb79800cde0cdf752130b8de850f17431e43f145b04c5d1437896d8" => :yosemite
2017-03-07 16:33:40 +00:00
end
def install
libexec.install Dir["*"]
bin.install_symlink Dir["#{libexec}/bin/bit"]
bin.install_symlink Dir["#{libexec}/bin/bit.js"]
bin.install_symlink "#{libexec}/bin/node" => "bitNode"
end
test do
assert_equal "successfully initialized an empty bit scope.\n",
shell_output("#{bin}/bit init --skip-update")
end
end