From e6f7dd0089616d50c603e2324ef85e32a808b6ae Mon Sep 17 00:00:00 2001 From: nibbles 2bits Date: Tue, 13 Nov 2012 12:19:50 -0800 Subject: 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 --- Library/Formula/htmldoc.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library') diff --git a/Library/Formula/htmldoc.rb b/Library/Formula/htmldoc.rb index be13cbeb4..a84f88f78 100644 --- a/Library/Formula/htmldoc.rb +++ b/Library/Formula/htmldoc.rb @@ -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" -- cgit v1.2.3