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 Homebrew/homebrew#15915.
Closes Homebrew/homebrew#16038.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
nibbles 2bits 2012-11-13 12:19:50 -08:00 committed by Jack Nagel
parent a688c65f94
commit 56cdb04fb3

View file

@ -5,6 +5,12 @@ class Htmldoc < Formula
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"