git-town 4.0.0

depends on go
no longer bottle unneeded
drop support for Yosemite and below
don't install outdated man files

Closes #13537.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2017-05-13 08:01:37 -07:00
parent 2422287129
commit a3f9890578

View file

@ -1,15 +1,17 @@
class GitTown < Formula class GitTown < Formula
desc "High-level command-line interface for Git" desc "High-level command-line interface for Git"
homepage "http://www.git-town.com" homepage "http://www.git-town.com"
url "https://github.com/Originate/git-town/archive/v3.1.0.tar.gz" url "https://github.com/Originate/git-town/archive/v4.0.0.tar.gz"
sha256 "3a7227e99a1d5824d191769866c28a8d4fc6b4b0ac4cef278fc5cf9c1f033327" sha256 "4145a77ee7fe1f4579d04dfcc0a4658a21db4e07e80d7dd79328162f12797193"
bottle :unneeded depends_on "go" => :build
depends_on :macos => :el_capitan
def install def install
libexec.install Dir["src/*"] ENV["GOPATH"] = buildpath
bin.write_exec_script Dir["#{libexec}/git-*"] (buildpath/"src/github.com/Originate").mkpath
man1.install Dir["man/man1/*"] ln_sf buildpath, buildpath/"src/github.com/Originate/git-town"
system "go", "build", "-o", bin/"git-town"
end end
test do test do