[86801] trunk/dports/textproc
hum at macports.org
hum at macports.org
Fri Nov 4 16:18:01 PDT 2011
Revision: 86801
http://trac.macports.org/changeset/86801
Author: hum at macports.org
Date: 2011-11-04 16:18:01 -0700 (Fri, 04 Nov 2011)
Log Message:
-----------
New port: seekanser - a program to seek answers to a quiz in Japanese.
Added Paths:
-----------
trunk/dports/textproc/seekanser/
trunk/dports/textproc/seekanser/Portfile
trunk/dports/textproc/seekanser/files/
trunk/dports/textproc/seekanser/files/patch-slothlib.properties.diff
trunk/dports/textproc/seekanser/files/seekanser
Added: trunk/dports/textproc/seekanser/Portfile
===================================================================
--- trunk/dports/textproc/seekanser/Portfile (rev 0)
+++ trunk/dports/textproc/seekanser/Portfile 2011-11-04 23:18:01 UTC (rev 86801)
@@ -0,0 +1,64 @@
+# -*- 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 seekanser
+version 1.0.0
+categories textproc java japanese
+platforms darwin
+maintainers hum openmaintainer
+license LGPL-3
+
+homepage http://seekanser.sourceforge.jp/
+description a program to seek answers to a quiz in Japanese
+long_description SeekAnser is ${description}.
+
+master_sites sourceforge_jp:seekanser/53217/
+distname SeekAnser
+use_zip yes
+checksums rmd160 c415929e6267b6b661b88b343497a46220676118 \
+ sha256 24b3e4c8d41b96833c3fad6a7918fe88ea62ccc222c28bf81a0c08ae722cc8eb
+
+dist_subdir ${name}/${version}
+
+depends_lib port:chasen
+
+# directory where SeekAnser.jar is extracted.
+set jardir ${worksrcpath}/SeekAnser
+set jarname SeekAnser.jar
+
+post-extract {
+ file mkdir ${jardir}
+ system -W ${jardir} "jar xf ../${jarname}"
+}
+
+patchfiles patch-slothlib.properties.diff
+
+post-patch {
+ reinplace "s|/usr/bin/|${prefix}/bin/|g" ${jardir}/slothlib.properties
+}
+
+use_configure no
+supported_archs noarch
+
+build {
+ system "jar cmf ${jardir}/META-INF/MANIFEST.MF ${worksrcpath}/${jarname} -C ${jardir} ."
+}
+
+destroot {
+ set seekanserdir ${prefix}/share/${name}
+ xinstall -m 755 -d ${destroot}${seekanserdir}
+ xinstall -m 644 -W ${worksrcpath} \
+ README.txt ${jarname} examples.txt \
+ ${destroot}${seekanserdir}
+ set dest_script ${destroot}${prefix}/bin/seekanser
+ xinstall -m 755 ${filespath}/seekanser ${dest_script}
+ reinplace "s|@JARPATH@|${seekanserdir}/${jarname}|g" ${dest_script}
+}
+
+notes "Please run 'seekanser' and have fun!"
+
+livecheck.type regex
+livecheck.url http://sourceforge.jp/projects/seekanser/releases/
+livecheck.regex >(\\d+\\.\\d+\\.\\d+)
Property changes on: trunk/dports/textproc/seekanser/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/textproc/seekanser/files/patch-slothlib.properties.diff
===================================================================
--- trunk/dports/textproc/seekanser/files/patch-slothlib.properties.diff (rev 0)
+++ trunk/dports/textproc/seekanser/files/patch-slothlib.properties.diff 2011-11-04 23:18:01 UTC (rev 86801)
@@ -0,0 +1,30 @@
+--- SeekAnser/slothlib.properties.orig 2008-04-24 15:11:06.000000000 +0900
++++ SeekAnser/slothlib.properties 2011-10-29 23:45:54.000000000 +0900
+@@ -1,12 +1,12 @@
+ # for mecab
+-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/bin/mecab-config
++slothLib.NLP.MeCab.meCabEncoding=EUC-JP
+
+ # for chasen
+-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/bin/chasen-config
++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=
Added: trunk/dports/textproc/seekanser/files/seekanser
===================================================================
--- trunk/dports/textproc/seekanser/files/seekanser (rev 0)
+++ trunk/dports/textproc/seekanser/files/seekanser 2011-11-04 23:18:01 UTC (rev 86801)
@@ -0,0 +1,2 @@
+#!/bin/sh
+java -Dfile.encoding=UTF-8 -jar @JARPATH@
Property changes on: trunk/dports/textproc/seekanser/files/seekanser
___________________________________________________________________
Added: svn:executable
+ *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111104/0221716f/attachment.html>
More information about the macports-changes
mailing list