Revision: 87341 http://trac.macports.org/changeset/87341 Author: hum@macports.org Date: 2011-11-17 08:02:06 -0800 (Thu, 17 Nov 2011) Log Message: ----------- seekanser: update to 1.0.6; remove version dependency from patch-slothlib.properties.diff. Modified Paths: -------------- trunk/dports/textproc/seekanser/Portfile trunk/dports/textproc/seekanser/files/patch-slothlib.properties.diff Modified: trunk/dports/textproc/seekanser/Portfile =================================================================== --- trunk/dports/textproc/seekanser/Portfile 2011-11-17 15:41:29 UTC (rev 87340) +++ trunk/dports/textproc/seekanser/Portfile 2011-11-17 16:02:06 UTC (rev 87341) @@ -4,7 +4,7 @@ PortSystem 1.0 name seekanser -version 1.0.2 +version 1.0.6 categories textproc java japanese platforms darwin maintainers hum openmaintainer @@ -14,11 +14,11 @@ description a program to seek answers to a quiz in Japanese long_description SeekAnser is ${description}. -master_sites sourceforge_jp:seekanser/53849/ +master_sites sourceforge_jp:seekanser/53880/ distname SeekAnser use_zip yes -checksums rmd160 7d3f48ae5d043b14fff63683d257c6f0650d897c \ - sha256 eee94c6562f03810cbb1af693d8b5131a928aacb794069156c2847aeae1eb32a +checksums rmd160 985701dcbc23c0cc38128c25cecc7739f0ed66ae \ + sha256 ad29e3cdf1af81f439db0a29ee5994ef3d7b8ecbfe97fb813b8a00803b03c6df dist_subdir ${name}/${version} @@ -27,16 +27,16 @@ # directory where SeekAnser.jar is extracted. set jardir ${worksrcpath}/seekanser-${version} set jarname seekanser-${version}.jar +set jarpatch ${filespath}/patch-slothlib.properties.diff post-extract { file mkdir ${jardir} system -W ${jardir} "jar xf ../SeekAnser\\(${version}\\).jar" } -patchfiles patch-slothlib.properties.diff - post-patch { - reinplace "s|/usr/bin/|${prefix}/bin/|g" ${jardir}/slothlib.properties + system -W ${jardir} "patch < ${jarpatch}" + reinplace "s|/usr/|${prefix}/|g" ${jardir}/slothlib.properties } use_configure no Modified: trunk/dports/textproc/seekanser/files/patch-slothlib.properties.diff =================================================================== --- trunk/dports/textproc/seekanser/files/patch-slothlib.properties.diff 2011-11-17 15:41:29 UTC (rev 87340) +++ trunk/dports/textproc/seekanser/files/patch-slothlib.properties.diff 2011-11-17 16:02:06 UTC (rev 87341) @@ -1,17 +1,30 @@ ---- seekanser-1.0.2/slothlib.properties.orig 2011-11-16 01:26:40.000000000 +0900 -+++ seekanser-1.0.2/slothlib.properties 2011-11-16 01:28:20.000000000 +0900 +--- slothlib.properties.orig 2008-04-24 15:11:06.000000000 +0900 ++++ slothlib.properties 2011-11-18 00:39:57.000000000 +0900 @@ -1,12 +1,12 @@ # for mecab - slothLib.NLP.MeCab.meCabPath=/usr/bin/mecab - slothLib.NLP.MeCab.meCabRcPath=/usr/bin/mecab-config +-slothLib.NLP.MeCab.meCabPath=C:\\Program Files\\MeCab\\bin\\mecab.exe +-slothLib.NLP.MeCab.meCabRcPath=C:\\Program Files\\MeCab\\etc\\mecabrc -slothLib.NLP.MeCab.meCabEncoding=SJIS ++slothLib.NLP.MeCab.meCabPath=/usr/bin/mecab ++slothLib.NLP.MeCab.meCabRcPath=/usr/etc/mecabrc +slothLib.NLP.MeCab.meCabEncoding=EUC-JP # for chasen - slothLib.NLP.ChaSen.chaSenPath=/usr/bin/chasen - slothLib.NLP.ChaSen.chaSenRcPath=/usr/bin/chasen-config --slothLib.NLP.ChaSen.chaSenEncoding=UTF-8 +-slothLib.NLP.ChaSen.chaSenPath=C:\\Program Files\\ChaSen\\chasen.exe +-slothLib.NLP.ChaSen.chaSenRcPath=C:\\Program Files\\ChaSen\\dic\\chasenrc +-slothLib.NLP.ChaSen.chaSenEncoding=SJIS ++slothLib.NLP.ChaSen.chaSenPath=/usr/bin/chasen ++slothLib.NLP.ChaSen.chaSenRcPath=/usr/etc/chasen/chasenrc +slothLib.NLP.ChaSen.chaSenEncoding=EUC-JP # for SSTager slothLib.NLP.SSTagger.ssTaggerPath=C:\\Program Files\\postagger-1.0\\tagger.exe +@@ -23,7 +23,7 @@ + slothlib.ppthtml.path/usr/bin/ppthtml + + # slothlib global setting +-slothlib.default.encoding=SJIS ++slothlib.default.encoding=UTF-8 + + # API keys + #slothlib.web.search.GoogleSOAPSearchAPI.key=