2010-09-04 08:46:27 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Dwarf < Formula
|
2013-11-30 01:59:20 +00:00
|
|
|
homepage 'https://code.google.com/p/dwarf-ng/'
|
2014-03-05 07:22:08 +00:00
|
|
|
url 'https://dwarf-ng.googlecode.com/files/dwarf-0.3.0.tar.gz'
|
2012-06-10 20:55:33 +00:00
|
|
|
sha1 '19a69424bd208741a325a4fc0e791a516c3bc8bc'
|
|
|
|
|
2012-11-11 03:12:26 +00:00
|
|
|
depends_on 'readline'
|
2010-09-04 08:46:27 +00:00
|
|
|
|
2013-11-30 01:59:20 +00:00
|
|
|
# Imports inttypes.h in a generated lex file instead of stdint.h
|
2012-06-10 20:55:33 +00:00
|
|
|
# Reported upstream: http://code.autistici.org/trac/dwarf/ticket/8
|
2013-11-30 01:59:20 +00:00
|
|
|
# Also has missing & unwanted return values in some functions
|
|
|
|
# If the above are fixed, the newer 0.3.1 fails with a missing make target
|
2012-06-10 20:55:33 +00:00
|
|
|
fails_with :clang do
|
|
|
|
cause "error: unknown type name 'intmax_t'"
|
|
|
|
end
|
|
|
|
|
2010-09-04 08:46:27 +00:00
|
|
|
def install
|
2012-06-10 20:55:33 +00:00
|
|
|
system './configure', "--prefix=#{prefix}", '--disable-dependency-tracking'
|
2010-09-04 08:46:27 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|