aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/par2.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/par2.rb')
-rw-r--r--Library/Formula/par2.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/Library/Formula/par2.rb b/Library/Formula/par2.rb
index a8de15ced..9e29ef50b 100644
--- a/Library/Formula/par2.rb
+++ b/Library/Formula/par2.rb
@@ -8,13 +8,13 @@ class Par2 < Formula
conflicts_with "par2tbb",
:because => "par2 and par2tbb install the same binaries."
- def patches
- [
- # Fixes compilation with GCC 4 and still required for clang
- "http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-arch/par2cmdline/files/par2cmdline-0.4-gcc4.patch?revision=1.1",
- # Clang doesn't like variable length arrays of non-POD types.
- DATA
- ]
+ # Clang doesn't like variable length arrays of non-POD types.
+ patch :DATA
+
+ # Fixes compilation with GCC 4 and still required for clang
+ patch do
+ url "http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-arch/par2cmdline/files/par2cmdline-0.4-gcc4.patch?revision=1.1"
+ sha1 "e91540f729115c5ddc210c93bdda34090e2a2cf1"
end
def install