[89441] trunk/dports/math
hum at macports.org
hum at macports.org
Sun Jan 29 03:36:36 PST 2012
Revision: 89441
http://trac.macports.org/changeset/89441
Author: hum at macports.org
Date: 2012-01-29 03:36:32 -0800 (Sun, 29 Jan 2012)
Log Message:
-----------
New port: bayon @0.1.0 - a simple and fast hard-clustering tool.
Added Paths:
-----------
trunk/dports/math/bayon/
trunk/dports/math/bayon/Portfile
trunk/dports/math/bayon/files/
trunk/dports/math/bayon/files/patch-classifier.diff
Added: trunk/dports/math/bayon/Portfile
===================================================================
--- trunk/dports/math/bayon/Portfile (rev 0)
+++ trunk/dports/math/bayon/Portfile 2012-01-29 11:36:32 UTC (rev 89441)
@@ -0,0 +1,44 @@
+# -*- 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 bayon
+version 0.1.0
+categories math textproc
+maintainers hum openmaintainer
+
+description a simple and fast hard-clustering tool
+long_description Bayon is a simple and fast hard-clustering tool, and supports \
+ Repeated Bisection clustering and K-means clustering.
+
+homepage http://code.google.com/p/bayon/
+platforms darwin
+license GPL-2.1
+
+master_sites googlecode:bayon
+checksums rmd160 2f0557a96e992651fb705172a6ed4b4da09209c1 \
+ sha256 1e8fc325453ea928c924bca1dcbc54fb2fde54ec90537a4ff6c6286778872b22
+
+patchfiles patch-classifier.diff
+
+depends_lib port:google-sparsehash \
+ port:google-test
+
+variant universal {
+ configure.universal_args
+}
+
+build.args CFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
+ CPPFLAGS="-I. -I${prefix}/include" \
+ LDFLAGS="-L. -L${prefix}/lib"
+
+test.run yes
+eval test.args ${build.args}
+
+post-destroot {
+ set sharedir ${prefix}/share/${name}
+ xinstall -d ${destroot}${sharedir}
+ xinstall -m 644 -W ${worksrcpath} COPYING README ${destroot}${sharedir}
+ copy ${worksrcpath}/data ${destroot}${sharedir}
+}
Property changes on: trunk/dports/math/bayon/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/math/bayon/files/patch-classifier.diff
===================================================================
--- trunk/dports/math/bayon/files/patch-classifier.diff (rev 0)
+++ trunk/dports/math/bayon/files/patch-classifier.diff 2012-01-29 11:36:32 UTC (rev 89441)
@@ -0,0 +1,26 @@
+--- classifier.h.orig 2010-09-15 16:56:30.000000000 +0900
++++ classifier.h 2012-01-29 15:35:55.000000000 +0900
+@@ -73,8 +73,9 @@
+ * Constructor.
+ */
+ Classifier() {
+- init_hash_map(VECID_EMPTY_KEY, vectors_);
+- init_hash_map(VECID_EMPTY_KEY, inverted_index_);
++ VectorId empty = VECID_EMPTY_KEY;
++ init_hash_map(empty, vectors_);
++ init_hash_map(empty, inverted_index_);
+ }
+
+ /**
+--- classifier.cc.orig 2010-09-15 16:55:37.000000000 +0900
++++ classifier.cc 2012-01-29 15:35:42.000000000 +0900
+@@ -48,7 +48,8 @@
+ size_t Classifier::lookup_inverted_index(size_t max, const Vector &vec,
+ std::vector<VectorId> &ids) const {
+ HashMap<VectorId, bool>::type idmap;
+- init_hash_map(VECID_EMPTY_KEY, idmap);
++ VectorId empty = VECID_EMPTY_KEY;
++ init_hash_map(empty, idmap);
+ std::vector<VecItem> items;
+ vec.sorted_items_abs(items);
+ for (size_t i = 0; i < items.size() && i < max; i++) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120129/6fb64758/attachment.html>
More information about the macports-changes
mailing list