[19781] trunk/dports/games/jnethack

source_changes at macosforge.org source_changes at macosforge.org
Fri Sep 29 21:23:56 PDT 2006


Revision: 19781
          http://trac.macosforge.org/projects/macports/changeset/19781
Author:   takanori at macports.org
Date:     2006-09-29 21:23:55 -0700 (Fri, 29 Sep 2006)

Log Message:
-----------
Use cocot instead of nkf.
Add takanori@ as a co-maintainer.
Submitted by:   takanori@
Approved by:    kyut at rutiler.net

Modified Paths:
--------------
    trunk/dports/games/jnethack/Portfile
    trunk/dports/games/jnethack/files/patch-sys__unix__nethack.sh

Property Changed:
----------------
    trunk/dports/games/jnethack/Portfile

Modified: trunk/dports/games/jnethack/Portfile
===================================================================
--- trunk/dports/games/jnethack/Portfile	2006-09-30 04:18:32 UTC (rev 19780)
+++ trunk/dports/games/jnethack/Portfile	2006-09-30 04:23:55 UTC (rev 19781)
@@ -1,10 +1,10 @@
-# $Id: Portfile,v 1.1 2006/08/22 19:58:07 takanori Exp $
+# $Id$
 PortSystem        1.0
 name              jnethack
 version           3.4.3-0.8
-revision          4
+revision          5
 categories        games japanese
-maintainers       kyut at rutiler.net
+maintainers       kyut at rutiler.net takanori at macports.org
 description       Classic dungeon adventure game, translated in Japanese.
 long_description  ${description}
 homepage          http://jnethack.sourceforge.jp/
@@ -28,7 +28,7 @@
 
 depends_build     port:bison \
                   port:flex
-depends_run       port:nkf
+depends_run       port:cocot
 
 livecheck.check   regex
 livecheck.url     ${homepage}
@@ -47,13 +47,14 @@
 
 post-patch {
 	reinplace "s|__PREFIX__|${prefix}|" \
-    "${worksrcpath}/sys/unix/Makefile.doc" \
-    "${worksrcpath}/sys/unix/Makefile.top"
+		"${worksrcpath}/sys/unix/Makefile.doc" \
+		"${worksrcpath}/sys/unix/Makefile.top" \
+		"${worksrcpath}/sys/unix/nethack.sh"
 }
 
 ## configure ##
 
-configure.dir ${worksrcpath}/sys/unix
+configure.dir	${worksrcpath}/sys/unix
 configure.cmd	/bin/sh
 configure.pre_args setup.sh
 
@@ -72,9 +73,9 @@
 
 post-destroot {
 	reinplace "s|${destroot}||" "${destroot}${prefix}/bin/jnethack"
-  if {[variant_isset x11]} {
-    file copy ${worksrcpath}/win/X11/JNetHack.ad ${destroot}${prefix}/share/jnethackdir/
-  }
+	if {[variant_isset x11]} {
+		file copy ${worksrcpath}/win/X11/JNetHack.ad ${destroot}${prefix}/share/jnethackdir/
+	}
 }
 
 ## install ##
@@ -87,10 +88,10 @@
 ## variants ##
 
 variant x11 {
-  patchfiles-append \
-    x11/patch-include__config.h \
-    x11/patch-sys__unix__Makefile.top \
-    x11/patch-sys__unix__Makefile.src \
-    x11/patch-win__X11__JNetHack.ad
+	patchfiles-append \
+		x11/patch-include__config.h \
+		x11/patch-sys__unix__Makefile.top \
+		x11/patch-sys__unix__Makefile.src \
+		x11/patch-win__X11__JNetHack.ad
 }
 


Property changes on: trunk/dports/games/jnethack/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id

Modified: trunk/dports/games/jnethack/files/patch-sys__unix__nethack.sh
===================================================================
--- trunk/dports/games/jnethack/files/patch-sys__unix__nethack.sh	2006-09-30 04:18:32 UTC (rev 19780)
+++ trunk/dports/games/jnethack/files/patch-sys__unix__nethack.sh	2006-09-30 04:23:55 UTC (rev 19781)
@@ -1,10 +1,10 @@
---- sys/unix/nethack.sh.orig	2006-08-11 15:25:54.000000000 +0900
-+++ sys/unix/nethack.sh	2006-08-11 15:27:39.000000000 +0900
+--- sys/unix/nethack.sh.orig	2006-08-24 23:23:30.000000000 +0900
++++ sys/unix/nethack.sh	2006-08-24 23:24:35.000000000 +0900
 @@ -5,6 +5,7 @@
  export HACKDIR
  HACK=$HACKDIR/nethack
  MAXNROFPLAYERS=20
-+NKF="nkf -u -w"
++COCOT="__PREFIX__/bin/cocot -t UTF-8 -p EUC-JP"
  
  # JP
  # set LC_ALL, NETHACKOPTIONS etc..
@@ -13,7 +13,7 @@
  fi
  
 +if [ "X$LANG" = "Xja_JP.eucJP" ] ; then
-+	NKF="nkf -u -e"
++	COCOT=""
 +fi
 +
  #if [ "X$DISPLAY" ] ; then
@@ -24,10 +24,10 @@
  case $1 in
  	-s*)
 -		exec $HACK "$@"
-+		exec $HACK "$@" | $NKF
++		exec $COCOT $HACK "$@"
  		;;
  	*)
 -		exec $HACK "$@" $MAXNROFPLAYERS
-+		exec $HACK "$@" $MAXNROFPLAYERS | $NKF
++		exec $COCOT $HACK "$@" $MAXNROFPLAYERS
  		;;
  esac

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20060929/5122fcdd/attachment.html


More information about the macports-changes mailing list