<pre style='margin:0'>
Frank Schima (mf2k) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/61f479661660598e31e541926f159617a4690421">https://github.com/macports/macports-ports/commit/61f479661660598e31e541926f159617a4690421</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 61f4796 mallet: fix classpath definitions
</span>61f4796 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 61f479661660598e31e541926f159617a4690421
</span>Author: Steven Thomas Smith <s.t.smith@ieee.org>
AuthorDate: Tue Jul 23 17:15:15 2019 -0400
<span style='display:block; white-space:pre;color:#404040;'> mallet: fix classpath definitions
</span>---
math/mallet/Portfile | 15 +++++++++----
math/mallet/files/patch-mallet.diff | 42 +++++++++++++++++++++++++++++++++++++
2 files changed, 53 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/mallet/Portfile b/math/mallet/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b6062eb..f8b0405 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/mallet/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/mallet/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,7 +5,7 @@ PortGroup java 1.0
</span>
name mallet
version 2.0.8
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories math java
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -28,6 +28,8 @@ checksums rmd160 3007048a099bd5870d8566c2b6b9b691f85048ba \
</span> # JDK port to install if required java not found
java.fallback openjdk12
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-mallet.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> use_configure no
build {}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -36,13 +38,18 @@ destroot {
</span> # install jar files
xinstall -m 0755 -d ${destroot}${prefix}/share/java
set malletdir ${prefix}/share/java/${distname}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach f [glob -nocomplain ${worksrcpath}/dist/*] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 0755 ${f} ${destroot}${malletdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/dist ${destroot}${malletdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fs-traverse f ${destroot}${malletdir} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[file isfile ${f}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${f} -permissions a+r
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {[file isdirectory ${f}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${f} -permissions a+rx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
# install the mallet command; set the malletdir variable
xinstall -m 0755 ${worksrcpath}/bin/mallet ${destroot}${prefix}/bin
<span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -E "s|^\[\[:space:\]\]*(malletdir)=.+\$|\\1=${malletdir}|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@MALLETDIR@|${malletdir}|" \
</span> ${destroot}${prefix}/bin/mallet
# install additional documents
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/mallet/files/patch-mallet.diff b/math/mallet/files/patch-mallet.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..5869ab9
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/mallet/files/patch-mallet.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,42 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- bin/mallet
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ bin/mallet 2019-07-23 16:22:30.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,13 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #!/bin/bash
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++malletdir=@MALLETDIR@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-malletdir=`dirname $0`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-malletdir=`dirname $malletdir`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-cp=$malletdir/class:$malletdir/lib/mallet-deps.jar:$CLASSPATH
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++cp=$malletdir/mallet.jar:$malletdir/mallet-deps.jar:$CLASSPATH
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #echo $cp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-MEMORY=1g
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++MEMORY=${MALLET_MEMORY:-1g}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CMD=$1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ shift
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -25,12 +23,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ classify-dir classify data from a single file with a saved classifier
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ classify-file classify the contents of a directory with a saved classifier
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ classify-svmlight classify data from a single file in SVMLight format
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ tag train, test, or run a generic CRF-based tagger
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ train-topics train a topic model from Mallet data files
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ infer-topics use a trained topic model to infer topics for new documents
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ evaluate-topics estimate the probability of new documents under a trained model
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ prune remove features based on frequency or information gain
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ split divide data into testing, training, and validation portions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bulk-load for big input files, efficiently prune vocabulary and import docs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ run run the main method of the specified class
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Include --help with any option for more information
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ EOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -47,6 +47,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ classify-dir) CLASS=cc.mallet.classify.tui.Text2Classify;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ classify-file) CLASS=cc.mallet.classify.tui.Csv2Classify;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ classify-svmlight) CLASS=cc.mallet.classify.tui.SvmLight2Classify;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ tag) CLASS=cc.mallet.fst.SimpleTagger;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ train-topics) CLASS=cc.mallet.topics.tui.TopicTrainer;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ infer-topics) CLASS=cc.mallet.topics.tui.InferTopics;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ evaluate-topics) CLASS=cc.mallet.topics.tui.EvaluateTopics;;
</span></pre><pre style='margin:0'>
</pre>