aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/curlish.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/Library/Formula/curlish.rb b/Library/Formula/curlish.rb
new file mode 100644
index 000000000..eee97a98e
--- /dev/null
+++ b/Library/Formula/curlish.rb
@@ -0,0 +1,16 @@
+class Curlish < Formula
+ homepage "https://pythonhosted.org/curlish/"
+ url "https://github.com/fireteam/curlish/archive/1.22.tar.gz"
+ sha1 "45e9a7d92b5f70adf257cda3f9f0f205eef0245b"
+
+ # curlish needs argparse (2.7+)
+ depends_on :python if MacOS.version <= :snow_leopard
+
+ def install
+ bin.install "curlish.py" => "curlish"
+ end
+
+ test do
+ system "#{bin}/curlish", "http://brew.sh"
+ end
+end