Moria version 5.5.2 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 5.5.2

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


      The moria Portfile 59479 2009-10-15 15:57:53Z aschenke macports.org $

      PortSystem 1.0
      Name: moria
      Version: 5.5.2
      Revision: 1
      Category: games
      Platform: darwin
      Maintainers: aschenke
      Description: Moria is a Rogue-like dungeon exploration game
      Long Description: Moria is a Rogue-like dungeon exploration game similar to Angband.
      Homepage: http://www-math.bgsu.edu/~grabine/moria.html
      Master Sites: http://www.nic.funet.fi/pub/unix/games/${name}/source/
      Checksums: md5 04a2852864302c702e82992023d97184
      extract.suffix .tar.Z
      distname um${version}
      worksrcdir umoria

      Patch Files: patch-source_config.h

      build.dir ${worksrcpath}/source
      build.target

      use_parallel_build yes
      use_configure no

      depends_lib-append port:ncurses

      Variant: singleuser description {Disables system-wide scoreboards and allows local user installation without root privileges} {}

      pre-build {
      if {![variant_isset singleuser]} {
      addgroup games
      }

      xinstall -m 644 -W ${worksrcpath}/unix Makefile unix.c ${build.dir}

      reinplace "s|^CC = cc|CC = ${configure.cc}|" ${build.dir}/Makefile

      reinplace "s|CFLAGS = -O|CFLAGS = -O -I${prefix}/include -I${prefix}/include/ncurses|" ${build.dir}/Makefile
      reinplace "s|LFLAGS =|LFLAGS = -L${prefix}/lib|" ${build.dir}/Makefile
      reinplace "s|CURSES = -lcurses -ltermcap|CURSES = -lncurses|" ${build.dir}/Makefile

      reinplace "s|/home/math/grabiner/moria/files|${prefix}/var/games/moria|" ${worksrcpath}/source/config.h
      }

      destroot {
      if {![variant_isset singleuser]} {
      xinstall -m 775 -g games -d ${destroot}${prefix}/var/games/moria
      xinstall -m 2755 -g games -c ${worksrcpath}/source/moria ${destroot}${prefix}/bin
      } else {
      xinstall -m 775 -d ${destroot}${prefix}/var/games/moria
      xinstall -m 755 -c ${worksrcpath}/source/moria ${destroot}${prefix}/bin
      }

      xinstall -m 444 -c ${worksrcpath}/files/hours ${destroot}${prefix}/var/games/moria
      xinstall -m 444 -c ${worksrcpath}/files/news ${destroot}${prefix}/var/games/moria
      xinstall -m 644 -c ${worksrcpath}/files/origcmds.hlp ${destroot}${prefix}/var/games/moria
      xinstall -m 644 -c ${worksrcpath}/files/owizcmds.hlp ${destroot}${prefix}/var/games/moria
      xinstall -m 644 -c ${worksrcpath}/files/roglcmds.hlp ${destroot}${prefix}/var/games/moria
      xinstall -m 644 -c ${worksrcpath}/files/rwizcmds.hlp ${destroot}${prefix}/var/games/moria
      xinstall -m 644 -c ${worksrcpath}/files/version.hlp ${destroot}${prefix}/var/games/moria
      xinstall -m 644 -c ${worksrcpath}/files/welcome.hlp ${destroot}${prefix}/var/games/moria
      }

      post-activate {
      if {![file exists ${prefix}/var/games/moria/scores]} {
      if {![variant_isset singleuser]} {
      xinstall -m 464 -g games -c ${worksrcpath}/files/scores ${prefix}/var/games/moria/scores
      } else {
      xinstall -m 664 -c ${worksrcpath}/files/scores ${prefix}/var/games/moria/scores
      }
      }
      }

    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/moria
      % sudo port install moria
      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 moria
      ---> Verifying checksum for moria
      ---> Extracting moria
      ---> Configuring moria
      ---> Building moria with target all
      ---> Staging moria into destroot
      ---> Installing moria
    - 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 moria with these commands:
      %  man moria
      % apropos moria
      % which moria
      % locate moria

     Where to find more information:

    Darwin Ports



    Lightbox this page.