2016-02-16 18:32:23 +00:00
|
|
|
class GitVendor < Formula
|
|
|
|
desc "command for managing git vendored dependencies"
|
|
|
|
homepage "https://brettlangdon.github.io/git-vendor"
|
2016-04-25 00:37:27 +00:00
|
|
|
url "https://github.com/brettlangdon/git-vendor/archive/v1.1.2.tar.gz"
|
|
|
|
sha256 "1ae2c12ae535669d0f65d297f5ff79d36d37dabf372feb6bda3f7856cf14ef97"
|
2016-02-16 18:32:23 +00:00
|
|
|
head "https://github.com/brettlangdon/git-vendor.git"
|
|
|
|
|
2016-02-19 16:44:22 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-09-25 04:24:13 +00:00
|
|
|
sha256 "24e13e681254ae28aae5d51dffda26d70c0cbfbca7c52b61f16f7496822c7d1f" => :sierra
|
2016-04-25 01:16:24 +00:00
|
|
|
sha256 "9461c5ce8f0b418d4ab1180c1fff22ef847b0d0af740489b3553d1715a8dc8c0" => :el_capitan
|
|
|
|
sha256 "62a8d29afff9e7e99c93917cfee92a68495443234346a72f16c8167d6310126a" => :yosemite
|
|
|
|
sha256 "962f05607dbd8ea0669f081039ce2fad01cddcdbfe53859b57c9ef69d89cde45" => :mavericks
|
2016-02-19 16:44:22 +00:00
|
|
|
end
|
|
|
|
|
2016-02-16 18:32:23 +00:00
|
|
|
def install
|
|
|
|
system "make", "PREFIX=#{prefix}", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "git", "init"
|
|
|
|
system "git", "config", "user.email", "author@example.com"
|
|
|
|
system "git", "config", "user.name", "Au Thor"
|
|
|
|
system "git", "add", "."
|
|
|
|
system "git", "commit", "-m", "Initial commit"
|
|
|
|
system "git", "vendor", "add", "git-vendor", "https://github.com/brettlangdon/git-vendor", "v1.1.0"
|
|
|
|
assert_match "git-vendor@v1.1.0", shell_output("git vendor list")
|
|
|
|
end
|
|
|
|
end
|