Ignore:
Timestamp:
Mar 18, 2015, 4:24:11 PM (5 years ago)
Author:
hum@…
Message:

mecab-ipadic-neologd: update to 20150317

Location:
trunk/dports/textproc/mecab-ipadic-neologd
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/mecab-ipadic-neologd/Portfile

    r133890 r134111  
    55PortGroup           github 1.0
    66
    7 github.setup        neologd mecab-ipadic-neologd ae5886767977c5baa0d34017928d9cd752d0330d
    8 version             20150315
    9 set dic_version     20150313
     7github.setup        neologd mecab-ipadic-neologd 7c7525cdd794188cd6e1cf1437f014b4022ee849
     8version             20150317
     9set dic_version     20150317
    1010categories          textproc japanese
    1111license             Apache-2
     
    2323dist_subdir         mecab
    2424
    25 checksums           rmd160  07968c2d46b4ac2e065e5f6e08708641fb481d8c \
    26                     sha256  1354ea3752ad2db58a7ef6878f9dae49d76e5f88516e032293858bb2743096ca
     25checksums           rmd160  9995ebb55b9050d38e7b5fcdb59c326198952a75 \
     26                    sha256  1a05079c196e48757e06855f69d7595bd5cdba037a38e26b00941011a0ec2637
    2727
    2828depends_lib         port:mecab-base
     
    3232                    port:xz
    3333
    34 patchfiles          patch-make.sh.diff \
    35                     patch-test.sh.diff
     34patchfiles          patch-test.sh.diff
    3635
    3736post-patch {
     
    5554    xinstall -d ${destroot}${docdir}
    5655    xinstall -m 644 -W ${worksrcpath} \
    57         COPYING README.ja.md README.md \
     56        ChangeLog COPYING README.ja.md README.md \
    5857        ${destroot}${docdir}
    5958    xinstall -m 644 ${destroot.dir}/COPYING ${destroot}${docdir}/COPYING-ipadic
  • trunk/dports/textproc/mecab-ipadic-neologd/files/patch-test.sh.diff

    r133890 r134111  
    1 --- libexec/test-mecab-ipadic-neologd.sh.orig   2015-03-09 19:36:37.000000000 +0900
    2 +++ libexec/test-mecab-ipadic-neologd.sh        2015-03-14 23:47:54.000000000 +0900
     1--- libexec/test-mecab-ipadic-neologd.sh.orig   2015-03-17 08:48:03.000000000 +0900
     2+++ libexec/test-mecab-ipadic-neologd.sh        2015-03-19 01:17:14.000000000 +0900
    33@@ -21,8 +21,8 @@
    44 
     
    1010+#${BASEDIR}/../misc/git-set-file-times
    1111 
    12  YMD=`ls -c \`find ${BASEDIR}/../seed/mecab-user-dict-seed.*.csv.xz\` | head -1 | egrep -o '[0-9]{8}' | tail -1`
     12 YMD=`ls -c \`find ${BASEDIR}/../seed/mecab-user-dict-seed.*.csv.xz\` | egrep -o '[0-9]{8}' | tail -1`
    1313 if [ ! -e ${BASEDIR}/../build/mecab-ipadic-2.7.0-20070801-neologd-${YMD} ]; then
    14 @@ -36,36 +36,37 @@
    15  
    16  echo "$ECHO_PREFIX Get buzz phrases"
    17  
    18 -curl http://searchranking.yahoo.co.jp/realtime_buzz/ -o "/tmp/realtime_buzz.html"
    19 -sed -i -e "/\n/d" /tmp/realtime_buzz.html
    20 -cat /tmp/realtime_buzz.html | perl -ne '$l = $_;  if ($l =~ m|<h3><a href="http://rdsig\.yahoo\.co\.jp.+?">(.+)</a></h3>|g){ print $1."\n";}' > /tmp/buzz_phrase
    21 +mkdir -p tmp
    22 +curl http://searchranking.yahoo.co.jp/realtime_buzz/ -o "./tmp/realtime_buzz.html"
    23 +sed -i -e "/\n/d" ./tmp/realtime_buzz.html
    24 +cat ./tmp/realtime_buzz.html | perl -ne '$l = $_;  if ($l =~ m|<h3><a href="http://rdsig\.yahoo\.co\.jp.+?">(.+)</a></h3>|g){ print $1."\n";}' > ./tmp/buzz_phrase
    25  
    26 -PHRASE_FILE=/tmp/buzz_phrase
    27 +PHRASE_FILE=./tmp/buzz_phrase
    28  if [ ! -s ${PHRASE_FILE} ]; then
    29     PHRASE_FILE=""#${BASEDIR}/../misc/buzz_phrase_201402181610
    30  fi
     14@@ -48,14 +48,14 @@
    3115 
    3216 echo "$ECHO_PREFIX Get difference between default system dictionary and mecab-ipadic-neologd"
    3317 
    3418-cat /tmp/buzz_phrase| mecab -Owakati > /tmp/buzz_phrase_tokenized_using_defdic
    35 -cat /tmp/buzz_phrase| mecab -Owakati -d ${MECAB_DIC_DIR} > /tmp/buzz_phrase_tokenized_using_neologismdic
    36 -/usr/bin/diff -y -W60 --side-by-side --suppress-common-lines /tmp/buzz_phrase_tokenized_using_defdic /tmp/buzz_phrase_tokenized_using_neologismdic > /tmp/buzz_phrase_tokenized_diff
    37 +cat ./tmp/buzz_phrase| mecab -Owakati -d @PREFIX@/lib/mecab/dic/ipadic-utf8 > ./tmp/buzz_phrase_tokenized_using_defdic
    38 +cat ./tmp/buzz_phrase| mecab -Owakati -d ${MECAB_DIC_DIR} > ./tmp/buzz_phrase_tokenized_using_neologismdic
    39 +/usr/bin/diff -y -W60 --side-by-side --suppress-common-lines ./tmp/buzz_phrase_tokenized_using_defdic ./tmp/buzz_phrase_tokenized_using_neologismdic > ./tmp/buzz_phrase_tokenized_diff
     19+cat /tmp/buzz_phrase| mecab -Owakati -d @PREFIX@/lib/mecab/dic/ipadic-utf8 > /tmp/buzz_phrase_tokenized_using_defdic
     20 cat /tmp/buzz_phrase| mecab -Owakati -d ${MECAB_DIC_DIR} > /tmp/buzz_phrase_tokenized_using_neologismdic
     21 /usr/bin/diff -y -W60 --side-by-side --suppress-common-lines /tmp/buzz_phrase_tokenized_using_defdic /tmp/buzz_phrase_tokenized_using_neologismdic > /tmp/buzz_phrase_tokenized_diff
    4022 
    41 -if [ -s /tmp/buzz_phrase_tokenized_diff ]; then
    42 +if [ -s ./tmp/buzz_phrase_tokenized_diff ]; then
     23 if [ -s /tmp/buzz_phrase_tokenized_diff ]; then
    4324     echo "$ECHO_PREFIX Tokenize phrase using default system dictionary"
    44 -    echo "default system dictonary" > /tmp/buzz_phrase_tokenized_using_defdic
     25     echo "default system dictonary" > /tmp/buzz_phrase_tokenized_using_defdic
    4526-    cat /tmp/buzz_phrase| mecab -Owakati >> /tmp/buzz_phrase_tokenized_using_defdic
    46 +    echo "default system dictonary" > ./tmp/buzz_phrase_tokenized_using_defdic
    47 +    cat ./tmp/buzz_phrase| mecab -Owakati -d @PREFIX@/lib/mecab/dic/ipadic-utf8 >> ./tmp/buzz_phrase_tokenized_using_defdic
     27+    cat /tmp/buzz_phrase| mecab -Owakati -d @PREFIX@/lib/mecab/dic/ipadic-utf8 >> /tmp/buzz_phrase_tokenized_using_defdic
    4828 
    4929     echo "$ECHO_PREFIX Tokenize phrase using mecab-ipadic-neologd"
    50 -    echo "mecab-ipadic-neologd" > /tmp/buzz_phrase_tokenized_using_neologismdic
    51 -    cat /tmp/buzz_phrase| mecab -Owakati -d ${MECAB_DIC_DIR} >> /tmp/buzz_phrase_tokenized_using_neologismdic
    52 +    echo "mecab-ipadic-neologd" > ./tmp/buzz_phrase_tokenized_using_neologismdic
    53 +    cat ./tmp/buzz_phrase| mecab -Owakati -d ${MECAB_DIC_DIR} >> ./tmp/buzz_phrase_tokenized_using_neologismdic
    54  
    55      echo "$ECHO_PREFIX Get result of diff"
    56 -    /usr/bin/diff -y -W60 --side-by-side --suppress-common-lines /tmp/buzz_phrase_tokenized_using_defdic /tmp/buzz_phrase_tokenized_using_neologismdic > /tmp/buzz_phrase_tokenized_diff
    57 +    /usr/bin/diff -y -W60 --side-by-side --suppress-common-lines ./tmp/buzz_phrase_tokenized_using_defdic ./tmp/buzz_phrase_tokenized_using_neologismdic > ./tmp/buzz_phrase_tokenized_diff
    58  
    59      echo "$ECHO_PREFIX Please check difference between default system dictionary and mecab-ipadic-neologd"
    60      echo ""
    61 -    cat /tmp/buzz_phrase_tokenized_diff
    62 +    cat ./tmp/buzz_phrase_tokenized_diff
    63      echo ""
    64  else
    65      echo "$ECHO_PREFIX Something wrong. You shouldn't install mecab-ipadic-neologd yet."
     30     echo "mecab-ipadic-neologd" > /tmp/buzz_phrase_tokenized_using_neologismdic
Note: See TracChangeset for help on using the changeset viewer.