[69574] trunk/dports/math/libsvm

ryandesign at macports.org ryandesign at macports.org
Sat Jul 10 03:11:50 PDT 2010


Revision: 69574
          http://trac.macports.org/changeset/69574
Author:   ryandesign at macports.org
Date:     2010-07-10 03:11:46 -0700 (Sat, 10 Jul 2010)
Log Message:
-----------
libsvm: update to 2.91 (#25560), add java variant (#24096), and don't use a versioned documentation directory

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	2010-07-10 09:37:22 UTC (rev 69573)
+++ trunk/dports/math/libsvm/Portfile	2010-07-10 10:11:46 UTC (rev 69574)
@@ -5,7 +5,7 @@
 
 name			libsvm
 epoch			1
-version			2.9
+version			2.91
 
 categories		math
 maintainers		nomaintainer
@@ -17,9 +17,10 @@
 homepage		http://www.csie.ntu.edu.tw/~cjlin/libsvm/
 master_sites	        ${homepage}
 
-checksums           md5     c48109c825d8326d71c8c8564589736d \
-                    sha1    506725e3328b7fd78b00b99b93e5fb4c90506528 \
-                    rmd160  ff6207d399f59eea3329fd629fcdf4c399583a2b
+checksums               md5     aec07b9142ce585c95854ed379538154 \
+                        sha1    4e6b3b6dde1524af665bbce531c6776a1f4c8cba \
+                        rmd160  519dfba926e8957508e1f9a1e432b42518356b29
+
 patchfiles              patch-Makefile.diff
 
 use_configure	        no
@@ -35,8 +36,19 @@
 
     ln -sf ${name}.${libver}.dylib ${destroot}${prefix}/lib/${name}.dylib
 
-    set docs ${destroot}${prefix}/share/doc/${name}-${version}
+    set docs ${destroot}${prefix}/share/doc/${name}
     xinstall -m 755 -d ${docs}
     xinstall -m 644 -W ${worksrcpath} COPYRIGHT README FAQ.html ${docs}
 }
 
+variant java description {Install Java JAR files} {
+    depends_lib-append  bin:java:kaffe
+
+    post-destroot {
+        set jdir ${destroot}${prefix}/share/java
+        xinstall -m 775 -d ${jdir}
+        file rename ${worksrcpath}/java ${jdir}/${name}
+    }
+}
+
+default_variants        +java

Modified: trunk/dports/math/libsvm/files/patch-Makefile.diff
===================================================================
--- trunk/dports/math/libsvm/files/patch-Makefile.diff	2010-07-10 09:37:22 UTC (rev 69573)
+++ trunk/dports/math/libsvm/files/patch-Makefile.diff	2010-07-10 10:11:46 UTC (rev 69574)
@@ -1,5 +1,5 @@
---- Makefile.orig	2008-10-27 23:00:10.000000000 +0100
-+++ Makefile	2008-10-27 23:04:04.000000000 +0100
+--- Makefile.orig	2010-03-18 09:54:02.000000000 -0500
++++ Makefile	2010-07-10 04:59:44.000000000 -0500
 @@ -2,7 +2,7 @@
  CFLAGS = -Wall -Wconversion -O3 -fPIC
  SHVER = 1
@@ -8,7 +8,7 @@
 +all: svm-train svm-predict svm-scale libsvm.a libsvm.dylib
  
  lib: svm.o
- 	$(CXX) -shared svm.o -o libsvm.so.$(SHVER)
+ 	$(CXX) -shared -dynamiclib svm.o -o libsvm.so.$(SHVER)
 @@ -15,5 +15,14 @@
  	$(CXX) $(CFLAGS) svm-scale.c -o svm-scale
  svm.o: svm.cpp svm.h
@@ -22,5 +22,5 @@
 +                         -compatibility_version $(VERSION) \
 +                         -o libsvm.$(VERSION).dylib svm.o
  clean:
- 	rm -f *~ svm.o svm-train svm-predict svm-scale
+ 	rm -f *~ svm.o svm-train svm-predict svm-scale libsvm.so.$(SHVER)
 +	rm -f *.a *.dylib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100710/839be018/attachment-0001.html>


More information about the macports-changes mailing list