source: trunk/dports/science/weka/Portfile

Last change on this file was 113965, checked in by macsforever2000@…, 4 years ago

mnick has retired.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 113965 2013-11-26 20:23:14Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                weka
7version             3.6.4
8set dash_vers       [string map {. -} ${version}]
9maintainers         nomaintainer
10
11categories          science java
12description         Weka is a collection of machine learning algorithms for data mining tasks implemented in java
13long_description    ${description}. \
14                    The algorithms can either be applied directly to a dataset or called from \
15                    your own Java code. Weka contains tools for data pre-processing, classification, \
16                    regression, clustering, association rules, and visualization. It is also \
17                    well-suited for developing new machine learning schemes.
18license             GPL
19
20platforms           darwin
21
22homepage            http://www.cs.waikato.ac.nz/ml/weka/
23master_sites        sourceforge:weka
24use_zip             yes
25distname            ${name}-${dash_vers}
26
27checksums           md5     39555fdb912552d418538f6e6b74d784 \
28                    sha1    d0d4fd9bfbea42fe270f1ecbed54533968c9e5c4 \
29                    rmd160  6694adcb5e0feeb382a6cfd74024ba50d46a63c9
30
31patchfiles          patch-build.xml.diff
32
33use_configure       no
34depends_build       port:jarbundler \
35                    bin:ant:apache-ant
36
37build.env-append    CLASSPATH=${prefix}/share/java/jarbundler.jar
38build.cmd           ant
39build.args          "compile release_sub_tasks osx_application"
40build.pre_args      -Drelease='${version}'
41
42post-extract {
43    system "cd ${worksrcpath} && jar xf ./weka-src.jar"
44    file copy ${portpath}/${filesdir}/weka_icon.icns ${worksrcpath}/src/main/java/weka/gui
45}
46
47pre-build {
48    reinplace "s|wekadocs|${worksrcdir}|g" ${worksrcpath}/build.xml
49}
50
51destroot {
52    file copy ${worksrcpath}/osx-distrib/weka-${version}.app ${destroot}${applications_dir}/Weka.app
53}
54
55# only check even minor versions for stable releases
56livecheck.type     regex
57livecheck.url       http://sourceforge.net/export/rss2_projfiles.php?project=weka
58livecheck.regex     <title>${name}-\\d-\\d*\[24680\] (\\d.*) released .*</title>
Note: See TracBrowser for help on using the repository browser.