libsvm: Replace install_name_tool usage with ruby-macho.

This commit is contained in:
William Woodruff 2016-12-19 22:12:47 -05:00 committed by William Woodruff
parent 6ebce89d5c
commit b86e416b32

View file

@ -18,7 +18,7 @@ class Libsvm < Formula
bin.install "svm-scale", "svm-train", "svm-predict"
lib.install "libsvm.so.2" => "libsvm.2.dylib"
lib.install_symlink "libsvm.2.dylib" => "libsvm.dylib"
system "install_name_tool", "-id", "#{lib}/libsvm.2.dylib", "#{lib}/libsvm.2.dylib"
MachO::Tools.change_dylib_id("#{lib}/libsvm.2.dylib", "#{lib}/libsvm.2.dylib")
include.install "svm.h"
end