2011-01-20 22:25:09 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libpar2 < Formula
|
2011-01-20 22:25:09 +00:00
|
|
|
url 'http://sourceforge.net/projects/parchive/files/libpar2/0.2/libpar2-0.2.tar.gz'
|
|
|
|
homepage 'http://parchive.sourceforge.net/'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '4b3da928ea6097a8299aadafa703fc6d59bdfb4b'
|
2011-01-20 22:25:09 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'libsigc++'
|
|
|
|
|
2012-04-28 17:16:57 +00:00
|
|
|
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
|
|
|
|
|
2011-01-20 22:25:09 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|