82f0c6fda4
c.f. Homebrew/homebrew#16094. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
23 lines
661 B
Ruby
23 lines
661 B
Ruby
require 'formula'
|
|
|
|
class Libpar2 < Formula
|
|
url 'http://sourceforge.net/projects/parchive/files/libpar2/0.2/libpar2-0.2.tar.gz'
|
|
homepage 'http://parchive.sourceforge.net/'
|
|
sha1 '4b3da928ea6097a8299aadafa703fc6d59bdfb4b'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'libsigc++'
|
|
|
|
fails_with :clang do
|
|
build 421
|
|
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
|