Created
September 6, 2018 06:00
-
-
Save rk295/1c76fe180fb3938773a4cbeed6f0fd20 to your computer and use it in GitHub Desktop.
Jamal formula for brew
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Jamal < Formula | |
desc "YAML to JSON and JSON to YAML conversion tool" | |
homepage "https://github.com/quantumew/jamal" | |
url "https://github.com/quantumew/jamal/archive/v1.0.0.tar.gz" | |
version "1.0.0" | |
sha256 "959d6ced5182114efa28dd9ba0aa06157d7c32842cda7719c2f5ce5a464c4b9d" | |
revision 1 | |
depends_on "go" => :build | |
def install | |
ENV["GOPATH"] = buildpath | |
(buildpath/"src/github.com/quantumew/jamal").install buildpath.children | |
cd "src/github.com/quantumew/jamal" do | |
system "go", "get" | |
system "go", "build", "-o", "#{bin}/jamal" | |
end | |
end | |
test do | |
system bin/"jamal", "--help" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wrote this, then tried to submit it to the master list but got this error:
The first one I could probably work with Andy to fix, the last one not so much. 😢