<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/9b02186badbb19fe577d119ad10e274e4070ff8b">https://github.com/macports/macports-ports/commit/9b02186badbb19fe577d119ad10e274e4070ff8b</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 9b02186 mallet: Update to v2.0.8
</span>9b02186 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 9b02186badbb19fe577d119ad10e274e4070ff8b
</span>Author: Steven Thomas Smith <s.t.smith@ieee.org>
AuthorDate: Tue Jul 23 15:03:04 2019 -0400
<span style='display:block; white-space:pre;color:#404040;'> mallet: Update to v2.0.8
</span>---
math/mallet/Portfile | 46 ++++++++++++++++++++++++-------------
math/mallet/files/patch-mallet.diff | 39 -------------------------------
2 files changed, 30 insertions(+), 55 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 68ce8ad..b6062eb 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;'>@@ -1,10 +1,11 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup java 1.0
</span>
name mallet
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 2.0.7
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 2.0.8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span> categories math java
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -20,33 +21,46 @@ supported_archs noarch
</span> license CPL-1
master_sites http://mallet.cs.umass.edu/dist/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 083f76b447521dbaa1d3b5747278a41e9b9ba741 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 bf34241b0589be2d28d57a4b369b4d722f273591cb28bf428d0167f58f91f161
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 3007048a099bd5870d8566c2b6b9b691f85048ba \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 5b2d6fb9bcf600b1836b09881821a6781dd45a7d3032e61d7500d027a5b34faf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 14868234
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-mallet.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# JDK port to install if required java not found
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+java.fallback openjdk12
</span>
use_configure no
build {}
destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # install jar files.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -d ${destroot}${prefix}/share/java
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # install jar files
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 -d ${destroot}${prefix}/share/java
</span> set malletdir ${prefix}/share/java/${distname}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- copy ${worksrcpath}/dist ${destroot}${malletdir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "chmod -R a+rx ${destroot}${malletdir}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # install a command utility.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 755 ${worksrcpath}/bin/mallet ${destroot}${prefix}/bin
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|@malletdir@|${malletdir}|" ${destroot}${prefix}/bin/mallet
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # install additional documents.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach f [glob -nocomplain ${worksrcpath}/dist/*] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 ${f} ${destroot}${malletdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # install the mallet command; set the malletdir variable
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 ${worksrcpath}/bin/mallet ${destroot}${prefix}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E "s|^\[\[:space:\]\]*(malletdir)=.+\$|\\1=${malletdir}|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/bin/mallet
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # install additional documents
</span> set dest_doc ${destroot}${prefix}/share/doc/${name}
xinstall -d ${dest_doc}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 644 ${worksrcpath}/LICENSE ${dest_doc}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # install examples.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 ${worksrcpath}/LICENSE ${dest_doc}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # install examples
</span> xinstall -d ${destroot}${prefix}/share/examples
set dest_ex ${destroot}${prefix}/share/examples/${name}
copy ${worksrcpath}/sample-data ${dest_ex}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- system "chmod -R a+rx ${dest_ex}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fs-traverse f ${dest_ex} {
</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><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
livecheck.type regex
<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>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index c613203..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/mallet/files/patch-mallet.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,39 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- bin/mallet.orig 2012-01-20 22:48:27.000000000 +0900
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ bin/mallet 2012-01-21 13:35:34.000000000 +0900
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1,10 +1,9 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #!/bin/bash
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--malletdir=`dirname $0`
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--malletdir=`dirname $malletdir`
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+malletdir=@malletdir@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--cp=$malletdir/class:$malletdir/lib/mallet-deps.jar:$CLASSPATH
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+cp=$malletdir/mallet.jar:$malletdir/mallet-deps.jar:$CLASSPATH
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #echo $cp
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- MEMORY=1g
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -26,12 +25,15 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- classify-dir classify data from a single file with a saved classifier
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- classify-file classify the contents of a directory with a saved classifier
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- classify-svmlight classify data from a single file in SVMLight format
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ tag train, test, or run a generic CRF-based tagger
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- train-topics train a topic model from Mallet data files
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- infer-topics use a trained topic model to infer topics for new documents
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- evaluate-topics estimate the probability of new documents under a trained model
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- hlda train a topic model using Hierarchical LDA
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- prune remove features based on frequency or information gain
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- split divide data into testing, training, and validation portions
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ buld-load import large amounts of text into Mallet format
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ run run the main method of the specified class
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- Include --help with any option for more information
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- EOF
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -47,6 +49,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- classify-dir) CLASS=cc.mallet.classify.tui.Text2Classify;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- classify-file) CLASS=cc.mallet.classify.tui.Csv2Classify;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- classify-svmlight) CLASS=cc.mallet.classify.tui.SvmLight2Classify;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ tag) CLASS=cc.mallet.fst.SimpleTagger;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- train-topics) CLASS=cc.mallet.topics.tui.Vectors2Topics;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- infer-topics) CLASS=cc.mallet.topics.tui.InferTopics;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- evaluate-topics) CLASS=cc.mallet.topics.tui.EvaluateTopics;;
</span></pre><pre style='margin:0'>
</pre>