# -*- 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 # $Id: Portfile 112684 2013-10-29 14:10:44Z hum@macports.org $ PortSystem 1.0 name mallet version 2.0.7 revision 1 categories math java maintainers hum openmaintainer description MAchine Learning for LanguagE Toolkit (MALLET) long_description MALLET is a Java-based package for statistical natural \ language processing, document classification, clustering, \ topic modeling, information extraction, and other machine \ learning applications to text. homepage http://mallet.cs.umass.edu/ platforms darwin supported_archs noarch license CPL-1 master_sites http://mallet.cs.umass.edu/dist/ checksums rmd160 083f76b447521dbaa1d3b5747278a41e9b9ba741 \ sha256 bf34241b0589be2d28d57a4b369b4d722f273591cb28bf428d0167f58f91f161 patchfiles patch-mallet.diff use_configure no build {} destroot { # install jar files. xinstall -d ${destroot}${prefix}/share/java set malletdir ${prefix}/share/java/${distname} copy ${worksrcpath}/dist ${destroot}${malletdir} system "chmod -R a+rx ${destroot}${malletdir}" # install a command utility. xinstall -m 755 ${worksrcpath}/bin/mallet ${destroot}${prefix}/bin reinplace "s|@malletdir@|${malletdir}|" ${destroot}${prefix}/bin/mallet # install additional documents. set dest_doc ${destroot}${prefix}/share/doc/${name} xinstall -d ${dest_doc} xinstall -m 644 ${worksrcpath}/LICENSE ${dest_doc} # install examples. xinstall -d ${destroot}${prefix}/share/examples set dest_ex ${destroot}${prefix}/share/examples/${name} copy ${worksrcpath}/sample-data ${dest_ex} system "chmod -R a+rx ${dest_ex}" } livecheck.type regex livecheck.url http://mallet.cs.umass.edu/download.php livecheck.regex ${name}-(\[\\d\\.\]+)\\.tar