054254f27f
Closes Homebrew/homebrew#21178. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
21 lines
615 B
Ruby
21 lines
615 B
Ruby
require 'formula'
|
|
|
|
class Unrtf < Formula
|
|
homepage 'http://www.gnu.org/software/unrtf/'
|
|
url 'http://ftpmirror.gnu.org/unrtf/unrtf-0.21.4.tar.gz'
|
|
mirror 'http://ftp.gnu.org/gnu/unrtf/unrtf-0.21.4.tar.gz'
|
|
sha1 '336e015707a61f14f2c4e0ef006d581ee4704305'
|
|
|
|
# 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"
|
|
]}
|
|
end
|
|
|
|
def install
|
|
system "./configure", "LIBS=-liconv", "--prefix=#{prefix}"
|
|
system "make install"
|
|
end
|
|
end
|