diff options
| author | Chih-Wei Lee | 2012-04-08 20:46:18 +0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-06-10 11:57:09 -0700 |
| commit | 66fa594b371450598c2c57ec3eaaf64df633433f (patch) | |
| tree | 620b5d5cf28020e3ead35213820d16d8844b6281 /Library/Formula | |
| parent | b16d562402dc32f6c8e5a5209d9f6a7b828ca156 (diff) | |
| download | homebrew-66fa594b371450598c2c57ec3eaaf64df633433f.tar.bz2 | |
liblinear 1.91
LIBLINEAR is a simple package for solving large-scale regularized
linear classification.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/liblinear.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/liblinear.rb b/Library/Formula/liblinear.rb new file mode 100644 index 000000000..c5b89609b --- /dev/null +++ b/Library/Formula/liblinear.rb @@ -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 |
