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/'
|
2013-08-11 00:21:01 +00:00
|
|
|
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'
|
2012-06-19 01:57:51 +00:00
|
|
|
|
|
|
|
# Per MacPorts, add a return value to fix compiling with clang, and fix
|
|
|
|
# a bad memory access.
|
2014-03-14 21:24:11 +00:00
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/94428/trunk/dports/textproc/unrtf/files/patch-src-attr.c.diff"
|
|
|
|
sha1 "8a6a111373d6bf18750bbb5bf2d91383ac6aa584"
|
2012-06-19 01:57:51 +00:00
|
|
|
end
|
2011-08-30 18:16:01 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "LIBS=-liconv", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|