homebrew-core/Formula/liblinear.rb
2013-11-30 17:18:40 -08:00

23 lines
613 B
Ruby

require 'formula'
class Liblinear < Formula
homepage 'http://www.csie.ntu.edu.tw/~cjlin/liblinear/'
url 'http://www.csie.ntu.edu.tw/~cjlin/liblinear/oldfiles/liblinear-1.94.tar.gz'
sha1 '19678355e6c933b7ec133e07fef77796e50df0d5'
# Fix sonames
def patches
{ :p0 => [
"https://trac.macports.org/export/94156/trunk/dports/math/liblinear/files/patch-Makefile.diff"
]}
end
def install
system "make all"
ln_s 'liblinear.dylib', 'liblinear.1.dylib'
bin.install 'predict', 'train'
lib.install 'liblinear.1.dylib', 'liblinear.dylib'
include.install 'linear.h'
end
end