Changeset 19781


Ignore:
Timestamp:
Sep 30, 2006, 4:23:55 AM (13 years ago)
Author:
takanori@…
Message:

Use cocot instead of nkf.
Add takanori@ as a co-maintainer.
Submitted by: takanori@
Approved by: kyut@…

Location:
trunk/dports/games/jnethack
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/games/jnethack/Portfile

    • Property svn:keywords set to Id
    r19227 r19781  
    1 # $Id: Portfile,v 1.1 2006/08/22 19:58:07 takanori Exp $
     1# $Id$
    22PortSystem        1.0
    33name              jnethack
    44version           3.4.3-0.8
    5 revision          4
     5revision          5
    66categories        games japanese
    7 maintainers       kyut@rutiler.net
     7maintainers       kyut@rutiler.net takanori@macports.org
    88description       Classic dungeon adventure game, translated in Japanese.
    99long_description  ${description}
     
    2929depends_build     port:bison \
    3030                  port:flex
    31 depends_run       port:nkf
     31depends_run       port:cocot
    3232
    3333livecheck.check   regex
     
    4848post-patch {
    4949        reinplace "s|__PREFIX__|${prefix}|" \
    50     "${worksrcpath}/sys/unix/Makefile.doc" \
    51     "${worksrcpath}/sys/unix/Makefile.top"
     50                "${worksrcpath}/sys/unix/Makefile.doc" \
     51                "${worksrcpath}/sys/unix/Makefile.top" \
     52                "${worksrcpath}/sys/unix/nethack.sh"
    5253}
    5354
    5455## configure ##
    5556
    56 configure.dir ${worksrcpath}/sys/unix
     57configure.dir   ${worksrcpath}/sys/unix
    5758configure.cmd   /bin/sh
    5859configure.pre_args setup.sh
     
    7374post-destroot {
    7475        reinplace "s|${destroot}||" "${destroot}${prefix}/bin/jnethack"
    75   if {[variant_isset x11]} {
    76     file copy ${worksrcpath}/win/X11/JNetHack.ad ${destroot}${prefix}/share/jnethackdir/
    77   }
     76        if {[variant_isset x11]} {
     77                file copy ${worksrcpath}/win/X11/JNetHack.ad ${destroot}${prefix}/share/jnethackdir/
     78        }
    7879}
    7980
     
    8889
    8990variant x11 {
    90   patchfiles-append \
    91     x11/patch-include__config.h \
    92     x11/patch-sys__unix__Makefile.top \
    93     x11/patch-sys__unix__Makefile.src \
    94     x11/patch-win__X11__JNetHack.ad
     91        patchfiles-append \
     92                x11/patch-include__config.h \
     93                x11/patch-sys__unix__Makefile.top \
     94                x11/patch-sys__unix__Makefile.src \
     95                x11/patch-win__X11__JNetHack.ad
    9596}
    9697
  • trunk/dports/games/jnethack/files/patch-sys__unix__nethack.sh

    r19227 r19781  
    1 --- sys/unix/nethack.sh.orig    2006-08-11 15:25:54.000000000 +0900
    2 +++ sys/unix/nethack.sh 2006-08-11 15:27:39.000000000 +0900
     1--- sys/unix/nethack.sh.orig    2006-08-24 23:23:30.000000000 +0900
     2+++ sys/unix/nethack.sh 2006-08-24 23:24:35.000000000 +0900
    33@@ -5,6 +5,7 @@
    44 export HACKDIR
    55 HACK=$HACKDIR/nethack
    66 MAXNROFPLAYERS=20
    7 +NKF="nkf -u -w"
     7+COCOT="__PREFIX__/bin/cocot -t UTF-8 -p EUC-JP"
    88 
    99 # JP
     
    1414 
    1515+if [ "X$LANG" = "Xja_JP.eucJP" ] ; then
    16 +       NKF="nkf -u -e"
     16+       COCOT=""
    1717+fi
    1818+
     
    2525        -s*)
    2626-               exec $HACK "$@"
    27 +               exec $HACK "$@" | $NKF
     27+               exec $COCOT $HACK "$@"
    2828                ;;
    2929        *)
    3030-               exec $HACK "$@" $MAXNROFPLAYERS
    31 +               exec $HACK "$@" $MAXNROFPLAYERS | $NKF
     31+               exec $COCOT $HACK "$@" $MAXNROFPLAYERS
    3232                ;;
    3333 esac
Note: See TracChangeset for help on using the changeset viewer.