From 6d31f2de0acee7125f107981cabc0d1ea482602b Mon Sep 17 00:00:00 2001 From: Tim D. Smith Date: Sun, 14 Dec 2014 12:29:05 -0800 Subject: abi-compliance-checker 1.99.9 (new formula) Closes #34975. --- Library/Formula/abi-compliance-checker.rb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Library/Formula/abi-compliance-checker.rb (limited to 'Library') diff --git a/Library/Formula/abi-compliance-checker.rb b/Library/Formula/abi-compliance-checker.rb new file mode 100644 index 000000000..c988bca9e --- /dev/null +++ b/Library/Formula/abi-compliance-checker.rb @@ -0,0 +1,26 @@ +class AbiComplianceChecker < Formula + homepage "http://ispras.linuxbase.org/index.php/ABI_compliance_checker" + url "https://github.com/lvc/abi-compliance-checker/archive/1.99.9.tar.gz" + sha1 "b014df92fe42c6dc3cdf1af7f58b2e9b640012e3" + + depends_on "ctags" + depends_on "gcc" => :run + + def install + system "perl", "Makefile.pl", "-install", "--prefix=#{prefix}" + rm bin/"abi-compliance-checker.cmd" + end + + test do + (testpath/"test.xml").write <<-EOS.undent + 1.0 + #{Formula["ctags"].include} + #{Formula["ctags"].lib} + EOS + gcc_suffix = Formula["gcc"].version.to_s.slice(/\d\.\d+/) + system bin/"abi-compliance-checker", "-cross-gcc", "gcc-" + gcc_suffix, + "-lib", "ctags", + "-old", testpath/"test.xml", + "-new", testpath/"test.xml" + end +end -- cgit v1.2.3