2011-03-10 05:11:03 +00:00
|
|
|
class Dwarf < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Object file manipulation tool"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "https://code.google.com/p/dwarf-ng/"
|
|
|
|
url "https://dwarf-ng.googlecode.com/files/dwarf-0.3.0.tar.gz"
|
|
|
|
sha256 "85062d0d3e8aa31374dd085cb79ce02c2b8737e9b143f640a262556233715763"
|
2012-06-10 20:55:33 +00:00
|
|
|
|
2015-08-03 12:55:31 +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
|
|
|
|
|
2015-08-22 21:11:08 +00:00
|
|
|
# /usr/include/inttypes.h:256:8: error: unknown type name 'uintmax_t'
|
|
|
|
# https://github.com/elboza/dwarf-ng/issues/1
|
|
|
|
fails_with :gcc => "5"
|
|
|
|
|
2010-09-04 08:46:27 +00:00
|
|
|
def install
|
2015-08-03 12:55:31 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
|
|
|
|
system "make", "install"
|
2010-09-04 08:46:27 +00:00
|
|
|
end
|
2015-08-22 21:11:08 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match version.to_s, shell_output("#{bin}/dwarf --help", 1)
|
|
|
|
end
|
2010-09-04 08:46:27 +00:00
|
|
|
end
|