26 lines
888 B
Ruby
26 lines
888 B
Ruby
require "language/node"
|
|
class Bit < Formula
|
|
desc "Distributed Code Component Manager"
|
|
homepage "https://www.bitsrc.io"
|
|
url "http://assets.bitsrc.io/release/0.1.0/bit_0.1.0_brew.tar.gz"
|
|
sha256 "c33c00a8334da4659b263472d013eaafbc5f0c16249e755f7624ac396d673270"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "521284d178e8899881ad7a1461ac3a4387661b489e2a9e79675ff967883edfbc" => :sierra
|
|
sha256 "06a6e114c0ce663a7bda3cc422b3c47c1c16eca598305b191e0d508baf6470d8" => :el_capitan
|
|
sha256 "86fc112094a34ee836bfe23abb3920424a50836c8c4f1a07384d558c13f47be7" => :yosemite
|
|
end
|
|
|
|
depends_on "node"
|
|
|
|
def install
|
|
system "npm", "install", "-g", *Language::Node.std_npm_install_args(libexec)
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
end
|
|
|
|
test do
|
|
assert_equal "successfully initialized an empty bit scope.\n",
|
|
shell_output("#{bin}/bit init")
|
|
end
|
|
end
|