aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/dwarf.rb
blob: 98bd015bb5b4507f88db95a886ecbeeb73896022 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'formula'

class Dwarf < Formula
  homepage 'http://code.autistici.org/trac/dwarf'
  url 'http://dwarf-ng.googlecode.com/files/dwarf-0.3.0.tar.gz'
  sha1 '19a69424bd208741a325a4fc0e791a516c3bc8bc'

  head 'http://code.autistici.org/svn/dwarf/trunk'

  depends_on 'readline'

  # There's a subtle error in C99 handling of stdint.h and inttypes.h.
  # Reported upstream: http://code.autistici.org/trac/dwarf/ticket/8
  fails_with :clang do
    build 318
    cause "error: unknown type name 'intmax_t'"
  end

  def install
    system './configure', "--prefix=#{prefix}", '--disable-dependency-tracking'
    system "make install"
  end
end