[25173] trunk/dports/games/jnethack/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Tue May 15 07:01:02 PDT 2007


Revision: 25173
          http://trac.macosforge.org/projects/macports/changeset/25173
Author:   takanori at macports.org
Date:     2007-05-15 07:01:02 -0700 (Tue, 15 May 2007)

Log Message:
-----------
Untabify, etc.

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

Modified: trunk/dports/games/jnethack/Portfile
===================================================================
--- trunk/dports/games/jnethack/Portfile	2007-05-15 13:50:43 UTC (rev 25172)
+++ trunk/dports/games/jnethack/Portfile	2007-05-15 14:01:02 UTC (rev 25173)
@@ -1,96 +1,98 @@
 # $Id$
-PortSystem        1.0
-name              jnethack
-version           3.4.3-0.9
-categories        games japanese
-maintainers       kyut at rutiler.net takanori at macports.org
-description       Classic dungeon adventure game, translated in Japanese.
-long_description  ${description}
-homepage          http://jnethack.sourceforge.jp/
-platforms         darwin
 
-set nethacksrc    "nethack-343-src.tgz"
-set jnethackpatch "${name}-${version}.diff.gz"
-set sfj           "http://dl.sourceforge.jp/jnethack"
+PortSystem      1.0
+name            jnethack
+version         3.4.3-0.9
+categories      games japanese
+maintainers     kyut at rutiler.net takanori at macports.org
+description     Classic dungeon adventure game, translated in Japanese.
+long_description \
+                ${description}
+homepage        http://jnethack.sourceforge.jp/
+platforms       darwin
 
-master_sites      ${sfj}/9091/:nh \
-                  ${sfj}/25190/:jnh
-distfiles         ${nethacksrc}:nh \
-                  ${jnethackpatch}:jnh
-checksums         ${nethacksrc} sha1 c26537093c38152bc0fbcec20468d975b35f59fd \
-                  ${jnethackpatch}  sha1 547acd967c75a6bc8d464821b41ed026c1c2bb3a
-patchfiles        patch-sys__unix__Makefile.doc \
-                  patch-sys__unix__Makefile.top \
-                  patch-sys__unix__nethack.sh \
-                  patch-win__tty__termcap.c \
-                  patch-src__options.c
+set nethacksrc      "nethack-343-src.tgz"
+set jnethackpatch   "${name}-${version}.diff.gz"
+set sfj             "http://dl.sourceforge.jp/jnethack"
 
-depends_build     port:bison \
-                  port:flex
-depends_run       port:cocot
+master_sites    ${sfj}/9091/:nh \
+                ${sfj}/25190/:jnh
+distfiles       ${nethacksrc}:nh \
+                ${jnethackpatch}:jnh
+checksums       ${nethacksrc} sha1 c26537093c38152bc0fbcec20468d975b35f59fd \
+                ${jnethackpatch}  sha1 547acd967c75a6bc8d464821b41ed026c1c2bb3a
+patchfiles      patch-sys__unix__Makefile.doc \
+                patch-sys__unix__Makefile.top \
+                patch-sys__unix__nethack.sh \
+                patch-win__tty__termcap.c \
+                patch-src__options.c
 
-livecheck.check   regex
-livecheck.url     ${homepage}
-livecheck.regex   <li>\\(\[0-9/\]+\\) (\[0-9.-\]+) 
+depends_build   port:bison \
+                port:flex
+depends_run     port:cocot
 
-extract.only      ${nethacksrc}
-worksrcdir        nethack-3.4.3
+livecheck.check regex
+livecheck.url   ${homepage}
+livecheck.regex <li>\\(\[0-9/\]+\\) (\[0-9.-\]+) 
 
+extract.only    ${nethacksrc}
+worksrcdir      nethack-3.4.3
+
 ## extract ##
 
 post-extract {
-	system "cd ${worksrcpath} && gunzip -dc ${distpath}/${jnethackpatch} | patch -p 1"  
+    system "cd ${worksrcpath} && gunzip -dc ${distpath}/${jnethackpatch} | patch -p 1"  
 }
 
 ## patch ##
 
+pre-patch {
+    if {[variant_isset x11]} {
+        patchfiles-append x11/patch-include__config.h \
+                          x11/patch-sys__unix__Makefile.top \
+                          x11/patch-sys__unix__Makefile.src \
+                          x11/patch-win__X11__JNetHack.ad
+    }
+}
 post-patch {
-	reinplace "s|__PREFIX__|${prefix}|" \
-		"${worksrcpath}/sys/unix/Makefile.doc" \
-		"${worksrcpath}/sys/unix/Makefile.top" \
-		"${worksrcpath}/sys/unix/nethack.sh"
+    reinplace "s|__PREFIX__|${prefix}|" "${worksrcpath}/sys/unix/Makefile.doc" \
+                                        "${worksrcpath}/sys/unix/Makefile.top" \
+                                        "${worksrcpath}/sys/unix/nethack.sh"
 }
 
 ## configure ##
 
-configure.dir	${worksrcpath}/sys/unix
-configure.cmd	/bin/sh
-configure.pre_args setup.sh
+configure.dir       ${worksrcpath}/sys/unix
+configure.cmd       /bin/sh
+configure.pre_args  setup.sh
 
 ## destroot ##
 
 pre-destroot {
-	addgroup games
-	adduser games gid=[existsgroup games]
+    addgroup games
+    adduser games gid=[existsgroup games]
 
-	file mkdir "${destroot}${prefix}/share/man/man6"
-	file mkdir "${destroot}${prefix}/share/jnethackdir/save"
+    file mkdir "${destroot}${prefix}/share/man/man6"
+    file mkdir "${destroot}${prefix}/share/jnethackdir/save"
 }
 
-destroot.target	install manpages
-destroot.keepdirs "${destroot}${prefix}/share/jnethackdir/save/"
+destroot.target     install manpages
+destroot.keepdirs   "${destroot}${prefix}/share/jnethackdir/save/"
 
 post-destroot {
-	reinplace "s|${destroot}||" "${destroot}${prefix}/bin/jnethack"
-	if {[variant_isset x11]} {
-		file copy ${worksrcpath}/win/X11/JNetHack.ad ${destroot}${prefix}/share/jnethackdir/
-	}
+    reinplace "s|${destroot}||" "${destroot}${prefix}/bin/jnethack"
+    if {[variant_isset x11]} {
+        file copy ${worksrcpath}/win/X11/JNetHack.ad ${destroot}${prefix}/share/jnethackdir/
+    }
 }
 
 ## install ##
 
 pre-install {
-	addgroup games
-	adduser games gid=[existsgroup games]
+    addgroup games
+    adduser games gid=[existsgroup games]
 }
 
 ## variants ##
 
-variant x11 {
-	patchfiles-append \
-		x11/patch-include__config.h \
-		x11/patch-sys__unix__Makefile.top \
-		x11/patch-sys__unix__Makefile.src \
-		x11/patch-win__X11__JNetHack.ad
-}
-
+variant x11 {}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070515/462490ad/attachment.html


More information about the macports-changes mailing list