homebrew-core/Formula/git-vendor.rb

27 lines
992 B
Ruby

class GitVendor < Formula
desc "Command for managing git vendored dependencies"
homepage "https://brettlangdon.github.io/git-vendor"
url "https://github.com/brettlangdon/git-vendor/archive/v1.3.0.tar.gz"
sha256 "774c0ba9596f3231c846dad096f61d7e2906f6fad38c031bf6c01bb8d6c0a338"
license "MIT"
head "https://github.com/brettlangdon/git-vendor.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, all: "8123246395ec3af5b972d961eda517a523b8c0807b6cc3e25aba2bc09c46230b"
end
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