class Metaproxy < Formula desc "Z39.50 proxy and router utilizing Yaz toolkit" homepage "https://www.indexdata.com/metaproxy" url "http://ftp.indexdata.dk/pub/metaproxy/metaproxy-1.11.8.tar.gz" sha256 "9060db1fca1187077f7c9e274e6118add5770a4cbd849286a755b49e4be59d68" revision 1 bottle do cellar :any sha256 "d4ebfccd257fa5d8db787cdb6d9ecf0f7f1aaed9d64999e711186f8ecf451ed4" => :sierra sha256 "d3227915e5c8dd8ffb54eb046d361527405ed0a1f983048dfcb2cc4897fa57dd" => :el_capitan sha256 "a9b1366a328860394b83b1f486a858b9d88c827e8318e9bec0ea46defbb65657" => :yosemite 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