aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2016-08-03 10:08:46 +0800
committerdanilo <danilo@FreeBSD.org>2016-08-03 10:08:46 +0800
commit921ba2bf8af809a921ac39f33ec465a2b59dcc63 (patch)
treee1220b0bdb84c0eb9f93df326ce50273ae74cabb /textproc
parent3bba915c664ffbf51bb20f153d03fee1d1d6a7df (diff)
downloadfreebsd-ports-graphics-921ba2bf8af809a921ac39f33ec465a2b59dcc63.tar.gz
freebsd-ports-graphics-921ba2bf8af809a921ac39f33ec465a2b59dcc63.tar.zst
freebsd-ports-graphics-921ba2bf8af809a921ac39f33ec465a2b59dcc63.zip
- Install examples files by default
Suggested by: Kostas Oikonomou <k.oikonomou@att.net>
Diffstat (limited to 'textproc')
-rw-r--r--textproc/weka/Makefile8
-rw-r--r--textproc/weka/pkg-plist27
2 files changed, 32 insertions, 3 deletions
diff --git a/textproc/weka/Makefile b/textproc/weka/Makefile
index b120b90cb1d..3b70bfc56a0 100644
--- a/textproc/weka/Makefile
+++ b/textproc/weka/Makefile
@@ -3,6 +3,7 @@
PORTNAME= weka
DISTVERSION= 3-8-0
+PORTREVISION= 1
CATEGORIES= textproc java
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-3-8/${PORTVERSION}
@@ -20,16 +21,17 @@ NO_BUILD= yes
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
+OPTIONS_DEFINE= EXAMPLES
+
SUB_FILES= ${PORTNAME}.sh
SUB_LIST= JARNAME=${PORTNAME}.jar
-PLIST_FILES= %%DATADIR%%/${PORTNAME}.jar \
- bin/${PORTNAME}
-
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.jar \
${STAGEDIR}${DATADIR}/${PORTNAME}.jar
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
diff --git a/textproc/weka/pkg-plist b/textproc/weka/pkg-plist
new file mode 100644
index 00000000000..d7a5d101fb5
--- /dev/null
+++ b/textproc/weka/pkg-plist
@@ -0,0 +1,27 @@
+bin/weka
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ReutersCorn-test.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ReutersCorn-train.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ReutersGrain-test.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ReutersGrain-train.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/airline.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/breast-cancer.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contact-lenses.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cpu.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cpu.with.vendor.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/credit-g.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/diabetes.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/glass.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hypothyroid.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ionosphere.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/iris.2D.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/iris.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/labor.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/segment-challenge.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/segment-test.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/soybean.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/supermarket.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/unbalanced.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/vote.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/weather.nominal.arff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/weather.numeric.arff
+%%DATADIR%%/weka.jar