[85053] users/hum/textproc

Ryan Schmidt ryandesign at macports.org
Sat Oct 8 07:03:05 PDT 2011


On Oct 8, 2011, at 08:53, hum at macports.org wrote:

> Revision: 85053
>          http://trac.macports.org/changeset/85053
> Author:   hum at macports.org
> Date:     2011-10-08 06:53:39 -0700 (Sat, 08 Oct 2011)
> Log Message:
> -----------
> enhence chasen family splitting chasen port into chasen meta, chasen-base and chasen dictionaries.

I know this is still in progress in your user directory but I have a comment:

> Added: users/hum/textproc/chasen/Portfile

> +destroot {
> +    set dest_chasen ${destroot}${prefix}/etc/chasen
> +    file mkdir ${dest_chasen}
> +    system "cd ${dest_chasen} && ln -sf chasenrc-${dicname} chasenrc"
> +    foreach encoding {utf8 sjis} {
> +        if {[variant_isset ${encoding}]} {
> +            system "cd ${dest_chasen} && ln -sf chasenrc-${dicname}-${encoding} chasenrc-${encoding}"
> +        }
> +    }
> +}

There's probably no need to start a separate process with "system" just to make a symlink. Try using the Tcl ln command.

Instead of:

system "cd ${dest_chasen} && ln -sf chasenrc-${dicname} chasenrc"

Try:

ln -s chasenrc-${dicname} ${dest_chasen}/chasenrc"




More information about the macports-dev mailing list