Jnethack version ${ver_main}-${ver_patch} - How to Download and Install on Mac OS X
Sunday the 21st of March, 2010

    jnethack  most recent diff


    version ${ver_main}-${ver_patch}

      View the most recent changes for the jnethack port at: jnethack.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for jnethack.
      The raw portfile for jnethack ${ver_main}-${ver_patch} is located here:
      http://jnethack.darwinports.com/dports/games/jnethack/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/jnethack


      The jnethack Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: jnethack
      set ver_main 3.4.3
      set ver_patch 0.10
      Version: ${ver_main}-${ver_patch}
      Category: games japanese
      Maintainers: rutiler.net:kyut takanori openmaintainer
      Description: Classic dungeon adventure game, translated in Japanese.
      Long Description: ${description}
      Platform: darwin
      Homepage: http://jnethack.sourceforge.jp/
      Master Sites: sourceforge_jp:${name}/9091/:nh sourceforge_jp:${name}/30862/:jnh
      set nethacksrc "nethack-[string map {"." ""} ${ver_main}]-src.tgz"
      set jnethackpatch "${name}-${version}.diff.gz"
      distfiles ${nethacksrc}:nh ${jnethackpatch}:jnh
      Patch Files: patch-sys_unix_Makefile.doc.diff patch-sys_unix_Makefile.src.diff patch-sys_unix_Makefile.top.diff patch-sys_unix_Makefile.utl.diff patch-sys_unix_nethack.sh.diff patch-win_tty_termcap.c.diff patch-src_options.c.diff
      Checksums: ${nethacksrc} sha1 c26537093c38152bc0fbcec20468d975b35f59fd ${jnethackpatch} sha1 68c6f118d7cef4776a9283b37f15c5c3a60873e8

      depends_lib port:ncurses
      depends_build port:bison port:flex
      depends_run port:cocot

      ## extract ##

      extract.only ${nethacksrc}
      worksrcdir nethack-${ver_main}
      post-extract {
      system "cd ${worksrcpath} && gunzip -dc ${distpath}/${jnethackpatch} | patch -p 1"
      }

      ## patch ##

      pre-patch {
      if {[variant_isset x11]} {
      patchfiles-append x11/patch-include_config.h.diff x11/patch-sys_unix_Makefile.top.diff x11/patch-sys_unix_Makefile.src.diff x11/patch-win_X11_JNetHack.ad.diff
      }
      }

      post-patch {
      set jn_cflags "${configure.cflags} ${configure.cppflags}"
      set jn_ldflags ${configure.ldflags}

      if {[variant_isset universal]} {
      set jn_cflags "${jn_cflags} ${configure.universal_cflags}"
      }

      foreach f {sys/unix/Makefile.doc
      sys/unix/Makefile.src
      sys/unix/Makefile.top
      sys/unix/Makefile.utl
      sys/unix/nethack.sh} {
      reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/${f}
      reinplace "s|__CFLAGS__|${jn_cflags}|" ${worksrcpath}/${f}
      reinplace "s|__LDFLAGS__|${jn_ldflags}|" ${worksrcpath}/${f}
      }
      }

      ## configure ##

      configure.dir ${worksrcpath}/sys/unix
      configure.cmd /bin/sh
      configure.pre_args setup.sh

      ## build ##

      use_parallel_build no
      build.env-append CC=${configure.cc}

      ## destroot ##

      pre-destroot {
      addgroup games
      adduser games gid=[existsgroup games]
      }

      destroot.target install manpages
      destroot.keepdirs "${destroot}${prefix}/share/jnethackdir/save/"

      post-destroot {
      reinplace "s|${destroot}||" "${destroot}${prefix}/bin/jnethack"
      if {[variant_isset x11]} {
      copy ${worksrcpath}/win/X11/JNetHack.ad ${destroot}${prefix}/share/jnethackdir/
      }
      }

      ## install ##

      pre-install {
      addgroup games
      adduser games gid=[existsgroup games]
      }

      ## variants ##

      Variant: x11 {}

      Variant: universal {}

      livecheck.type regex
      livecheck.url ${homepage}
      livecheck.regex
    • \\(\[0-9/\]+\\) (\[0-9.-\]+)

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/jnethack
      % sudo port install jnethack
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching jnethack
      ---> Verifying checksum for jnethack
      ---> Extracting jnethack
      ---> Configuring jnethack
      ---> Building jnethack with target all
      ---> Staging jnethack into destroot
      ---> Installing jnethack
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using jnethack with these commands:
      %  man jnethack
      % apropos jnethack
      % which jnethack
      % locate jnethack

     Where to find more information:

    Darwin Ports



    Lightbox this page.