2010-09-04 08:46:27 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Dwarf < Formula
|
2010-09-04 08:46:27 +00:00
|
|
|
homepage 'http://code.autistici.org/trac/dwarf'
|
2012-06-10 20:55:33 +00:00
|
|
|
url 'http://dwarf-ng.googlecode.com/files/dwarf-0.3.0.tar.gz'
|
|
|
|
sha1 '19a69424bd208741a325a4fc0e791a516c3bc8bc'
|
|
|
|
|
|
|
|
head 'http://code.autistici.org/svn/dwarf/trunk'
|
2010-09-04 08:46:27 +00:00
|
|
|
|
|
|
|
depends_on 'readline'
|
|
|
|
|
2012-06-10 20:55:33 +00:00
|
|
|
# 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
|
|
|
|
|
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
|