source: trunk/dports/math/mallet/Portfile @ 89215

Last change on this file since 89215 was 89215, checked in by hum@…, 8 years ago

New port: mallet @2.0.7 - MAchine Learning for LanguagE Toolkit.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# -*- 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
2# $Id: Portfile 89215 2012-01-21 11:36:57Z hum@macports.org $
3
4PortSystem          1.0
5
6name                mallet
7version             2.0.7
8categories          math java
9maintainers         hum openmaintainer
10
11description         MAchine Learning for LanguagE Toolkit (MALLET)
12long_description    MALLET is a Java-based package for statistical natural \
13                    language processing, document classification, clustering, \
14                    topic modeling, information extraction, and other machine \
15                    learning applications to text.
16
17homepage            http://mallet.cs.umass.edu/
18platforms           darwin
19supported_archs     noarch
20license             CPL-1.0
21
22master_sites        http://mallet.cs.umass.edu/dist/
23checksums           rmd160  083f76b447521dbaa1d3b5747278a41e9b9ba741 \
24                    sha256  bf34241b0589be2d28d57a4b369b4d722f273591cb28bf428d0167f58f91f161
25
26patchfiles          patch-mallet.diff
27
28use_configure       no
29
30build {}
31
32destroot {
33    set malletdir      ${prefix}/share/java/${distname}
34    set mallet_dest    ${destroot}${malletdir}
35    xinstall -m 755    ${worksrcpath}/bin/mallet ${destroot}${prefix}/bin
36    reinplace "s|@malletdir@|${malletdir}|"      ${destroot}${prefix}/bin/mallet
37    xinstall -m 755 -d ${mallet_dest}
38    xinstall -m 644    ${worksrcpath}/LICENSE ${mallet_dest}
39    foreach d {dist sample-data} {
40        copy ${worksrcpath}/${d} ${mallet_dest}
41        system "chmod -R a+rx ${mallet_dest}/${d}"
42    }
43}
44   
45livecheck.type      regex
46livecheck.url       http://mallet.cs.umass.edu/download.php
47livecheck.regex     ${name}-(\[\\d\\.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.