homebrew-core/Formula/unrtf.rb
Brett Koonce 6617a09d8d unrtf 0.21.5
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-08-10 20:33:08 -05:00

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.5.tar.gz'
mirror 'http://ftp.gnu.org/gnu/unrtf/unrtf-0.21.5.tar.gz'
sha1 '73d22805eb7a83edf5c3c27fe036e3c33248902d'
# 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