2014-08-20 06:17:06 +00:00
|
|
|
require "formula"
|
2012-03-21 20:05:45 +00:00
|
|
|
|
|
|
|
class Wrk < Formula
|
2014-08-20 06:17:06 +00:00
|
|
|
homepage "https://github.com/wg/wrk"
|
|
|
|
url "https://github.com/wg/wrk/archive/3.1.1.tar.gz"
|
|
|
|
sha1 "7cea5d12dc5076fed1a1c730bd3e6eba832a8f61"
|
|
|
|
head "https://github.com/wg/wrk.git"
|
2014-08-22 14:08:15 +00:00
|
|
|
revision 1
|
2012-03-21 20:05:45 +00:00
|
|
|
|
2014-07-20 07:40:28 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-08-25 11:41:51 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "034ed6c6991064d72aabadec117cedc8826a5018" => :mavericks
|
|
|
|
sha1 "beec443377916519ef99e99ac443adf92aa15f59" => :mountain_lion
|
|
|
|
sha1 "9528426378a5d4d75e1ec5f7cd0d3dcbdeb775ac" => :lion
|
2014-07-20 07:40:28 +00:00
|
|
|
end
|
|
|
|
|
2014-08-20 06:17:06 +00:00
|
|
|
depends_on "openssl"
|
2014-02-10 14:10:15 +00:00
|
|
|
|
2014-08-20 06:17:06 +00:00
|
|
|
conflicts_with "wrk-trello", :because => "both install `wrk` binaries"
|
2013-11-12 15:13:00 +00:00
|
|
|
|
2012-03-21 20:05:45 +00:00
|
|
|
def install
|
2013-11-14 12:16:43 +00:00
|
|
|
ENV.j1
|
2012-03-21 20:05:45 +00:00
|
|
|
system "make"
|
|
|
|
bin.install "wrk"
|
|
|
|
end
|
|
|
|
|
2013-03-25 18:35:22 +00:00
|
|
|
test do
|
2014-07-20 07:31:33 +00:00
|
|
|
system *%W{#{bin}/wrk -c 1 -t 1 -d 1 http://example.com/}
|
2012-03-21 20:05:45 +00:00
|
|
|
end
|
|
|
|
end
|