liblinear 1.91
LIBLINEAR is a simple package for solving large-scale regularized linear classification. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
5ad01c3f71
commit
a39e489a8f
1 changed files with 23 additions and 0 deletions
23
Formula/liblinear.rb
Normal file
23
Formula/liblinear.rb
Normal file
|
@ -0,0 +1,23 @@
|
|||
require 'formula'
|
||||
|
||||
class Liblinear < Formula
|
||||
homepage 'http://www.csie.ntu.edu.tw/~cjlin/liblinear/'
|
||||
url 'http://www.csie.ntu.edu.tw/~cjlin/liblinear/liblinear-1.91.tar.gz'
|
||||
sha1 'a5092e5082b67f174c0f65b5611db48ca2b095f6'
|
||||
|
||||
# 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
|
Loading…
Reference in a new issue