29 lines
1 KiB
Ruby
29 lines
1 KiB
Ruby
class Stgit < Formula
|
|
desc "Push/pop utility built on top of Git"
|
|
homepage "https://github.com/ctmarinas/stgit"
|
|
url "https://github.com/ctmarinas/stgit/archive/v0.20.tar.gz"
|
|
sha256 "87f590387d780db769d38f48afb052e3717ed88f9b60bd71c2c54d04e22b97e2"
|
|
head "https://github.com/ctmarinas/stgit.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "751882c2e3156de10390ff47553956dc2d05269a420900e420735910900b156e" => :catalina
|
|
sha256 "29fe9836395278c617b1e7086e14d2ff8f538809a2e6f919842c57f659bd4912" => :mojave
|
|
sha256 "29fe9836395278c617b1e7086e14d2ff8f538809a2e6f919842c57f659bd4912" => :high_sierra
|
|
end
|
|
|
|
def install
|
|
ENV["PYTHON"] = "python" # overrides 'python2' built into makefile
|
|
system "make", "prefix=#{prefix}", "all"
|
|
system "make", "prefix=#{prefix}", "install"
|
|
end
|
|
|
|
test do
|
|
system "git", "init"
|
|
(testpath/"test").write "test"
|
|
system "git", "add", "test"
|
|
system "git", "commit", "--message", "Initial commit", "test"
|
|
system "#{bin}/stg", "init"
|
|
system "#{bin}/stg", "log"
|
|
end
|
|
end
|