aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/htmldoc.rb
blob: a84f88f7856d3dbe621ad545da4e62db314511f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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