From 56cdb04fb3b5ac917f84ecba6d9b76bf919d0538 Mon Sep 17 00:00:00 2001 From: nibbles 2bits Date: Tue, 13 Nov 2012 12:19:50 -0800 Subject: [PATCH] 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 --- Formula/htmldoc.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Formula/htmldoc.rb b/Formula/htmldoc.rb index be13cbeb46..a84f88f785 100644 --- a/Formula/htmldoc.rb +++ b/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"