mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
csie.ntu.edu.tw/cjlin/liblinear (#2988)
* new file: projects/csie.ntu.edu.tw/cjlin/liblinear/package.yml new file: projects/csie.ntu.edu.tw/cjlin/liblinear/train_classification.txt * libs
This commit is contained in:
parent
6ce24ee4a8
commit
8660a3ea73
2 changed files with 37 additions and 0 deletions
32
projects/csie.ntu.edu.tw/cjlin/liblinear/package.yml
Normal file
32
projects/csie.ntu.edu.tw/cjlin/liblinear/package.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
distributable:
|
||||
url: https://www.csie.ntu.edu.tw/~cjlin/liblinear/oldfiles/liblinear-{{version.marketing}}.tar.gz
|
||||
strip-components: 1
|
||||
display-name: liblinear
|
||||
versions:
|
||||
url: https://www.csie.ntu.edu.tw/~cjlin/liblinear/oldfiles
|
||||
match: /liblinear-\d+\.\d+\.tar\.gz/
|
||||
strip:
|
||||
- /^liblinear-/
|
||||
- /\.tar\.gz/
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
gnu.org/make: '*'
|
||||
curl.se: '*'
|
||||
gnu.org/patch: '*'
|
||||
script:
|
||||
- curl $PATCH | patch -p0 || true
|
||||
- make --jobs {{ hw.concurrency }} all
|
||||
- run: mkdir -p bin lib include
|
||||
working-directory: "{{prefix}}"
|
||||
- install predict train {{prefix}}/bin/
|
||||
- install linear.h newton.h {{prefix}}/include/
|
||||
- install liblinear* {{prefix}}/lib/
|
||||
env:
|
||||
PATCH: https://raw.githubusercontent.com/Homebrew/formula-patches/bac35ae9140405dec00f1f700d2ecc27cf82526b/liblinear/patch-Makefile.diff
|
||||
provides:
|
||||
- bin/predict
|
||||
- bin/train
|
||||
test:
|
||||
script:
|
||||
- train train_classification.txt | grep "nSV = 5"
|
|
@ -0,0 +1,5 @@
|
|||
+1 201:1.2 3148:1.8 3983:1 4882:1
|
||||
-1 874:0.3 3652:1.1 3963:1 6179:1
|
||||
+1 1168:1.2 3318:1.2 3938:1.8 4481:1
|
||||
+1 350:1 3082:1.5 3965:1 6122:0.2
|
||||
-1 99:1 3057:1 3957:1 5838:0.3
|
Loading…
Reference in a new issue