[113456] trunk/dports/textproc
hum at macports.org
hum at macports.org
Sat Nov 16 06:07:30 PST 2013
Revision: 113456
https://trac.macports.org/changeset/113456
Author: hum at macports.org
Date: 2013-11-16 06:07:30 -0800 (Sat, 16 Nov 2013)
Log Message:
-----------
New port: brown-cluster @ 1.3-20130905 - C++ implementation of the Brown word clustering algorithm.
Added Paths:
-----------
trunk/dports/textproc/brown-cluster/
trunk/dports/textproc/brown-cluster/Portfile
trunk/dports/textproc/brown-cluster/files/
trunk/dports/textproc/brown-cluster/files/patch-Makefile.diff
trunk/dports/textproc/brown-cluster/files/patch-cpp11.diff
Added: trunk/dports/textproc/brown-cluster/Portfile
===================================================================
--- trunk/dports/textproc/brown-cluster/Portfile (rev 0)
+++ trunk/dports/textproc/brown-cluster/Portfile 2013-11-16 14:07:30 UTC (rev 113456)
@@ -0,0 +1,39 @@
+# -*- 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
+PortGroup github 1.0
+
+github.setup percyliang brown-cluster add013e2d42e69b3dda505b2d54fe3f52650a4df
+
+version 1.3-20130905
+categories textproc
+maintainers hum openmaintainer
+
+description C++ implementation of the Brown word clustering algorithm
+long_description ${description}.
+
+platforms darwin
+license Permissive
+
+checksums rmd160 daaf19aac15030689c771c09bdc0b1a9c2db452b \
+ sha256 249bcc66277f1d72c81ece3bf0d28af66ec3cfbae8e6fb16bf3d7caff82a2401
+
+patchfiles patch-Makefile.diff patch-cpp11.diff
+
+use_configure no
+
+build.target wcluster
+build.args CXX="${configure.cxx}" \
+ CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]"
+
+destroot {
+ xinstall -m 755 ${worksrcpath}/wcluster ${destroot}${prefix}/bin
+
+ set dest_doc ${destroot}${prefix}/share/doc/${name}
+ set dest_ex ${destroot}${prefix}/share/examples/${name}
+ xinstall -d ${dest_doc}
+ xinstall -d ${dest_ex}
+ xinstall -m 644 -W ${worksrcpath} README ${dest_doc}
+ xinstall -m 644 -W ${worksrcpath} input.txt output.txt ${dest_ex}
+}
Property changes on: trunk/dports/textproc/brown-cluster/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/textproc/brown-cluster/files/patch-Makefile.diff
===================================================================
--- trunk/dports/textproc/brown-cluster/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/textproc/brown-cluster/files/patch-Makefile.diff 2013-11-16 14:07:30 UTC (rev 113456)
@@ -0,0 +1,15 @@
+--- Makefile.orig 2013-11-14 01:13:02.000000000 +0900
++++ Makefile 2013-11-14 01:20:42.000000000 +0900
+@@ -7,10 +7,10 @@
+ endif
+
+ wcluster: $(files)
+- g++ -Wall -g -O3 -o wcluster $(files)
++ $(CXX) $(CXXFLAGS) -o wcluster $(files)
+
+ %.o: %.cc
+- g++ -Wall -g -O3 -o $@ -c $<
++ $(CXX) $(CXXFLAGS) -o $@ -c $<
+
+ clean:
+ rm wcluster basic/*.o *.o
Added: trunk/dports/textproc/brown-cluster/files/patch-cpp11.diff
===================================================================
--- trunk/dports/textproc/brown-cluster/files/patch-cpp11.diff (rev 0)
+++ trunk/dports/textproc/brown-cluster/files/patch-cpp11.diff 2013-11-16 14:07:30 UTC (rev 113456)
@@ -0,0 +1,21 @@
+--- basic/std.h.orig 2013-09-05 23:57:03.000000000 +0900
++++ basic/std.h 2013-11-16 12:14:08.000000000 +0900
+@@ -15,11 +15,18 @@
+ #include <vector>
+ #include <string>
+ #include <queue>
++#if __cplusplus >= 201103L || defined(_LIBCPP_VERSION)
++#include <unordered_map>
++#include <unordered_set>
++#else
+ #include <tr1/unordered_map>
+ #include <tr1/unordered_set>
++#endif
+
+ using namespace std;
++#if __cplusplus < 201103L && !defined(_LIBCPP_VERSION)
+ using namespace std::tr1;
++#endif
+
+ ////////////////////////////////////////////////////////////
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131116/8cf054c7/attachment-0001.html>
More information about the macports-changes
mailing list