class SimpleObfs < Formula desc "Simple obfusacting plugin of shadowsocks-libev" homepage "https://github.com/shadowsocks/simple-obfs" url "https://github.com/shadowsocks/simple-obfs.git", :tag => "v0.0.5", :revision => "a9c43588e4cb038e6ac02f050e4cab81f8228dff" revision 1 bottle do cellar :any sha256 "64ac7bb71b3dd0a0d087d7f981c53516abfb294f709d84cb969b192456310c51" => :catalina sha256 "7d00695065a2e780f6a93d98d3d2a96ebe4c02fe48e52e30cea4fefe353100e8" => :mojave sha256 "08024887dc9fba3f56425181dd34dba1ecf185dad688b85d20a7b70ec07afbae" => :high_sierra sha256 "831de4a180d61c801397ead63a0130d8d2eb102afb526ef81bcecb2f9d1d029b" => :sierra sha256 "eccfcd8d4016297999d730fd185624b42e903f7dfac43bd6227c337c2b3aafea" => :el_capitan end depends_on "asciidoc" => :build depends_on "autoconf" => :build depends_on "automake" => :build depends_on "libtool" => :build depends_on "xmlto" => :build depends_on "libev" def install ENV["XML_CATALOG_FILES"] = etc/"xml/catalog" system "./autogen.sh" system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking", "--enable-applecc" system "make" system "make", "install" end test do assert_match "simple-obfs", shell_output("#{bin}/obfs-local -h 2>&1") end end