Changeset 25173


Ignore:
Timestamp:
May 15, 2007, 2:01:02 PM (12 years ago)
Author:
takanori@…
Message:

Untabify, etc.

File:
1 edited

Legend:

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

    r25172 r25173  
    11# $Id$
    2 PortSystem        1.0
    3 name              jnethack
    4 version           3.4.3-0.9
    5 categories        games japanese
    6 maintainers       kyut@rutiler.net takanori@macports.org
    7 description       Classic dungeon adventure game, translated in Japanese.
    8 long_description  ${description}
    9 homepage          http://jnethack.sourceforge.jp/
    10 platforms         darwin
    112
    12 set nethacksrc    "nethack-343-src.tgz"
    13 set jnethackpatch "${name}-${version}.diff.gz"
    14 set sfj           "http://dl.sourceforge.jp/jnethack"
     3PortSystem      1.0
     4name            jnethack
     5version         3.4.3-0.9
     6categories      games japanese
     7maintainers     kyut@rutiler.net takanori@macports.org
     8description     Classic dungeon adventure game, translated in Japanese.
     9long_description \
     10                ${description}
     11homepage        http://jnethack.sourceforge.jp/
     12platforms       darwin
    1513
    16 master_sites      ${sfj}/9091/:nh \
    17                   ${sfj}/25190/:jnh
    18 distfiles         ${nethacksrc}:nh \
    19                   ${jnethackpatch}:jnh
    20 checksums         ${nethacksrc} sha1 c26537093c38152bc0fbcec20468d975b35f59fd \
    21                   ${jnethackpatch}  sha1 547acd967c75a6bc8d464821b41ed026c1c2bb3a
    22 patchfiles        patch-sys__unix__Makefile.doc \
    23                   patch-sys__unix__Makefile.top \
    24                   patch-sys__unix__nethack.sh \
    25                   patch-win__tty__termcap.c \
    26                   patch-src__options.c
     14set nethacksrc      "nethack-343-src.tgz"
     15set jnethackpatch   "${name}-${version}.diff.gz"
     16set sfj             "http://dl.sourceforge.jp/jnethack"
    2717
    28 depends_build     port:bison \
    29                   port:flex
    30 depends_run       port:cocot
     18master_sites    ${sfj}/9091/:nh \
     19                ${sfj}/25190/:jnh
     20distfiles       ${nethacksrc}:nh \
     21                ${jnethackpatch}:jnh
     22checksums       ${nethacksrc} sha1 c26537093c38152bc0fbcec20468d975b35f59fd \
     23                ${jnethackpatch}  sha1 547acd967c75a6bc8d464821b41ed026c1c2bb3a
     24patchfiles      patch-sys__unix__Makefile.doc \
     25                patch-sys__unix__Makefile.top \
     26                patch-sys__unix__nethack.sh \
     27                patch-win__tty__termcap.c \
     28                patch-src__options.c
    3129
    32 livecheck.check   regex
    33 livecheck.url     ${homepage}
    34 livecheck.regex   <li>\\(\[0-9/\]+\\) (\[0-9.-\]+)
     30depends_build   port:bison \
     31                port:flex
     32depends_run     port:cocot
    3533
    36 extract.only      ${nethacksrc}
    37 worksrcdir        nethack-3.4.3
     34livecheck.check regex
     35livecheck.url   ${homepage}
     36livecheck.regex <li>\\(\[0-9/\]+\\) (\[0-9.-\]+)
     37
     38extract.only    ${nethacksrc}
     39worksrcdir      nethack-3.4.3
    3840
    3941## extract ##
    4042
    4143post-extract {
    42         system "cd ${worksrcpath} && gunzip -dc ${distpath}/${jnethackpatch} | patch -p 1" 
     44    system "cd ${worksrcpath} && gunzip -dc ${distpath}/${jnethackpatch} | patch -p 1" 
    4345}
    4446
    4547## patch ##
    4648
     49pre-patch {
     50    if {[variant_isset x11]} {
     51        patchfiles-append x11/patch-include__config.h \
     52                          x11/patch-sys__unix__Makefile.top \
     53                          x11/patch-sys__unix__Makefile.src \
     54                          x11/patch-win__X11__JNetHack.ad
     55    }
     56}
    4757post-patch {
    48         reinplace "s|__PREFIX__|${prefix}|" \
    49                 "${worksrcpath}/sys/unix/Makefile.doc" \
    50                 "${worksrcpath}/sys/unix/Makefile.top" \
    51                 "${worksrcpath}/sys/unix/nethack.sh"
     58    reinplace "s|__PREFIX__|${prefix}|" "${worksrcpath}/sys/unix/Makefile.doc" \
     59                                        "${worksrcpath}/sys/unix/Makefile.top" \
     60                                        "${worksrcpath}/sys/unix/nethack.sh"
    5261}
    5362
    5463## configure ##
    5564
    56 configure.dir   ${worksrcpath}/sys/unix
    57 configure.cmd   /bin/sh
    58 configure.pre_args setup.sh
     65configure.dir       ${worksrcpath}/sys/unix
     66configure.cmd       /bin/sh
     67configure.pre_args  setup.sh
    5968
    6069## destroot ##
    6170
    6271pre-destroot {
    63         addgroup games
    64         adduser games gid=[existsgroup games]
     72    addgroup games
     73    adduser games gid=[existsgroup games]
    6574
    66         file mkdir "${destroot}${prefix}/share/man/man6"
    67         file mkdir "${destroot}${prefix}/share/jnethackdir/save"
     75    file mkdir "${destroot}${prefix}/share/man/man6"
     76    file mkdir "${destroot}${prefix}/share/jnethackdir/save"
    6877}
    6978
    70 destroot.target install manpages
    71 destroot.keepdirs "${destroot}${prefix}/share/jnethackdir/save/"
     79destroot.target     install manpages
     80destroot.keepdirs   "${destroot}${prefix}/share/jnethackdir/save/"
    7281
    7382post-destroot {
    74         reinplace "s|${destroot}||" "${destroot}${prefix}/bin/jnethack"
    75         if {[variant_isset x11]} {
    76                 file copy ${worksrcpath}/win/X11/JNetHack.ad ${destroot}${prefix}/share/jnethackdir/
    77         }
     83    reinplace "s|${destroot}||" "${destroot}${prefix}/bin/jnethack"
     84    if {[variant_isset x11]} {
     85        file copy ${worksrcpath}/win/X11/JNetHack.ad ${destroot}${prefix}/share/jnethackdir/
     86    }
    7887}
    7988
     
    8190
    8291pre-install {
    83         addgroup games
    84         adduser games gid=[existsgroup games]
     92    addgroup games
     93    adduser games gid=[existsgroup games]
    8594}
    8695
    8796## variants ##
    8897
    89 variant x11 {
    90         patchfiles-append \
    91                 x11/patch-include__config.h \
    92                 x11/patch-sys__unix__Makefile.top \
    93                 x11/patch-sys__unix__Makefile.src \
    94                 x11/patch-win__X11__JNetHack.ad
    95 }
    96 
     98variant x11 {}
Note: See TracChangeset for help on using the changeset viewer.