[127899] trunk/dports/textproc/kytea

hum at macports.org hum at macports.org
Thu Nov 6 06:43:25 PST 2014


Revision: 127899
          https://trac.macports.org/changeset/127899
Author:   hum at macports.org
Date:     2014-11-06 06:43:25 -0800 (Thu, 06 Nov 2014)
Log Message:
-----------
kytea: add upstream patch to build on Yosemite.

Modified Paths:
--------------
    trunk/dports/textproc/kytea/Portfile

Added Paths:
-----------
    trunk/dports/textproc/kytea/files/
    trunk/dports/textproc/kytea/files/patch-src_lib_kytea.cpp.diff

Modified: trunk/dports/textproc/kytea/Portfile
===================================================================
--- trunk/dports/textproc/kytea/Portfile	2014-11-06 14:21:50 UTC (rev 127898)
+++ trunk/dports/textproc/kytea/Portfile	2014-11-06 14:43:25 UTC (rev 127899)
@@ -5,7 +5,7 @@
 
 name                kytea
 version             0.4.6
-revision            1
+revision            2
 categories          textproc japanese
 maintainers         hum openmaintainer
 
@@ -26,6 +26,9 @@
 checksums           rmd160  c353eb5143cfaf0a3b3f310a3211adc5f4aa548a \
                     sha256  4327bd1124e546121354516e784b2dc01a62a36740b26a7c6d44350c2442cd58
 
+# https://github.com/neubig/kytea/commit/782553f61bde4f3366f946c9a390500c028fa17f
+patchfiles          patch-src_lib_kytea.cpp.diff
+
 post-destroot {
     set docdir ${prefix}/share/doc/${name}
     xinstall -d ${destroot}${docdir}

Added: trunk/dports/textproc/kytea/files/patch-src_lib_kytea.cpp.diff
===================================================================
--- trunk/dports/textproc/kytea/files/patch-src_lib_kytea.cpp.diff	                        (rev 0)
+++ trunk/dports/textproc/kytea/files/patch-src_lib_kytea.cpp.diff	2014-11-06 14:43:25 UTC (rev 127899)
@@ -0,0 +1,14 @@
+--- ../a/src/lib/kytea.cpp
++++ src/lib/kytea.cpp
+@@ -74,6 +74,11 @@ void Kytea::addTag(typename Dictionary<Entry>::WordMap& allWords, const KyteaStr
+             Entry::setInDict(it->second->inDict,dict);
+     }
+ }
++
++
++template
++void Kytea::addTag<ModelTagEntry>(Dictionary<ModelTagEntry>::WordMap& allWords, const KyteaString & word, int lev, const KyteaString * tag, int dict);
++
+ template <class Entry>
+ void Kytea::addTag(typename Dictionary<Entry>::WordMap& allWords, const KyteaString & word, const KyteaTag * tag, int dict) {
+     addTag<Entry>(allWords,word,(tag?&tag->first:0),dict);
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141106/9e508415/attachment.html>


More information about the macports-changes mailing list