2017-01-31 10:59:52 +00:00
|
|
|
class Httest < Formula
|
|
|
|
desc "Provides a large variety of HTTP-related test functionality."
|
2017-02-13 23:55:27 +00:00
|
|
|
homepage "https://htt.sourceforge.io/"
|
2017-03-07 19:26:24 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/htt/htt2.4/httest-2.4.19/httest-2.4.19.tar.gz"
|
|
|
|
sha256 "0cf2454de50995c14c460040cdf29863dd49082805e2bc61fb6938a7042b2dbd"
|
2017-01-31 10:59:52 +00:00
|
|
|
|
2017-02-11 11:17:40 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "397795cc9e8bddc8f8a3164530eb1437735285dc3d0710868249a4e1faf28d89" => :sierra
|
|
|
|
sha256 "02ccd19470885531820f61c1734d4f024eac78b548247a68fa5f1be9f20a5501" => :el_capitan
|
|
|
|
sha256 "60b78ecb5540a2bc3d7eb7af04280943ea16c64e97f6e5d048219fb1789260aa" => :yosemite
|
|
|
|
end
|
|
|
|
|
2017-01-31 10:59:52 +00:00
|
|
|
depends_on "apr"
|
|
|
|
depends_on "apr-util"
|
|
|
|
depends_on "openssl"
|
|
|
|
depends_on "pcre"
|
|
|
|
depends_on "lua"
|
|
|
|
|
|
|
|
def install
|
2017-03-07 19:26:24 +00:00
|
|
|
(buildpath/"brew_include").install_symlink Formula["pcre"].opt_include => "pcre"
|
|
|
|
ENV.prepend "CPPFLAGS", "-I#{buildpath}/brew_include"
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2017-01-31 10:59:52 +00:00
|
|
|
"--prefix=#{prefix}",
|
2017-03-07 19:26:24 +00:00
|
|
|
"--with-apr=#{Formula["apr"].opt_bin}",
|
|
|
|
"--enable-lua-module"
|
2017-01-31 10:59:52 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test.htt").write <<-EOS.undent
|
|
|
|
CLIENT 5
|
|
|
|
_TIME time
|
|
|
|
END
|
|
|
|
EOS
|
|
|
|
system bin/"httest", "--debug", testpath/"test.htt"
|
|
|
|
end
|
|
|
|
end
|