From bbf6eea1349bed001e0b2c9d141ae573263ed5d0 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 14 Mar 2014 16:24:11 -0500 Subject: [PATCH] unrtf: use checksummed patches --- Formula/unrtf.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Formula/unrtf.rb b/Formula/unrtf.rb index 5c54ce07689..f826cd6bc72 100644 --- a/Formula/unrtf.rb +++ b/Formula/unrtf.rb @@ -8,10 +8,9 @@ class Unrtf < Formula # Per MacPorts, add a return value to fix compiling with clang, and fix # a bad memory access. - def patches - { :p0 => [ - "https://trac.macports.org/export/94428/trunk/dports/textproc/unrtf/files/patch-src-attr.c.diff" - ]} + patch :p0 do + url "https://trac.macports.org/export/94428/trunk/dports/textproc/unrtf/files/patch-src-attr.c.diff" + sha1 "8a6a111373d6bf18750bbb5bf2d91383ac6aa584" end def install