2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-23 18:46:43 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Par2 < Formula
|
2010-04-07 05:58:35 +00:00
|
|
|
homepage 'http://parchive.sourceforge.net/'
|
2012-02-11 04:43:19 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/parchive/par2cmdline/0.4/par2cmdline-0.4.tar.gz'
|
2010-04-07 05:58:35 +00:00
|
|
|
sha1 '2fcdc932b5d7b4b1c68c4a4ca855ca913d464d2f'
|
2009-09-23 18:46:43 +00:00
|
|
|
|
|
|
|
def patches
|
2012-06-13 23:27:16 +00:00
|
|
|
"http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-arch/par2cmdline/files/par2cmdline-0.4-gcc4.patch?revision=1.1"
|
2009-09-23 18:46:43 +00:00
|
|
|
end
|
|
|
|
|
2012-06-15 00:02:12 +00:00
|
|
|
fails_with :clang do
|
|
|
|
build 318
|
|
|
|
cause "./par2fileformat.h:87:25: error: flexible array member 'entries' of non-POD element type 'FILEVERIFICATIONENTRY []'"
|
|
|
|
end
|
|
|
|
|
2009-09-23 18:46:43 +00:00
|
|
|
def install
|
2012-02-11 04:43:19 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2009-09-23 18:46:43 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|