Changeset 81620


Ignore:
Timestamp:
Aug 3, 2011, 2:30:47 AM (8 years ago)
Author:
hum@…
Message:

java/dualist: 0.1_1

  • added "math" category.
  • added "supported_archs noarch".
  • replaced system "chmod" and "ln" with tcl commands.
  • moved notes outside the phases to run "port notes".
  • quoted the argument variable "$@" in scripts.

See http://lists.macosforge.org/pipermail/macports-dev/2011-August/015475.html
Thanks to Ryan.

Location:
trunk/dports/java/dualist
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/java/dualist/Portfile

    r81543 r81620  
    66name                dualist
    77version             0.1
    8 categories          java textproc
     8revision            1
     9categories          java math textproc
    910platforms           darwin
    1011maintainers         hum openmaintainer
     
    4041
    4142use_configure       no
    42 universal_variant   no
     43supported_archs     noarch
    4344
    4445build.cmd           true
     
    5455    # Configure working directories.
    5556    xinstall -m 1777 -d ${destroot}${dualist_dir}/tmp
    56     system "chmod 1777  ${destroot}${dualist_dir}/public/results"
     57    file attributes     ${destroot}${dualist_dir}/public/results -permissions 01777
    5758    destroot.keepdirs   ${destroot}${dualist_dir}/tmp \
    5859                        ${destroot}${dualist_dir}/public/results
     
    6263    reinplace "s|@prefix@|${prefix}|g"       ${destroot}${prefix}/bin/dualist
    6364    reinplace "s|@java_home@|${java_home}|g" ${destroot}${prefix}/bin/dualist
     65}
    6466
    65     notes "To try DUALIST, run 'dualist' and open http://localhost:9000/."
    66 }
     67notes "To try DUALIST, run 'dualist' and open http://localhost:9000/."
    6768
    6869post-deactivate {
     
    8182            SimpleMecabPipe.java \
    8283            ${worksrcpath}
    83         system "ln -s ${prefix}/share/java/mecab.jar ${worksrcpath}/lib/"
     84        file link -symbolic ${worksrcpath}/lib/mecab.jar ${prefix}/share/java/mecab.jar
    8485    }
    8586
     
    9596        reinplace "s|@prefix@|${prefix}|g"         ${destroot}${prefix}/bin/dualist-mecab
    9697        reinplace "s|@java_home@|${java_home}|g"   ${destroot}${prefix}/bin/dualist-mecab
     98    }
    9799
    98         notes-append "For Japanese texts, run 'dualist-mecab' instead of 'dualist'."
    99     }
     100    notes-append "For Japanese texts, run 'dualist-mecab' instead of 'dualist'."
    100101}
    101102
  • trunk/dports/java/dualist/files/dualist

    r81543 r81620  
    77JAVA_HOME=@java_home@
    88cd @prefix@/share/java/dualist
    9 @prefix@/bin/play $cmd $@
     9@prefix@/bin/play $cmd "$@"
  • trunk/dports/java/dualist/files/dualist-mecab

    r81543 r81620  
    77JAVA_HOME=@java_home@
    88cd @prefix@/share/java/dualist
    9 @prefix@/bin/play $cmd -Ddualist.lang=ja -Djava.library.path=@prefix@/lib -Dfile.encoding=UTF-8 $@
     9@prefix@/bin/play $cmd -Ddualist.lang=ja -Djava.library.path=@prefix@/lib -Dfile.encoding=UTF-8 "$@"
Note: See TracChangeset for help on using the changeset viewer.