[99562] trunk/dports/math/libsvm
hum at macports.org
hum at macports.org
Fri Nov 9 16:21:44 PST 2012
Revision: 99562
http://trac.macports.org//changeset/99562
Author: hum at macports.org
Date: 2012-11-09 16:21:44 -0800 (Fri, 09 Nov 2012)
Log Message:
-----------
libsvm: update 3.13; install additional documents in ${prefix}/share/doc/${name}; fix dependencies; remove gnuplot dependency.
Modified Paths:
--------------
trunk/dports/math/libsvm/Portfile
trunk/dports/math/libsvm/files/patch-Makefile.diff
Modified: trunk/dports/math/libsvm/Portfile
===================================================================
--- trunk/dports/math/libsvm/Portfile 2012-11-10 00:05:04 UTC (rev 99561)
+++ trunk/dports/math/libsvm/Portfile 2012-11-10 00:21:44 UTC (rev 99562)
@@ -5,7 +5,7 @@
name libsvm
epoch 1
-version 3.12
+version 3.13
categories math
maintainers hum openmaintainer
license BSD
@@ -21,8 +21,8 @@
homepage http://www.csie.ntu.edu.tw/~cjlin/libsvm/
master_sites ${homepage}
-checksums rmd160 1058df24d9ecca928144425099c69ee268d61330 \
- sha256 9dcd7a301665d2cbd8c109bba0e8cc2d47b5cc2a9c46aeb359f2dab67be69f74
+checksums rmd160 dde5e072203d2fec7017b615b0918a1fd245a398 \
+ sha256 2dc34d3b7d7cc40bac56f1f101a60fa2be648ca5376bccf4c81cb35fe15e5333
patchfiles patch-Makefile.diff
@@ -34,6 +34,7 @@
PREFIX=${prefix} \
VERSION=${libver}
+set docdir ${prefix}/share/doc/${name}
set libsvm_dir ${prefix}/share/${name}
destroot {
@@ -43,8 +44,10 @@
ln -sf ${name}.${libver}.dylib ${destroot}${prefix}/lib/${name}.dylib
+ xinstall -m 755 -d ${destroot}${docdir}
xinstall -m 755 -d ${destroot}${libsvm_dir}
- xinstall -m 644 -W ${worksrcpath} COPYRIGHT README FAQ.html heart_scale ${destroot}${libsvm_dir}
+ xinstall -m 644 -W ${worksrcpath} COPYRIGHT README FAQ.html ${destroot}${docdir}
+ xinstall -m 644 -W ${worksrcpath} heart_scale ${destroot}${libsvm_dir}
# install python interface.
xinstall -m 755 -d ${destroot}${libsvm_dir}/python
@@ -52,7 +55,7 @@
}
variant java description {Install Java JAR files} {
- depends_lib-append bin:java:kaffe
+ depends_run-append bin:java:kaffe
post-destroot {
set jdir ${destroot}${prefix}/share/java
@@ -102,7 +105,7 @@
# TODO: matlab and svm-toy.
variant tools description {Install useful tools} {
- depends_lib-append port:gnuplot
+# depends_run-append port:gnuplot
# fselect.py, plotroc.py and gridregression.py are taken from
# http://www.csie.ntu.edu.tw/~cjlin/libsvmtools/:
Modified: trunk/dports/math/libsvm/files/patch-Makefile.diff
===================================================================
--- trunk/dports/math/libsvm/files/patch-Makefile.diff 2012-11-10 00:05:04 UTC (rev 99561)
+++ trunk/dports/math/libsvm/files/patch-Makefile.diff 2012-11-10 00:21:44 UTC (rev 99562)
@@ -1,15 +1,15 @@
---- Makefile.orig 2011-06-26 04:55:06.000000000 +0900
-+++ Makefile 2011-12-18 20:24:32.000000000 +0900
-@@ -2,7 +2,7 @@
- CFLAGS = -Wall -Wconversion -O3 -fPIC
+--- Makefile.orig 2012-04-12 03:37:14.000000000 +0900
++++ Makefile 2012-11-10 08:41:14.000000000 +0900
+@@ -3,7 +3,7 @@
SHVER = 2
+ OS = $(shell uname)
-all: svm-train svm-predict svm-scale
+all: svm-train svm-predict svm-scale libsvm.a libsvm.dylib
lib: svm.o
- $(CXX) -shared -dynamiclib -Wl,-soname,libsvm.so.$(SHVER) svm.o -o libsvm.so.$(SHVER)
-@@ -15,5 +15,14 @@
+ if [ "$(OS)" = "Darwin" ]; then \
+@@ -21,5 +21,14 @@
$(CXX) $(CFLAGS) svm-scale.c -o svm-scale
svm.o: svm.cpp svm.h
$(CXX) $(CFLAGS) -c svm.cpp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121109/256fe2cc/attachment-0001.html>
More information about the macports-changes
mailing list