2011-09-28 23:29:41 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libsvm < Formula
|
|
|
|
homepage 'http://www.csie.ntu.edu.tw/~cjlin/libsvm/'
|
2012-04-13 20:07:44 +00:00
|
|
|
url 'http://www.csie.ntu.edu.tw/~cjlin/libsvm/libsvm-3.12.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '6ee77eb3d89af07fe48058dba0dcc24c85020b85'
|
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
|