[81539] trunk/dports/java

Ryan Schmidt ryandesign at macports.org
Mon Aug 1 20:04:06 PDT 2011


On Aug 1, 2011, at 07:46, hum at macports.org wrote:

> Revision: 81539
>          http://trac.macports.org/changeset/81539
> Author:   hum at macports.org
> Date:     2011-08-01 05:46:32 -0700 (Mon, 01 Aug 2011)
> Log Message:
> -----------
> added a new port for mecab-java version 0.98pre3; Ticket #29647


> +destroot    {
> +    xinstall -m 755 -d \
> +        ${destroot}${prefix}/share/java \
> +        ${destroot}${prefix}/share/doc/${name}
> +    xinstall -m 644 -W ${worksrcpath} \
> +        AUTHORS BSD COPYING GPL LGPL bindings.html test.java \
> +        ${destroot}${prefix}/share/doc/${name}
> +    xinstall -m 644 ${worksrcpath}/mecab.jar \
> +        ${destroot}${prefix}/share/java
> +    xinstall -m 644 ${worksrcpath}/lib${name}.dylib \
> +        ${destroot}${prefix}/lib
> +
> +    ui_msg "*****************************************************"
> +    ui_msg "* This port requires MeCab for UTF-8."
> +    ui_msg "* If another encoding version of MeCab is installed, "
> +    ui_msg "* you should re-install mecab +utf8 and this port."
> +    ui_msg "*****************************************************"
> +}

Instead of printing a message the user might ignore or not see, prevent the port from installing in the first place if the mecab port is not installed suitably, especially since utf8 is not a default variant of the mecab port.



More information about the macports-dev mailing list