homebrew-core/Formula/libsvm.rb
Dougal Sutherland 3533b59c61 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>
2012-06-07 16:35:36 -05:00

18 lines
510 B
Ruby

require 'formula'
class Libsvm < Formula
homepage 'http://www.csie.ntu.edu.tw/~cjlin/libsvm/'
url 'http://www.csie.ntu.edu.tw/~cjlin/libsvm/libsvm-3.12.tar.gz'
md5 'a1b1083fe69a4ac695da753f4c83ed42'
def install
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'
lib.install 'libsvm.2.dylib', 'libsvm.dylib'
include.install 'svm.h'
end
end