require 'formula' class Libxmp < Formula homepage 'http://xmp.sourceforge.net' url 'http://downloads.sourceforge.net/project/xmp/libxmp/4.2.4/libxmp-4.2.4.tar.gz' sha1 '4f96481a462fead157f7cd9c4c4526b337c3e72f' head do url 'git://git.code.sf.net/p/xmp/libxmp' depends_on :autoconf end def install system "autoconf" if build.head? system "./configure", "--prefix=#{prefix}" system "make install" end end