|
0
|
1 <?xml version="1.0"?>
|
|
|
2 <tool_dependency>
|
|
|
3 <package name="libsvm" version="3.16">
|
|
|
4 <install version="1.0">
|
|
|
5 <actions>
|
|
|
6 <action type="shell_command">git clone --recursive https://github.com/cjlin1/libsvm.git</action>
|
|
|
7 <action type="shell_command">git reset --hard 041496b61214aff1beba02c8f2957e80bd90c234</action>
|
|
|
8 <action type="shell_command">make</action>
|
|
|
9 <action type="move_file">
|
|
|
10 <source>svm-train</source>
|
|
|
11 <destination>$INSTALL_DIR/bin</destination>
|
|
|
12 </action>
|
|
|
13 <action type="move_file">
|
|
|
14 <source>svm-scale</source>
|
|
|
15 <destination>$INSTALL_DIR/bin</destination>
|
|
|
16 </action>
|
|
|
17 <action type="move_file">
|
|
|
18 <source>svm-predict</source>
|
|
|
19 <destination>$INSTALL_DIR/bin</destination>
|
|
|
20 </action>
|
|
|
21 <action type="set_environment">
|
|
|
22 <environment_variable name="PATH" action="prepend_to">$INSTALL_DIR/bin</environment_variable>
|
|
|
23 </action>
|
|
|
24 </actions>
|
|
|
25 </install>
|
|
|
26 <readme>
|
|
|
27 Compiling libsvm. Required is a C++ compiler (typically g++).
|
|
|
28 svm-train, svm-scale and svm-predict will be available in $PATH.
|
|
|
29 </readme>
|
|
|
30 </package>
|
|
|
31 </tool_dependency>
|
|
|
32
|