homebrew-core/Formula/liblinear.rb
2014-03-14 10:47:44 -05:00

22 lines
646 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
patch :p0 do
url "https://trac.macports.org/export/94156/trunk/dports/math/liblinear/files/patch-Makefile.diff"
sha1 "3eab2f28bd9964bacb515ecc1ce9bea35ad29298"
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