27 lines
992 B
Ruby
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.2.2.tar.gz"
|
|
sha256 "f7b3b73ab2246a7572d55eec4e634467bd1ae9414aae8f11a1d4e59e587326ca"
|
|
license "MIT"
|
|
head "https://github.com/brettlangdon/git-vendor.git", branch: "master"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "e1829f03d6c7439fa2ee659fce71db2cc3bc159477d58233d497125fbc14c281"
|
|
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
|