homebrew-core/Formula/libpar2.rb

24 lines
654 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Libpar2 < Formula
url 'http://sourceforge.net/projects/parchive/files/libpar2/0.2/libpar2-0.2.tar.gz'
homepage 'http://parchive.sourceforge.net/'
md5 '94c6df4e38efe08056ecde2a04e0be91'
depends_on 'pkg-config' => :build
depends_on 'libsigc++'
fails_with :clang do
build '318'
cause <<-EOS.undent
./par2fileformat.h:87:25: error: flexible array member 'entries' of non-POD element type 'FILEVERIFICATIONENTRY []'
EOS
end
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end