aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libsgml.rb
blob: 2120202f74181d4b80dd55e896116a2dd9129175 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require 'formula'

class Libsgml < Formula
  url 'http://hick.org/code/skape/libsgml/libsgml-1.1.4.tar.gz'
  homepage 'http://hick.org'
  md5 'a3ba2f8c19faf1a53182d9c6fab22e58'

  def patches
    { :p0 => [
      "https://trac.macports.org/export/89276/trunk/dports/textproc/libsgml/files/patch-examples_variant.c.diff",
      "https://trac.macports.org/export/89276/trunk/dports/textproc/libsgml/files/patch-src_Variant.c.diff",
      "https://trac.macports.org/export/89276/trunk/dports/textproc/libsgml/files/patch-Makefile.in.diff",
      "https://trac.macports.org/export/89276/trunk/dports/textproc/libsgml/files/patch-configure.in.diff",
      "https://trac.macports.org/export/89276/trunk/dports/textproc/libsgml/files/patch-src_Makefile.in.diff"
      ] }
  end

  if MacOS.xcode_version >= "4.3"
    # remove the autoreconf if possible, no comment provided about why it is there
    # so we have no basis to make a decision at this point.
    depends_on "automake" => :build
    depends_on "libtool" => :build
  end

  def install
    lib.mkpath
    system "autoreconf -fvi"
    system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
    system "make"
    system "make install"
  end
end