Ticket #23908: Portfile-weka.diff

File Portfile-weka.diff, 2.1 KB (added by singingwolfboy@…, 15 years ago)
  • Portfile

    old new  
    44PortSystem          1.0
    55
    66name                weka
    7 version             3.6.1
     7version             3.6.2
     8set dash_vers       [string map {. -} ${version}]
    89maintainers         mnick
    910
    1011categories          science java
    11 description         Weka is a collection of machine learning algorithms for data mining tasks implemnted in java
     12description         Weka is a collection of machine learning algorithms for data mining tasks implemented in java
    1213long_description    ${description}. \
    1314                    The algorithms can either be applied directly to a dataset or called from \
    1415                    your own Java code. Weka contains tools for data pre-processing, classification, \
     
    1920platforms           darwin
    2021
    2122homepage            http://www.cs.waikato.ac.nz/ml/weka/
    22 master_sites        sourceforge
     23master_sites        sourceforge:weka
    2324use_zip             yes
    24 distname            ${name}-3-6-1
     25distname            ${name}-${dash_vers}
    2526
    26 checksums           md5     8a50b593ea0db4c45c163332ad2af799 \
    27                     sha1    4a1dfacb85edeb101b5aa942d152eb24d5f22c10 \
    28                     rmd160  87ff849025a1d0074f7b9f5b17c7678356a8522b
     27checksums           md5     a065b9bc25458833970f6bca3f84785a \
     28                    sha1    baa061128284b6d1e9aea7c572a06996194c5305 \
     29                    rmd160  435eef8e81804b2cee82a4ead85dc4ea25ff16c7
    2930
    3031patchfiles          patch-build.xml.diff
    3132
     
    3637build.env-append    CLASSPATH=${prefix}/share/java/jarbundler.jar
    3738build.cmd           ant
    3839build.args          "compile release_sub_tasks osx_application"
    39 build.pre_args      -Drelease='3-6-1'
     40build.pre_args      -Drelease='${version}'
    4041
    4142post-extract {
    4243    system "cd ${worksrcpath} && jar xf ./weka-src.jar"
     
    4849}
    4950
    5051destroot {
    51     file copy ${worksrcpath}/osx-distrib/weka-3-6-1.app ${destroot}${applications_dir}/Weka.app
     52    file copy ${worksrcpath}/osx-distrib/weka-${version}.app ${destroot}${applications_dir}/Weka.app
    5253}
    5354
    5455# only check even minor versions for stable releases