[58342] trunk/dports/science

mnick at macports.org mnick at macports.org
Sat Sep 26 16:15:08 PDT 2009


Revision: 58342
          http://trac.macports.org/changeset/58342
Author:   mnick at macports.org
Date:     2009-09-26 16:15:08 -0700 (Sat, 26 Sep 2009)
Log Message:
-----------
new port: weka 3.6.1

Added Paths:
-----------
    trunk/dports/science/weka/
    trunk/dports/science/weka/Portfile
    trunk/dports/science/weka/files/
    trunk/dports/science/weka/files/patch-build.xml.diff
    trunk/dports/science/weka/files/weka_icon.icns

Added: trunk/dports/science/weka/Portfile
===================================================================
--- trunk/dports/science/weka/Portfile	                        (rev 0)
+++ trunk/dports/science/weka/Portfile	2009-09-26 23:15:08 UTC (rev 58342)
@@ -0,0 +1,57 @@
+# -*- 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
+# $Id$
+
+PortSystem          1.0
+
+name                weka
+version             3.6.1
+maintainers         mnick
+
+categories          science java
+description         Weka is a collection of machine learning algorithms for data mining tasks implemnted in java
+long_description    ${description}. \
+                    The algorithms can either be applied directly to a dataset or called from \
+                    your own Java code. Weka contains tools for data pre-processing, classification, \
+                    regression, clustering, association rules, and visualization. It is also \
+                    well-suited for developing new machine learning schemes.
+license             GPL
+
+platforms           darwin
+
+homepage            http://www.cs.waikato.ac.nz/ml/weka/
+master_sites        sourceforge
+use_zip             yes
+distname            ${name}-3-6-1
+
+checksums           md5     8a50b593ea0db4c45c163332ad2af799 \
+                    sha1    4a1dfacb85edeb101b5aa942d152eb24d5f22c10 \
+                    rmd160  87ff849025a1d0074f7b9f5b17c7678356a8522b
+
+patchfiles          patch-build.xml.diff
+
+use_configure       no
+depends_build       port:jarbundler \
+                    bin:ant:apache-ant
+
+build.env-append    CLASSPATH=${prefix}/share/java/jarbundler.jar
+build.cmd           ant
+build.args          "compile release_sub_tasks osx_application"
+build.pre_args      -Drelease='3-6-1'
+
+post-extract {
+    system "cd ${worksrcpath} && jar xf ./weka-src.jar"
+    file copy ${portpath}/${filesdir}/weka_icon.icns ${worksrcpath}/src/main/java/weka/gui
+}
+
+pre-build {
+    reinplace "s|wekadocs|${worksrcdir}|g" ${worksrcpath}/build.xml
+}
+
+destroot {
+    file copy ${worksrcpath}/osx-distrib/weka-3-6-1.app ${destroot}${applications_dir}/Weka.app
+}
+
+# only check even minor versions for stable releases
+livecheck.type     regex
+livecheck.url       http://sourceforge.net/export/rss2_projfiles.php?project=weka
+livecheck.regex     <title>${name}-\\d-\\d*\[24680\] (\\d.*) released .*</title>


Property changes on: trunk/dports/science/weka/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/science/weka/files/patch-build.xml.diff
===================================================================
--- trunk/dports/science/weka/files/patch-build.xml.diff	                        (rev 0)
+++ trunk/dports/science/weka/files/patch-build.xml.diff	2009-09-26 23:15:08 UTC (rev 58342)
@@ -0,0 +1,19 @@
+--- build.xml.orig	2009-08-11 17:51:20.000000000 +0200
++++ build.xml	2009-08-11 17:51:49.000000000 +0200
+@@ -352,16 +352,6 @@
+       </jarfileset>
+     </jarbundler>
+ 
+-    <!-- Make a .dmg disk image -->
+-    <exec executable="/usr/bin/hdiutil" os="Mac OS X">
+-      <arg value="create"/>
+-      <arg value="-srcfolder"/>
+-      <arg value="${macdistrib}"/>
+-      <arg value="-volname"/>
+-      <arg value="weka-${release}"/>
+-      <arg value="-ov"/>
+-      <arg value="${macdistrib}/weka-${release}.dmg"/>
+-    </exec>
+   </target>
+ 
+ <!-- New subversion stuff -->

Added: trunk/dports/science/weka/files/weka_icon.icns
===================================================================
(Binary files differ)


Property changes on: trunk/dports/science/weka/files/weka_icon.icns
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090926/073b4eab/attachment.html>


More information about the macports-changes mailing list