2010-01-22 23:05:27 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Htmldoc < Formula
|
2010-01-22 23:05:27 +00:00
|
|
|
homepage 'http://www.htmldoc.org'
|
2013-01-28 03:27:04 +00:00
|
|
|
url 'http://ftp.easysw.com/pub/htmldoc/1.8.27/htmldoc-1.8.27-source.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '472908e0aafed1cedfbacd8ed3168734aebdec4b'
|
2010-06-10 08:14:59 +00:00
|
|
|
|
2012-11-13 20:19:50 +00:00
|
|
|
# Fixes building with libpng-1.5, from upstream svn r1668 via Fedora
|
|
|
|
# Remove at version 1.8.28. cf. https://github.com/mxcl/homebrew/issues/15915
|
|
|
|
def patches
|
|
|
|
{ :p0 => 'http://pkgs.fedoraproject.org/cgit/htmldoc.git/plain/htmldoc-1.8.27-libpng15.patch?h=f18' }
|
|
|
|
end
|
|
|
|
|
2010-01-22 23:05:27 +00:00
|
|
|
def install
|
2010-06-10 08:14:59 +00:00
|
|
|
ENV.append_to_cflags "-I#{HOMEBREW_PREFIX}/include"
|
|
|
|
|
2010-02-11 18:17:48 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
2013-01-28 03:27:04 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
2010-06-10 08:14:59 +00:00
|
|
|
system "make"
|
2010-01-22 23:05:27 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|