[120630] trunk/dports/games/moria/Portfile

mf2k at macports.org mf2k at macports.org
Tue Jun 3 15:26:46 PDT 2014


Revision: 120630
          https://trac.macports.org/changeset/120630
Author:   mf2k at macports.org
Date:     2014-06-03 15:26:46 -0700 (Tue, 03 Jun 2014)
Log Message:
-----------
moria: Add and conform to mode line.

Modified Paths:
--------------
    trunk/dports/games/moria/Portfile

Modified: trunk/dports/games/moria/Portfile
===================================================================
--- trunk/dports/games/moria/Portfile	2014-06-03 20:55:25 UTC (rev 120629)
+++ trunk/dports/games/moria/Portfile	2014-06-03 22:26:46 UTC (rev 120630)
@@ -1,77 +1,76 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem       1.0
-name		     moria
-version		     5.5.2
-revision		 2
-categories	     games
-platforms	     darwin
-maintainers	     nomaintainer
-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
+PortSystem          1.0
+name                moria
+version             5.5.2
+revision            2
+categories          games
+platforms           darwin
+maintainers         nomaintainer
+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 \
-				 patch-signals.c \
-				 patch-types.h
+patchfiles          patch-source_config.h \
+                    patch-signals.c \
+                    patch-types.h
 
-build.dir        ${worksrcpath}/source
+build.dir           ${worksrcpath}/source
 build.target
 
-use_parallel_build 	yes
-use_configure 		no
+use_parallel_build  yes
+use_configure       no
 
-depends_lib-append	port:ncurses
+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
-					}
+pre-build {
+    if {![variant_isset singleuser]} {
+         addgroup games
+    }
 
-                    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
-                 }
+    xinstall -m 644 -W ${worksrcpath}/unix Makefile unix.c ${build.dir}
 
-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
-						}
-					}
-				 }
+    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
+        }
+    }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140603/90ac9a04/attachment-0001.html>


More information about the macports-changes mailing list