2011-08-30 18:16:01 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Unrtf < Formula
|
2012-06-19 01:57:51 +00:00
|
|
|
homepage 'http://www.gnu.org/software/unrtf/'
|
2011-09-12 16:31:30 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/unrtf/unrtf-0.21.2.tar.gz'
|
2011-11-30 18:56:07 +00:00
|
|
|
mirror 'http://ftp.gnu.org/gnu/unrtf/unrtf-0.21.2.tar.gz'
|
2012-06-19 01:57:51 +00:00
|
|
|
sha1 '207614a8dccc1334ae124a1734eabf3893602802'
|
|
|
|
|
|
|
|
# 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
|
2011-08-30 18:16:01 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "LIBS=-liconv", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|