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.12.1.tar.gz" sha256 "65b2138381a6a2d5a10f789b45f3472ceed2bf2cdfa35e88adfb262fd058fb48" revision 1 bottle do cellar :any sha256 "4f81e7cd663292f2f313d3f32748615c935c999ca821d63905e0f7d5872cc56f" => :high_sierra sha256 "0a2151ec4f734621335d8897efc686b3da30850a0d376f3e4429d5cf7c016df6" => :sierra sha256 "1e76be70156926a934dea21e45a3c8cb5e1da6b57c39ee925c3f818a580e6174" => :el_capitan sha256 "464498dac0ddb615680d42ff71a1eb98e4fbe6788313a48eda9b3c0fdafb3cb3" => :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