Changeset 31277


Ignore:
Timestamp:
Nov 19, 2007, 6:42:03 AM (12 years ago)
Author:
takanori@…
Message:

jnethack: Linted.

Location:
trunk/dports/games/jnethack
Files:
1 edited
9 moved

Legend:

Unmodified
Added
Removed
  • trunk/dports/games/jnethack/Portfile

    r29939 r31277  
    22
    33PortSystem      1.0
     4
    45name            jnethack
    56version         3.4.3-0.9
    67categories      games japanese
    7 maintainers     kyut@rutiler.net takanori@macports.org
     8maintainers     rutiler.net:kyut takanori
    89description     Classic dungeon adventure game, translated in Japanese.
    910long_description \
    1011                ${description}
     12platforms       darwin
    1113homepage        http://jnethack.sourceforge.jp/
    12 platforms       darwin
    13 
    14 set nethacksrc      "nethack-343-src.tgz"
    15 set jnethackpatch   "${name}-${version}.diff.gz"
     14#master_sites   sourceforge_jp:${name}/9091/:nh \
     15#               sourceforge_jp:${name}/25190/:jnh
    1616set sfjpid_nh   9091
    1717set sfjpid_jnh  25190
    18 
    1918master_sites    http://keihanna.dl.sourceforge.jp/${name}/${sfjpid_nh}/:nh \
    2019                http://osdn.dl.sourceforge.jp/${name}/${sfjpid_nh}/:nh \
     
    2524                http://globalbase.dl.sourceforge.jp/${name}/${sfjpid_jnh}/:jnh \
    2625                http://jaist.dl.sourceforge.jp/${name}/${sfjpid_jnh}/:jnh
     26set nethacksrc      "nethack-343-src.tgz"
     27set jnethackpatch   "${name}-${version}.diff.gz"
    2728distfiles       ${nethacksrc}:nh \
    2829                ${jnethackpatch}:jnh
     30patchfiles      patch-sys_unix_Makefile.doc.diff \
     31                patch-sys_unix_Makefile.top.diff \
     32                patch-sys_unix_nethack.sh.diff \
     33                patch-win_tty_termcap.c.diff \
     34                patch-src_options.c.diff
    2935checksums       ${nethacksrc} sha1 c26537093c38152bc0fbcec20468d975b35f59fd \
    3036                ${jnethackpatch}  sha1 547acd967c75a6bc8d464821b41ed026c1c2bb3a
    31 patchfiles      patch-sys__unix__Makefile.doc \
    32                 patch-sys__unix__Makefile.top \
    33                 patch-sys__unix__nethack.sh \
    34                 patch-win__tty__termcap.c \
    35                 patch-src__options.c
    3637
    3738depends_build   port:bison \
     
    3940depends_run     port:cocot
    4041
    41 livecheck.check regex
    42 livecheck.url   ${homepage}
    43 livecheck.regex <li>\\(\[0-9/\]+\\) (\[0-9.-\]+)
     42## extract ##
    4443
    4544extract.only    ${nethacksrc}
    4645worksrcdir      nethack-3.4.3
    47 
    48 ## extract ##
    49 
    5046post-extract {
    51     system "cd ${worksrcpath} && gunzip -dc ${distpath}/${jnethackpatch} | patch -p 1" 
     47    system "cd ${worksrcpath} && gunzip -dc ${distpath}/${jnethackpatch} | patch -p 1"
    5248}
    5349
     
    5652pre-patch {
    5753    if {[variant_isset x11]} {
    58         patchfiles-append x11/patch-include__config.h \
    59                           x11/patch-sys__unix__Makefile.top \
    60                           x11/patch-sys__unix__Makefile.src \
    61                           x11/patch-win__X11__JNetHack.ad
     54        patchfiles-append x11/patch-include_config.h.diff \
     55                          x11/patch-sys_unix_Makefile.top.diff \
     56                          x11/patch-sys_unix_Makefile.src.diff \
     57                          x11/patch-win_X11_JNetHack.ad.diff
    6258    }
    6359}
     
    8076    adduser games gid=[existsgroup games]
    8177
    82     file mkdir "${destroot}${prefix}/share/man/man6"
    83     file mkdir "${destroot}${prefix}/share/jnethackdir/save"
     78    xinstall -m 755 -d "${destroot}${prefix}/share/man/man6"
     79    xinstall -m 755 -d "${destroot}${prefix}/share/jnethackdir/save"
    8480}
    8581
     
    9086    reinplace "s|${destroot}||" "${destroot}${prefix}/bin/jnethack"
    9187    if {[variant_isset x11]} {
    92         file copy ${worksrcpath}/win/X11/JNetHack.ad ${destroot}${prefix}/share/jnethackdir/
     88        copy ${worksrcpath}/win/X11/JNetHack.ad ${destroot}${prefix}/share/jnethackdir/
    9389    }
    9490}
     
    113109    }
    114110}
     111
     112livecheck.check regex
     113livecheck.url   ${homepage}
     114livecheck.regex <li>\\(\[0-9/\]+\\) (\[0-9.-\]+)
Note: See TracChangeset for help on using the changeset viewer.