require 'formula' class Rrdtool :optional def install system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--enable-perl-site-install", "--enable-ruby-site-install", # Installing directly into Homebrew's Python's site-packages # can break things, so we disable this for now. # TODO: how to build Python support w/o installing it. "--disable-python" system "make install" end def test # Test ruby support; currently fails. system "ruby", "-e", "require 'RRD'" end end