Revision
119524
Author
mmoll@macports.org
Date
2014-04-28 15:10:51 -0700 (Mon, 28 Apr 2014)

Log Message

math/libsvm: add python34 variant, small fix for python bindings

Modified Paths

Diff

Modified: trunk/dports/math/libsvm/Portfile (119523 => 119524)


--- trunk/dports/math/libsvm/Portfile	2014-04-28 21:43:30 UTC (rev 119523)
+++ trunk/dports/math/libsvm/Portfile	2014-04-28 22:10:51 UTC (rev 119524)
@@ -4,7 +4,7 @@
 PortSystem          1.0
 
 name                libsvm
-epoch               1
+epoch               2
 version             3.18
 categories          math
 maintainers         hum openmaintainer
@@ -26,6 +26,10 @@
 
 patchfiles          patch-Makefile.diff
 
+post-patch {
+    reinplace "s|../libsvm.so.2|${prefix}/libsvm.dylib|g" ${worksrcpath}/python/svm.py
+}
+
 use_configure       no
 
 variant universal {}
@@ -101,6 +105,11 @@
     post-destroot { install_py 3.3 }
 }
 
+variant python34 description {Install Python 3.4 interface} {
+    depends_lib-append  port:python34
+    post-destroot { install_py 3.4 }
+}
+
 proc install_py {branch} {
     global frameworks_dir destroot worksrcpath
     set py_prefix  ${frameworks_dir}/Python.framework/Versions/${branch}