The wv-1.2.6 version is known to crash when used with Plone to make
Word documents and others searchable. This issues was identified in
debian and they fixed by upgrading to 1.2.9-2 (the -2 is the debian
packaging version.

The initial built failed due to some incompatibility in the given
install-sh script used to install the files. This is a known issue
as evidenced by this message in the abiword mailing list:

http://www.abisource.com/mailinglists/abiword-dev/2011/Jun/0108.html

A workaround has been implemented by creating the folders before
calling make install. This fixes the installation issue till it is
fixed upstream.

Closes Homebrew/homebrew#27582.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Peter Tillemans 2014-03-15 16:48:45 +01:00 committed by Adam Vandenberg
parent 5176835ba0
commit 95b54182e7

View file

@ -2,9 +2,8 @@ require 'formula'
class Wv < Formula
homepage 'http://wvware.sourceforge.net/'
url 'http://abisource.com/downloads/wv/1.2.5/wv-1.2.5.tar.gz'
sha1 'a196a31ca1c4083436d9414b9bf4809c0fd7c33c'
revision 1
url 'http://abisource.com/downloads/wv/1.2.9/wv-1.2.9.tar.gz'
sha1 'db4717a151742dbdb492318f104504a92075543a'
depends_on 'pkg-config' => :build
depends_on 'glib'
@ -19,6 +18,17 @@ class Wv < Formula
"--mandir=#{man}"
system "make"
ENV.deparallelize
# the makefile generated does not create the file structure when installing
# till it is fixed upstream, create the target directories here.
# http://www.abisource.com/mailinglists/abiword-dev/2011/Jun/0108.html
bin.mkpath
(lib/"pkgconfig").mkpath
(include/"wv").mkpath
man1.mkpath
(share/"wv/wingdingfont").mkpath
(share/"wv/patterns").mkpath
system "make install"
end
end