require "formula" class Metaproxy < Formula homepage "http://www.indexdata.com/metaproxy" url "http://ftp.indexdata.dk/pub/metaproxy/metaproxy-1.5.3.tar.gz" sha1 "8f089512e8ef55cdc3e781f78a6ac335fc4ce334" bottle do cellar :any sha1 "40302a5cfecab138701d80cb7080d0078df8e306" => :mavericks sha1 "8ee2a3af239c97321db7f7859fdbf7eb9d76c78f" => :mountain_lion sha1 "98740e4f1059e72d7698bd804ee1e1917f272616" => :lion end depends_on "pkg-config" => :build depends_on "yazpp" depends_on "boost" def install system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make", "install" end # Test by making metaproxy test a trivial configuration file (etc/config0.xml). test do (testpath/"test-config.xml").write <<-EOS.undent @:9070 FN /fn_stat EOS system "#{bin}/metaproxy", "-t", "--config", "#{testpath}/test-config.xml" end end