FreeBSD Bugzilla – Attachment 48335 Details for
Bug 73981
[PATCH] science/libsvm: update to 2.7, python iface to slave port
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 5.54 KB, created by
Rong-En Fan
on 2004-11-15 19:00:54 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Rong-En Fan
Created:
2004-11-15 19:00:54 UTC
Size:
5.54 KB
patch
obsolete
>diff -ruN --exclude=CVS /usr/ports/science/libsvm/Makefile /home/rafan/tmp/ports/libsvm/Makefile >--- /usr/ports/science/libsvm/Makefile Sun Jun 6 21:27:56 2004 >+++ /home/rafan/tmp/ports/libsvm/Makefile Tue Nov 16 02:44:15 2004 >@@ -6,25 +6,49 @@ > # > > PORTNAME= libsvm >-PORTVERSION= 2.5 >+PORTVERSION= 2.7 > CATEGORIES= science math > MASTER_SITES= http://www.csie.ntu.edu.tw/~cjlin/libsvm/ > >-MAINTAINER= me@davidyu.org >+MAINTAINER= rafan@infor.org > COMMENT= A library for Support Vector Machines > > .if defined(WITH_PYTHON) > USE_PYTHON= yes >-ALL_TARGET= all py >-MAKE_ARGS+= PYTHON_INCLUDEDIR=${PYTHON_INCLUDEDIR} >+USE_REINPLACE= yes > PLIST_SUB+= LIBSVM_PYTHON="" > .else > PLIST_SUB+= LIBSVM_PYTHON="@comment " >+PYEXAMPLES= python/cross_validation.py \ >+ python/svm_test.py \ >+ python/test_cross_validation.py > .endif > >+TXT_DOCS= COPYRIGHT README FAQ.html python/README.python >+.if !defined(NOPORTDOCS) >+PORTDOCS= ${TXT_DOCS} >+.endif >+TOOLS= python/grid.py python/easy.py >+ >+MSG_FILE= ${PKGDIR}/pkg-message >+PKGMESSAGE= ${WRKSRC}/pkg-message >+ > pre-everything:: >-.if !defined(WITH_PYTHON) >- @${ECHO_MSG} "You can install python interface by defining WITH_PYTHON=yes" >+.if defined(WITH_PYTHON) >+ @${ECHO_MSG} "Build with Python interface." >+.else >+ @${ECHO_MSG} "You can enable Python interface by defining WITH_PYTHON." >+.endif >+ >+post-patch: >+.if defined(WITH_PYTHON) >+ @${REINPLACE_CMD} -e "s,%%PYTHON_INCLUDEDIR%%,${PYTHON_INCLUDEDIR}," ${WRKSRC}/python/Makefile >+.endif >+ @${SED} 's|%%DATADIR%%|${DATADIR}|g' ${MSG_FILE} > ${PKGMESSAGE} >+ >+post-build: >+.if defined(WITH_PYTHON) >+ cd ${WRKSRC}/python; ${MAKE} > .endif > > do-install: >@@ -34,11 +58,24 @@ > .if defined(WITH_PYTHON) > ${INSTALL_SCRIPT} ${WRKSRC}/python/svm.py ${PYTHON_SITELIBDIR}/ > ${INSTALL_PROGRAM} ${WRKSRC}/python/svmc.so ${PYTHON_SITELIBDIR}/ >+ ${MKDIR} ${EXAMPLESDIR} >+ for f in ${PYEXAMPLES}; do \ >+ ${INSTALL_DATA} ${WRKSRC}/$$f ${EXAMPLESDIR}; \ >+ done > .endif >+ ${MKDIR} ${DATADIR} >+ for f in ${TOOLS}; do \ >+ ${INSTALL_DATA} ${WRKSRC}/$$f ${DATADIR}; \ >+ done > .if !defined(NOPORTDOCS) >- @${MKDIR} ${DOCSDIR} >- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} >- ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${DOCSDIR} >+ ${MKDIR} ${DOCSDIR} >+ ${CP} ${WRKSRC}/python/README ${WRKSRC}/python/README.python >+ for f in ${TXT_DOCS}; do \ >+ ${INSTALL_DATA} ${WRKSRC}/$$f ${DOCSDIR}; \ >+ done > .endif >+ @${ECHO} "" >+ @${CAT} ${PKGMESSAGE} >+ @${ECHO} "" > > .include <bsd.port.mk> >diff -ruN --exclude=CVS /usr/ports/science/libsvm/distinfo /home/rafan/tmp/ports/libsvm/distinfo >--- /usr/ports/science/libsvm/distinfo Wed Mar 31 11:10:54 2004 >+++ /home/rafan/tmp/ports/libsvm/distinfo Tue Nov 16 00:40:26 2004 >@@ -1,2 +1,2 @@ >-MD5 (libsvm-2.5.tar.gz) = 5973401a9b5d9fdd65fc46bdc61a5f9e >-SIZE (libsvm-2.5.tar.gz) = 320549 >+MD5 (libsvm-2.7.tar.gz) = b09a9fc273a85ffbfcf25abec16b5ce8 >+SIZE (libsvm-2.7.tar.gz) = 437233 >diff -ruN --exclude=CVS /usr/ports/science/libsvm/files/patch-Makefile /home/rafan/tmp/ports/libsvm/files/patch-Makefile >--- /usr/ports/science/libsvm/files/patch-Makefile Tue May 21 23:26:21 2002 >+++ /home/rafan/tmp/ports/libsvm/files/patch-Makefile Tue Nov 16 01:13:55 2004 >@@ -1,16 +1,9 @@ >---- Makefile.orig Sat Sep 22 23:04:16 2001 >-+++ Makefile Fri May 10 14:40:09 2002 >-@@ -1,5 +1,5 @@ >+--- Makefile.orig Tue Nov 16 00:45:06 2004 >++++ Makefile Tue Nov 16 00:46:01 2004 >+@@ -1,5 +1,4 @@ > -CXXC = g++ >--CFLAGS = -Wall -O3 -g >-+CXXC = ${CXX} >-+CFLAGS += -g >+-CFLAGS = -Wall -O3 >++CXXC = $(CXX) > > all: svm-train svm-predict svm-scale > >-@@ -13,3 +13,5 @@ >- $(CXXC) $(CFLAGS) -c svm.cpp >- clean: >- rm -f *~ svm.o svm-train svm-predict svm-scale >-+py: >-+ cd python; $(MAKE) PYTHON_INCLUDEDIR=${PYTHON_INCLUDEDIR} >diff -ruN --exclude=CVS /usr/ports/science/libsvm/files/patch-python-Makefile /home/rafan/tmp/ports/libsvm/files/patch-python-Makefile >--- /usr/ports/science/libsvm/files/patch-python-Makefile Thu Jan 1 08:00:00 1970 >+++ /home/rafan/tmp/ports/libsvm/files/patch-python-Makefile Tue Nov 16 01:14:45 2004 >@@ -0,0 +1,18 @@ >+--- python/Makefile.orig Wed Mar 24 19:33:46 2004 >++++ python/Makefile Tue Nov 16 01:14:32 2004 >+@@ -1,11 +1,11 @@ >+-CC = g++ >++CC = $(CXX) >+ SWIG ?= swig >+ >+ #Windows: see ../README ../Makefile.win >+-PYTHON_INCLUDEDIR ?= /usr/include/python2.3 >++PYTHON_INCLUDEDIR ?= %%PYTHON_INCLUDEDIR%% >+ >+-CFLAGS = -O3 -I$(PYTHON_INCLUDEDIR) -I.. >+-LDFLAGS = -shared >++CFLAGS += -I$(PYTHON_INCLUDEDIR) -I.. >++LDFLAGS += -shared >+ >+ all: svmc.so >+ >diff -ruN --exclude=CVS /usr/ports/science/libsvm/libsvm.diff /home/rafan/tmp/ports/libsvm/libsvm.diff >--- /usr/ports/science/libsvm/libsvm.diff Thu Jan 1 08:00:00 1970 >+++ /home/rafan/tmp/ports/libsvm/libsvm.diff Tue Nov 16 02:47:38 2004 >@@ -0,0 +1 @@ >+===> Generating patch >diff -ruN --exclude=CVS /usr/ports/science/libsvm/pkg-message /home/rafan/tmp/ports/libsvm/pkg-message >--- /usr/ports/science/libsvm/pkg-message Thu Jan 1 08:00:00 1970 >+++ /home/rafan/tmp/ports/libsvm/pkg-message Tue Nov 16 02:47:12 2004 >@@ -0,0 +1,5 @@ >+ >+Some useful tools are installed to %%DATADIR%%. >+Most of them are written in Python, please install >+lang/python before trying them. >+ >diff -ruN --exclude=CVS /usr/ports/science/libsvm/pkg-plist /home/rafan/tmp/ports/libsvm/pkg-plist >--- /usr/ports/science/libsvm/pkg-plist Sun Jun 6 21:27:56 2004 >+++ /home/rafan/tmp/ports/libsvm/pkg-plist Tue Nov 16 02:11:08 2004 >@@ -1,8 +1,7 @@ > bin/svm-predict > bin/svm-scale > bin/svm-train >+%%DATADIR%%/grid.py >+%%DATADIR%%/easy.py > %%LIBSVM_PYTHON%%%%PYTHON_SITELIBDIR%%/svm.py > %%LIBSVM_PYTHON%%%%PYTHON_SITELIBDIR%%/svmc.so >-%%PORTDOCS%%%%DOCSDIR%%/README >-%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT >-%%PORTDOCS%%@dirrm %%DOCSDIR%% >===> Done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 73981
: 48335 |
48336