aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorTim D. Smith2014-12-14 12:29:05 -0800
committerTim D. Smith2014-12-17 00:44:26 -0800
commit6d31f2de0acee7125f107981cabc0d1ea482602b (patch)
treed2f90c303c3e8539053a72c09b171e9fb6cf36e2 /Library/Formula
parent669b6f1f89efdbc6b7fca8883730f9a21a1192e0 (diff)
downloadhomebrew-6d31f2de0acee7125f107981cabc0d1ea482602b.tar.bz2
abi-compliance-checker 1.99.9 (new formula)
Closes #34975.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/abi-compliance-checker.rb26
1 files changed, 26 insertions, 0 deletions
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
+ <version>1.0</version>
+ <headers>#{Formula["ctags"].include}</headers>
+ <libs>#{Formula["ctags"].lib}</libs>
+ 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