[86909] trunk/dports/devel

hum at macports.org hum at macports.org
Sun Nov 6 16:31:40 PST 2011


Revision: 86909
          http://trac.macports.org/changeset/86909
Author:   hum at macports.org
Date:     2011-11-06 16:31:40 -0800 (Sun, 06 Nov 2011)
Log Message:
-----------
New port: jubatus 0.1.0 - Distributed Online Machine Learning Framework.

Added Paths:
-----------
    trunk/dports/devel/jubatus/
    trunk/dports/devel/jubatus/Portfile
    trunk/dports/devel/jubatus/files/
    trunk/dports/devel/jubatus/files/patch-wscript.diff
    trunk/dports/devel/jubatus/files/patch-zk.hpp.diff

Added: trunk/dports/devel/jubatus/Portfile
===================================================================
--- trunk/dports/devel/jubatus/Portfile	                        (rev 0)
+++ trunk/dports/devel/jubatus/Portfile	2011-11-07 00:31:40 UTC (rev 86909)
@@ -0,0 +1,77 @@
+# -*- 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$
+
+PortSystem          1.0
+
+name                jubatus
+version             0.1.0
+categories          devel math textproc
+platforms           darwin
+maintainers         hum openmaintainer
+license             LGPL-2.1
+
+homepage            http://jubat.us/
+description         Distributed Online Machine Learning Framework
+long_description    The Jubatus library is a online machine learning framework \
+                    which runs in distributed environment. Jubatus library includes \
+                    these functions: multi-class/binary classification, pre-proccessing \
+                    data (for natural language), and process management.
+
+master_sites        https://github.com/jubatus/jubatus/downloads
+use_bzip2           yes
+checksums           rmd160  a2d069761b7ac4690537911c5a958ffe76ad2748 \
+                    sha256  e274dc87884f0dc962355fd19c9cae2981bfbbd099fda7720fe96c09da9c035c
+
+depends_lib         port:pkgconfig \
+                    port:py-msgpack \
+                    port:msgpack \
+                    port:pficommon \
+                    port:re2 \
+                    port:google-glog \
+                    port:ux-trie \
+                    port:mecab-utf8 \
+                    port:libzookeeper
+
+patchfiles          patch-wscript.diff \
+                    patch-zk.hpp.diff
+
+post-patch {
+    reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/wscript
+}
+
+configure.cmd       ./waf configure
+configure.args-append    --enable-ux --enable-mecab
+configure.universal_args
+
+build.cmd           ./waf build
+build.target
+
+destroot.cmd        ./waf
+destroot.args       --destdir=${destroot}
+destroot.destdir
+
+post-destroot {
+    set libdir   ${destroot}${prefix}/lib
+    foreach libname [glob -tails -directory ${libdir} *.dylib] {
+        system "install_name_tool -id ${prefix}/lib/${libname} ${libdir}/${libname}"
+    }
+    set bindir   ${destroot}${prefix}/bin
+    set builddir ${worksrcpath}/build/src
+    foreach path [concat [glob ${libdir}/*.dylib] [glob ${bindir}/*]] {
+        system "install_name_tool -change ${builddir}/client/libjubatus.dylib                         ${prefix}/lib/libjubatus.dylib            ${path}"
+        system "install_name_tool -change ${builddir}/common/libjubacommon.dylib                      ${prefix}/lib/libjubacommon.dylib         ${path}"
+        system "install_name_tool -change ${builddir}/plugin/fv_converter/libmecab_splitter.dylib     ${prefix}/lib/libmecab_splitter.dylib     ${path}"
+        system "install_name_tool -change ${builddir}/plugin/fv_converter/libux_splitter.dylib        ${prefix}/lib/libux_splitter.dylib        ${path}"
+        system "install_name_tool -change ${builddir}/server/classifier/libjubaclassifier.dylib       ${prefix}/lib/libjubaclassifier.dylib     ${path}"
+        system "install_name_tool -change ${builddir}/server/fv_converter/libfilter_sample.dylib      ${prefix}/lib/libfilter_sample.dylib      ${path}"
+        system "install_name_tool -change ${builddir}/server/fv_converter/libjubaconverter.dylib      ${prefix}/lib/libjubaconverter.dylib      ${path}"
+        system "install_name_tool -change ${builddir}/server/fv_converter/libnum_feature_sample.dylib ${prefix}/lib/libnum_feature_sample.dylib ${path}"
+        system "install_name_tool -change ${builddir}/server/fv_converter/libnum_filter_sample.dylib  ${prefix}/lib/libnum_filter_sample.dylib  ${path}"
+        system "install_name_tool -change ${builddir}/server/fv_converter/libsplitter_sample.dylib    ${prefix}/lib/libsplitter_sample.dylib    ${path}"
+        system "install_name_tool -change ${builddir}/server/storage/libjubastorage.dylib             ${prefix}/lib/libjubastorage.dylib        ${path}"
+    }
+}
+
+livecheck.type      regex
+livecheck.url       [lindex ${master_sites} 0]
+livecheck.regex     ${name}-(\[0-9.\]+)\\.tar


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

Added: trunk/dports/devel/jubatus/files/patch-wscript.diff
===================================================================
--- trunk/dports/devel/jubatus/files/patch-wscript.diff	                        (rev 0)
+++ trunk/dports/devel/jubatus/files/patch-wscript.diff	2011-11-07 00:31:40 UTC (rev 86909)
@@ -0,0 +1,30 @@
+--- wscript.orig	2011-10-27 00:50:52.000000000 +0900
++++ wscript	2011-11-06 17:01:03.000000000 +0900
+@@ -19,6 +19,7 @@
+ 
+ def configure(conf):
+   conf.env.CXXFLAGS += ['-O2', '-Wall', '-g', '-pipe']
++  conf.env.LINKFLAGS += ['-flat_namespace']
+ 
+   conf.load('compiler_cxx')
+   conf.load('unittest_gtest')
+@@ -33,7 +34,7 @@
+   conf.check_cxx(header_name = 'signal.h')
+ 
+   if not Options.options.disable_zookeeper:
+-    conf.check_cxx(header_name = 'c-client-src/zookeeper.h',
++    conf.check_cxx(header_name = 'zookeeper/zookeeper.h',
+                    define_name = 'HAVE_ZOOKEEPER_H',
+                    errmsg = 'not found ("--disable-zookeeper" option is available)')
+     conf.check_cxx(lib = 'zookeeper_mt', errmsg = 'ZK not found', libpath = '/usr/local/lib')
+--- src/common/wscript.orig	2011-10-27 00:50:52.000000000 +0900
++++ src/common/wscript	2011-10-30 04:14:23.000000000 +0900
+@@ -4,7 +4,7 @@
+   pass
+ 
+ def configure(conf):
+-  conf.check_cxx(lib = 'crypt', mandatory = True)
++#  conf.check_cxx(lib = 'crypt', mandatory = True)
+   conf.check_cxx(function_name = 'crypt', header_name = 'unistd.h', mandatory = True)
+   conf.check_cxx(header_name = 'sys/socket.h net/if.h sys/ioctl.h', mandatory = True)
+   conf.check_cxx(header_name = 'netinet/in.h arpa/inet.h', mandatory = True)

Added: trunk/dports/devel/jubatus/files/patch-zk.hpp.diff
===================================================================
--- trunk/dports/devel/jubatus/files/patch-zk.hpp.diff	                        (rev 0)
+++ trunk/dports/devel/jubatus/files/patch-zk.hpp.diff	2011-11-07 00:31:40 UTC (rev 86909)
@@ -0,0 +1,11 @@
+--- src/common/zk.hpp.orig	2011-10-27 00:50:52.000000000 +0900
++++ src/common/zk.hpp	2011-11-06 17:18:19.000000000 +0900
+@@ -27,7 +27,7 @@
+ #include <pficommon/concurrent/lock.h>
+ #include <pficommon/concurrent/threading_model.h>
+ 
+-#include <c-client-src/zookeeper.h>
++#include <zookeeper/zookeeper.h>
+ 
+ namespace jubatus{
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111106/3b0d10a9/attachment-0001.html>


More information about the macports-changes mailing list