require "formula" class Metaproxy < Formula homepage "http://www.indexdata.com/metaproxy" url "http://ftp.indexdata.dk/pub/metaproxy/metaproxy-1.4.6.tar.gz" sha1 "bb36efb7d2f2d16aec1ee9c62dda10e6e3c4b995" 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