LibSVM: remove unneeded inreplace

No longer need to modify Makefile, just rename the .so.

Closes Homebrew/homebrew#12606.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Dougal Sutherland 2012-06-05 15:18:35 -04:00 committed by Jack Nagel
parent 77038f24f7
commit 3533b59c61
1 changed files with 1 additions and 3 deletions

View File

@ -6,11 +6,9 @@ class Libsvm < Formula
md5 'a1b1083fe69a4ac695da753f4c83ed42'
def install
inreplace 'Makefile', '-soname', '-install_name'
inreplace 'Makefile', 'libsvm.so.$(SHVER)', 'libsvm.$(SHVER).dylib'
system "make", "CFLAGS=#{ENV.cflags}"
system "make lib"
mv 'libsvm.so.2', 'libsvm.2.dylib'
ln_s 'libsvm.2.dylib', 'libsvm.dylib'
bin.install 'svm-scale', 'svm-train', 'svm-predict'