aboutsummaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-12-13 18:33:51 +0800
committerkrion <krion@FreeBSD.org>2004-12-13 18:33:51 +0800
commita5f2410188f802392b210398f339630ebeb08b46 (patch)
tree1d1f4df1f19f53f67d996f4a05c3ac5ceac612eb /science
parent363454d3b9e4b62a196345e6bc26186c5c550d9d (diff)
downloadfreebsd-ports-gnome-a5f2410188f802392b210398f339630ebeb08b46.tar.gz
freebsd-ports-gnome-a5f2410188f802392b210398f339630ebeb08b46.tar.zst
freebsd-ports-gnome-a5f2410188f802392b210398f339630ebeb08b46.zip
Fix pkg-plist and add python category for libsvm-python (slave port)
PR: ports/74973 Submitted by: maintainer
Diffstat (limited to 'science')
-rw-r--r--science/libsvm/Makefile6
-rw-r--r--science/libsvm/pkg-plist1
2 files changed, 5 insertions, 2 deletions
diff --git a/science/libsvm/Makefile b/science/libsvm/Makefile
index 75a5e52f6d3f..9152bc144fc6 100644
--- a/science/libsvm/Makefile
+++ b/science/libsvm/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libsvm
PORTVERSION= 2.71
+PORTREVISION= 1
CATEGORIES= science math
MASTER_SITES= http://www.csie.ntu.edu.tw/~cjlin/libsvm/ \
http://www.csie.ntu.edu.tw/~cjlin/libsvm/oldfiles/
@@ -16,6 +17,7 @@ COMMENT= A library for Support Vector Machines
USE_ZIP= yes
.if defined(WITH_PYTHON)
+CATEGORIES+= python
USE_PYTHON= yes
USE_REINPLACE= yes
PLIST_SUB+= LIBSVM_PYTHON=""
@@ -26,7 +28,7 @@ PYEXAMPLES= python/cross_validation.py \
python/test_cross_validation.py
.endif
-TXT_DOCS= COPYRIGHT README FAQ.html python/README.python
+TXT_DOCS= COPYRIGHT README FAQ.html README.python
.if !defined(NOPORTDOCS)
PORTDOCS= ${TXT_DOCS}
.endif
@@ -71,7 +73,7 @@ do-install:
done
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
- ${CP} ${WRKSRC}/python/README ${WRKSRC}/python/README.python
+ ${CP} ${WRKSRC}/python/README ${WRKSRC}/README.python
for f in ${TXT_DOCS}; do \
${INSTALL_DATA} ${WRKSRC}/$$f ${DOCSDIR}; \
done
diff --git a/science/libsvm/pkg-plist b/science/libsvm/pkg-plist
index f5eb10746088..43cfad3c77ad 100644
--- a/science/libsvm/pkg-plist
+++ b/science/libsvm/pkg-plist
@@ -5,3 +5,4 @@ bin/svm-train
%%DATADIR%%/easy.py
%%LIBSVM_PYTHON%%%%PYTHON_SITELIBDIR%%/svm.py
%%LIBSVM_PYTHON%%%%PYTHON_SITELIBDIR%%/svmc.so
+@dirrm %%DATADIR%%