2011-09-28 23:29:41 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libsvm < Formula
|
|
|
|
homepage 'http://www.csie.ntu.edu.tw/~cjlin/libsvm/'
|
2012-11-18 17:31:31 +00:00
|
|
|
url 'http://www.csie.ntu.edu.tw/~cjlin/libsvm/libsvm-3.14.tar.gz'
|
|
|
|
sha1 'a069116cd38723203e16e85a2a2d1cf5d038a06a'
|
2011-09-28 23:29:41 +00:00
|
|
|
|
|
|
|
def install
|
2012-04-14 01:38:23 +00:00
|
|
|
system "make", "CFLAGS=#{ENV.cflags}"
|
2012-02-03 23:02:21 +00:00
|
|
|
system "make lib"
|
2012-06-05 19:18:35 +00:00
|
|
|
mv 'libsvm.so.2', 'libsvm.2.dylib'
|
2012-02-03 23:02:21 +00:00
|
|
|
ln_s 'libsvm.2.dylib', 'libsvm.dylib'
|
|
|
|
|
2012-02-12 22:38:28 +00:00
|
|
|
bin.install 'svm-scale', 'svm-train', 'svm-predict'
|
|
|
|
lib.install 'libsvm.2.dylib', 'libsvm.dylib'
|
|
|
|
include.install 'svm.h'
|
2011-09-28 23:29:41 +00:00
|
|
|
end
|
|
|
|
end
|