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

takanori at macports.org takanori at macports.org
Sun Nov 30 14:58:10 PST 2008


Revision: 42785
          http://trac.macports.org/changeset/42785
Author:   takanori at macports.org
Date:     2008-11-30 14:58:10 -0800 (Sun, 30 Nov 2008)
Log Message:
-----------
jnethack: minor fixes

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

Modified: trunk/dports/games/jnethack/Portfile
===================================================================
--- trunk/dports/games/jnethack/Portfile	2008-11-30 22:56:57 UTC (rev 42784)
+++ trunk/dports/games/jnethack/Portfile	2008-11-30 22:58:10 UTC (rev 42785)
@@ -3,7 +3,9 @@
 PortSystem      1.0
 
 name            jnethack
-version         3.4.3-0.10
+set ver_main    3.4.3
+set ver_patch   0.10
+version         ${ver_main}-${ver_patch}
 categories      games japanese
 maintainers     rutiler.net:kyut takanori openmaintainer
 description     Classic dungeon adventure game, translated in Japanese.
@@ -13,7 +15,7 @@
 homepage        http://jnethack.sourceforge.jp/
 master_sites    sourceforge_jp:${name}/9091/:nh \
                 sourceforge_jp:${name}/30862/:jnh
-set nethacksrc      "nethack-343-src.tgz"
+set nethacksrc      "nethack-[string map {"." ""} ${ver_main}]-src.tgz"
 set jnethackpatch   "${name}-${version}.diff.gz"
 distfiles       ${nethacksrc}:nh \
                 ${jnethackpatch}:jnh
@@ -27,15 +29,15 @@
 checksums       ${nethacksrc} sha1 c26537093c38152bc0fbcec20468d975b35f59fd \
                 ${jnethackpatch}  sha1 68c6f118d7cef4776a9283b37f15c5c3a60873e8
 
+depends_lib     port:ncurses
 depends_build   port:bison \
-                port:flex \
-                port:ncurses
+                port:flex
 depends_run     port:cocot
 
 ## extract ##
 
 extract.only    ${nethacksrc}
-worksrcdir      nethack-3.4.3
+worksrcdir      nethack-${ver_main}
 post-extract {
     system "cd ${worksrcpath} && gunzip -dc ${distpath}/${jnethackpatch} | patch -p 1"
 }
@@ -51,9 +53,7 @@
     }
 }
 
-## configure ##
-
-pre-configure {
+post-patch {
     set jn_cflags "${configure.cflags} ${configure.cppflags}"
     set jn_ldflags ${configure.ldflags}
 
@@ -77,6 +77,8 @@
     }
 }
 
+## configure ##
+
 configure.dir       ${worksrcpath}/sys/unix
 configure.cmd       /bin/sh
 configure.pre_args  setup.sh
@@ -90,9 +92,6 @@
 pre-destroot {
     addgroup games
     adduser games gid=[existsgroup games]
-
-    xinstall -m 755 -d "${destroot}${prefix}/share/man/man6"
-    xinstall -m 755 -d "${destroot}${prefix}/share/jnethackdir/save"
 }
 
 destroot.target     install manpages
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081130/e9aa83d9/attachment-0001.html>


More information about the macports-changes mailing list