[19869] trunk/dports/games

source_changes at macosforge.org source_changes at macosforge.org
Tue Oct 3 12:49:16 PDT 2006


Revision: 19869
          http://trac.macosforge.org/projects/macports/changeset/19869
Author:   markd at macports.org
Date:     2006-10-03 12:49:16 -0700 (Tue, 03 Oct 2006)

Log Message:
-----------
Closes 10698.  New port.

Added Paths:
-----------
    trunk/dports/games/moria/
    trunk/dports/games/moria/Portfile
    trunk/dports/games/moria/files/
    trunk/dports/games/moria/files/patch-source_config.h

Added: trunk/dports/games/moria/Portfile
===================================================================
--- trunk/dports/games/moria/Portfile	                        (rev 0)
+++ trunk/dports/games/moria/Portfile	2006-10-03 19:49:16 UTC (rev 19869)
@@ -0,0 +1,46 @@
+# $Id: $
+
+PortSystem       1.0
+name		     moria
+version		     5.5.2
+categories	     games
+maintainers	     aschenke at tampabay.rr.com
+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
+
+configure        {
+                    addgroup games
+                    
+                    cd ${worksrcpath}
+                    file copy unix/Makefile source
+                    file copy unix/unix.c source
+                    
+                    reinplace "s|/home/math/grabiner/moria/files|${prefix}/var/games/moria|" \
+                        source/config.h
+                 }
+                 
+build            {
+                    system "cd ${worksrcpath}/source && make"
+                 }
+                 
+destroot         {
+                    xinstall -d 755 ${destroot}${prefix}/var/games/moria
+                    xinstall -c -m 2755 -g games ${worksrcpath}/source/moria ${destroot}${prefix}/bin
+                    xinstall -c -m 444 ${worksrcpath}/files/hours ${destroot}${prefix}/var/games/moria
+                    xinstall -c -m 444 ${worksrcpath}/files/news ${destroot}${prefix}/var/games/moria
+                    xinstall -c -m 644 ${worksrcpath}/files/origcmds.hlp ${destroot}${prefix}/var/games/moria
+                    xinstall -c -m 644 ${worksrcpath}/files/owizcmds.hlp ${destroot}${prefix}/var/games/moria
+                    xinstall -c -m 644 ${worksrcpath}/files/roglcmds.hlp ${destroot}${prefix}/var/games/moria
+                    xinstall -c -m 644 ${worksrcpath}/files/rwizcmds.hlp ${destroot}${prefix}/var/games/moria
+                    xinstall -c -m 464 -g games ${worksrcpath}/files/scores ${destroot}${prefix}/var/games/moria
+                    xinstall -c -m 644 ${worksrcpath}/files/version.hlp ${destroot}${prefix}/var/games/moria
+                    xinstall -c -m 644 ${worksrcpath}/files/welcome.hlp ${destroot}${prefix}/var/games/moria
+                 }

Added: trunk/dports/games/moria/files/patch-source_config.h
===================================================================
--- trunk/dports/games/moria/files/patch-source_config.h	                        (rev 0)
+++ trunk/dports/games/moria/files/patch-source_config.h	2006-10-03 19:49:16 UTC (rev 19869)
@@ -0,0 +1,40 @@
+--- source/config.h.orig	2006-09-12 20:34:36.000000000 -0400
++++ source/config.h	2006-09-12 20:41:56.000000000 -0400
+@@ -6,6 +6,10 @@
+    not for profit purposes provided that this copyright and statement are
+    included in all such copies. */
+ 
++#define unix
++#include <sys/ioctl_compat.h>
++#include <unistd.h>
++
+ #define CONFIG_H_INCLUDED
+ #ifdef CONSTANT_H_INCLUDED
+ Constant.h should always be included after config.h, because it uses
+@@ -200,16 +204,16 @@
+ 
+ /* This must be unix; change MORIA_LIB as appropriate.  */
+ #define MORIA_SAV	"moria.save"
+-#define MORIA_LIB(xxx)  "/home/math/grabiner/moria/files/xxx"
+-#define MORIA_HOU	MORIA_LIB(hours)
+-#define MORIA_MOR	MORIA_LIB(news)
+-#define MORIA_TOP	MORIA_LIB(scores)
+-#define MORIA_HELP	MORIA_LIB(roglcmds.hlp)
+-#define MORIA_ORIG_HELP	MORIA_LIB(origcmds.hlp)
+-#define MORIA_WIZ_HELP	MORIA_LIB(rwizcmds.hlp)
+-#define MORIA_OWIZ_HELP	MORIA_LIB(owizcmds.hlp)
+-#define MORIA_WELCOME	MORIA_LIB(welcome.hlp)
+-#define MORIA_VER	MORIA_LIB(version.hlp)
++
++#define MORIA_HOU	"/home/math/grabiner/moria/files/hours"
++#define MORIA_MOR	"home/math/grabiner/moria/files/news"
++#define MORIA_TOP	"/home/math/grabiner/moria/files/scores"
++#define MORIA_HELP	"/home/math/grabiner/moria/files/roglcmds.hlp"
++#define MORIA_ORIG_HELP	"/home/math/grabiner/moria/files/origcmds.hlp"
++#define MORIA_WIZ_HELP	"/home/math/grabiner/moria/files/rwizcmds.hlp"
++#define MORIA_OWIZ_HELP	"/home/math/grabiner/moria/files/owizcmds.hlp"
++#define MORIA_WELCOME	"/home/math/grabiner/moria/files/welcome.hlp"
++#define MORIA_VER	"/home/math/grabiner/moria/files/version.hlp"
+ 
+ #endif
+ #endif

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20061003/5e46b1b5/attachment.html


More information about the macports-changes mailing list