-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- docopts does not yet have a Brew formula, so testing creating one with my tap - see also my issue: docopt/docopts#59
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
class Docopts < Formula | ||
desc "Shell interpreter for docopt, the command-line interface description language" | ||
homepage "https://github.com/docopt/docopts" | ||
url "https://github.com/docopt/docopts/archive/v0.6.4-with-no-mangle-double-dash.tar.gz" | ||
sha256 "5bf29a4eaa07cb3d1449077697d8746678cc490ee3e63cfe3e1025cebf2f4008" | ||
head "https://github.com/docopt/docopts.git", branch: "master" | ||
license "MIT" | ||
|
||
depends_on "go" => :build | ||
|
||
def install | ||
system "go", "build", "docopts.go" | ||
prefix.install_metafiles | ||
prefix.install "docopts.sh" # helper functions, meant to be sourced | ||
end | ||
|
||
test do | ||
assert_match "Shell interface for docopt, the CLI description language.", shell_output("#{bin}/docopts -h") | ||
end | ||
end |