2014-04-20 20:23:20 +00:00
|
|
|
require "formula"
|
2010-12-28 01:47:27 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Wv < Formula
|
2014-04-20 20:23:20 +00:00
|
|
|
homepage "http://wvware.sourceforge.net/"
|
|
|
|
url "http://abisource.com/downloads/wv/1.2.9/wv-1.2.9.tar.gz"
|
|
|
|
sha1 "db4717a151742dbdb492318f104504a92075543a"
|
2010-12-28 01:47:27 +00:00
|
|
|
|
2014-04-20 20:23:20 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "glib"
|
|
|
|
depends_on "libgsf"
|
|
|
|
depends_on "libwmf"
|
|
|
|
depends_on "libpng"
|
2010-12-28 01:47:27 +00:00
|
|
|
|
|
|
|
def install
|
2011-03-14 20:58:03 +00:00
|
|
|
ENV.libxml2
|
2010-12-28 01:47:27 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
2011-03-14 20:58:03 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
2010-12-28 01:47:27 +00:00
|
|
|
system "make"
|
|
|
|
ENV.deparallelize
|
2014-03-15 15:48:45 +00:00
|
|
|
# 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
|
|
|
|
|
2010-12-28 01:47:27 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|