aboutsummaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2004-06-06 13:27:56 +0000
committerVolker Stolz <vs@FreeBSD.org>2004-06-06 13:27:56 +0000
commitdaa598d6d28737d01b1ec659e48f58b1ee593b40 (patch)
tree5b5631b59e309308a99ec28287b7ff49ae01b2c9 /science
parentbf1124340b78be2320aaf9e3e04e68a648f3d906 (diff)
downloadports-daa598d6d28737d01b1ec659e48f58b1ee593b40.tar.gz
ports-daa598d6d28737d01b1ec659e48f58b1ee593b40.zip
Update to 2.6
PR: ports/66635 Submitted by: Roman Neuhauser Approved by: maintainer
Notes
Notes: svn path=/head/; revision=110944
Diffstat (limited to 'science')
-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