Files
tigerbrew/Library/Formula/htmldoc.rb
T
nibbles 2bits e6f7dd0089 htmldoc: add libpng patch from svn
htmldoc builds with libpng-1.5 using a series of diffs between
the current version and svn r1668. These diffs were generated and
applied by Fedora. Doing same here. Builds well with superenv.
Noted in comments to remove at >= 1.8.28.

Fixes #15915.
Closes #16038.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-11-14 12:37:08 -06:00

23 lines
756 B
Ruby

require 'formula'
class Htmldoc < Formula
url 'http://ftp.easysw.com/pub/htmldoc/1.8.27/htmldoc-1.8.27-source.tar.bz2'
homepage 'http://www.htmldoc.org'
sha1 '472908e0aafed1cedfbacd8ed3168734aebdec4b'
# 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
def install
ENV.append_to_cflags "-I#{HOMEBREW_PREFIX}/include"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--mandir=#{man}"
system "make"
system "make install"
end
end