Package: psortb / 3.0.4+dfsg-2~bpo8+1

remove-bundled-party-libsvm.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Description: Remove source from bundled libsvm and adjust build system.
Author: Carnë Draug <carandraug+dev@gmail.com>
Last-Update: 2017-04-20
--- a/bio-tools-psort-svmloc/MANIFEST
+++ b/bio-tools-psort-svmloc/MANIFEST
@@ -8,5 +8,4 @@ bindings.h
 lib/Bio/Tools/PSort/SVMLoc.pm
 sample.model
 fre_patterns.txt
-libsvm.h
 typemap
--- a/bio-tools-psort-svmloc/Makefile.PL
+++ b/bio-tools-psort-svmloc/Makefile.PL
@@ -9,7 +9,7 @@ $CC = 'g++';
 
 @libs = qw/svmloc/;
 %paths = ();
-$libpath = '-lm -lstdc++';
+$libpath = '-lm -lsvm -lstdc++';
 
 $defaults_file = '../psortb.defaults';
 if( -f $defaults_file ) {
--- a/bio-tools-psort-svmloc/bindings.h
+++ b/bio-tools-psort-svmloc/bindings.h
@@ -9,7 +9,9 @@
 #include <set>
 #include <assert.h>
 
-#include "libsvm.h"
+#include <stdlib.h>
+#include <string.h>
+#include <libsvm/svm.h>
 
 using namespace std;