# $Id$ PortSystem 1.0 name moria version 5.5.2 categories games 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 patchfiles patch-source_config.h build.dir ${worksrcpath}/source build.target use_parallel_build yes configure { 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|/home/math/grabiner/moria/files|${prefix}/var/games/moria|" \ ${worksrcpath}/source/config.h } destroot { xinstall -m 775 -g games -d ${destroot}${prefix}/var/games/moria xinstall -m 2755 -g games -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] == 0 } \ { xinstall -m 464 -g games -c ${worksrcpath}/files/scores ${prefix}/var/games/moria/scores } }