require 'formula' class Cgdb [ "http://trac.macports.org/export/73182/trunk/dports/devel/cgdb/files/patch-various-util-src-pseudo.c.diff", "http://trac.macports.org/export/73182/trunk/dports/devel/cgdb/files/patch-implicit-declaration-of-cgdb_malloc.diff" ]} end def install system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", "--with-readline=#{Formula.factory('readline').prefix}" system "make install" end end