require 'formula' class Trafshow files.collect{|p| "http://trac.macports.org/export/68507/trunk/dports/net/trafshow/files/#{p}"} } end def install # Per MacPorts, to detect OS X as the system system "cp /usr/share/libtool/config/config.* ." system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking", "--disable-slang" system "make" bin.install "trafshow" man1.install "trafshow.1" etc.install ".trafshow" => "trafshow.default" end end