aboutsummaryrefslogtreecommitdiffstats
path: root/science/libsvm
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2004-06-06 21:27:56 +0800
committervs <vs@FreeBSD.org>2004-06-06 21:27:56 +0800
commit75deb1661155bf6be174d1f558be4f3268e3af5d (patch)
tree3a234bcd3ec2efff7543a9e7cd2d500427dfef45 /science/libsvm
parent70cd72932149a09a379e2357bd1381169e263bc0 (diff)
downloadfreebsd-ports-gnome-75deb1661155bf6be174d1f558be4f3268e3af5d.tar.gz
freebsd-ports-gnome-75deb1661155bf6be174d1f558be4f3268e3af5d.tar.zst
freebsd-ports-gnome-75deb1661155bf6be174d1f558be4f3268e3af5d.zip
Update to 2.6
PR: ports/66635 Submitted by: Roman Neuhauser Approved by: maintainer
Diffstat (limited to 'science/libsvm')
-rw-r--r--science/libsvm/Makefile9
-rw-r--r--science/libsvm/pkg-plist2
-rw-r--r--science/libsvm/pkg-plist.python2
3 files changed, 5 insertions, 8 deletions
diff --git a/science/libsvm/Makefile b/science/libsvm/Makefile
index 3c126ad6b7c8..15f08f6c48a7 100644
--- a/science/libsvm/Makefile
+++ b/science/libsvm/Makefile
@@ -15,14 +15,11 @@ COMMENT= A library for Support Vector Machines
.if defined(WITH_PYTHON)
USE_PYTHON= yes
-PLIST= ${WRKDIR}/pkg-plist
ALL_TARGET= all py
MAKE_ARGS+= PYTHON_INCLUDEDIR=${PYTHON_INCLUDEDIR}
-.endif
-
-.if defined(WITH_PYTHON)
-pre-install:
- @${CAT} ${PKGDIR}/pkg-plist.python ${PKGDIR}/pkg-plist > ${PLIST}
+PLIST_SUB+= LIBSVM_PYTHON=""
+.else
+PLIST_SUB+= LIBSVM_PYTHON="@comment "
.endif
pre-everything::
diff --git a/science/libsvm/pkg-plist b/science/libsvm/pkg-plist
index 9988e2bb4a98..ef9b09b323d5 100644
--- a/science/libsvm/pkg-plist
+++ b/science/libsvm/pkg-plist
@@ -1,6 +1,8 @@
bin/svm-predict
bin/svm-scale
bin/svm-train
+%%LIBSVM_PYTHON%%%%PYTHON_SITELIBDIR%%/svm.py
+%%LIBSVM_PYTHON%%%%PYTHON_SITELIBDIR%%/svmc.so
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
%%PORTDOCS%%@dirrm %%DOCSDIR%%
diff --git a/science/libsvm/pkg-plist.python b/science/libsvm/pkg-plist.python
deleted file mode 100644
index cf9d92b0acb6..000000000000
--- a/science/libsvm/pkg-plist.python
+++ /dev/null
@@ -1,2 +0,0 @@
-lib/%%PYTHON_VERSION%%/site-packages/svm.py
-lib/%%PYTHON_VERSION%%/site-packages/svmc.so