Ignore:
Timestamp:
Jul 1, 2007, 2:47:27 AM (12 years ago)
Author:
takanori@…
Message:

Untabify.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/FDclone/Portfile

    r26622 r26623  
    11# $Id$
    22
    3 PortSystem      1.0
    4 name            FDclone
    5 version         2.09d
     3PortSystem      1.0
     4name            FDclone
     5version         2.09d
    66revision        1
    7 categories      sysutils shells
    8 maintainers     takanori@macports.org
    9 description     File & Directory Maintenance Tool
    10 long_description ${description}
    11 homepage        http://hp.vector.co.jp/authors/VA012337/soft/fd/index.html
    12 master_sites    http://hp.vector.co.jp/authors/VA012337/soft/fd/ \
    13                 ftp://ftp.unixusers.net/src/fdclone/
    14 platforms       darwin
    15 distname        FD-${version}
    16 checksums       md5 f9a5a5455181dd838c9c37608889d3d9 \
    17                 sha1 9094bafb3293202a008eb8f3f9790e8be0cf5fb8 \
    18                 rmd160 5d860d7fa210511ea8c4151b1bbd635c5809053b
     7categories      sysutils shells
     8maintainers     takanori@macports.org
     9description     File & Directory Maintenance Tool
     10long_description \
     11                ${description}
     12homepage        http://hp.vector.co.jp/authors/VA012337/soft/fd/index.html
     13master_sites    http://hp.vector.co.jp/authors/VA012337/soft/fd/ \
     14                ftp://ftp.unixusers.net/src/fdclone/
     15platforms       darwin
     16distname        FD-${version}
     17checksums       md5 f9a5a5455181dd838c9c37608889d3d9 \
     18                sha1 9094bafb3293202a008eb8f3f9790e8be0cf5fb8 \
     19                rmd160 5d860d7fa210511ea8c4151b1bbd635c5809053b
    1920
    20 depends_lib     port:ncurses
     21depends_lib     port:ncurses
    2122
    22 set editor      ""
    23 set pager       ""
     23set editor      ""
     24set pager       ""
    2425
    25 patchfiles      nojmaninstall.patch
    26 post-patch      {
    27                 foreach f [glob ${worksrcpath}/*.c] {
    28                         reinplace "s|\\(#include <unistd\.h>\\)|\\1\\\n#include <sys/types\.h>|" ${f}
    29                 }
    30                 reinplace "s|\$(PREFIX)/man|\$(DATATOP)/man|g" ${worksrcpath}/Makefile.in
    31                 reinplace "s|\$(CC) __MEM__|\$(CC) \$(CFLAGS) __MEM__|g" ${worksrcpath}/Makefile.in
     26patchfiles      nojmaninstall.patch
     27post-patch {
     28    foreach f [glob ${worksrcpath}/*.c] {
     29        reinplace "s|\\(#include <unistd\.h>\\)|\\1\\\n#include <sys/types\.h>|" ${f}
     30    }
     31    reinplace "s|\$(PREFIX)/man|\$(DATATOP)/man|g" ${worksrcpath}/Makefile.in
     32    reinplace "s|\$(CC) __MEM__|\$(CC) \$(CFLAGS) __MEM__|g" ${worksrcpath}/Makefile.in
    3233}
    3334
    34 configure       {
    35                 if {[variant_isset nojpnmes]} {
    36                         system "echo \"#define _NOJPNMES\" >> ${worksrcpath}/config.hin"
    37                 }
     35configure {
     36    if {[variant_isset nojpnmes]} {
     37        system "echo \"#define _NOJPNMES\" >> ${worksrcpath}/config.hin"
     38    }
    3839
    39                 if {${editor} != ""} { reinplace "s|\"vi\"|\"${editor}\"|g" ${worksrcpath}/fd.h }
    40                 if {${pager} != ""} { reinplace "s|\"more%K\"|\"${pager}\"|g" ${worksrcpath}/fd.h }
     40    if {${editor} != ""} { reinplace "s|\"vi\"|\"${editor}\"|g" ${worksrcpath}/fd.h }
     41    if {${pager} != ""} { reinplace "s|\"more%K\"|\"${pager}\"|g" ${worksrcpath}/fd.h }
    4142
    42                 if {[variant_isset autosort]} {
    43                         reinplace "s|SORTTYPE\t0|SORTTYPE\t1|" ${worksrcpath}/fd.h
    44                         reinplace "s|DISPLAYMODE\t0|DISPLAYMODE\t3|" ${worksrcpath}/fd.h
    45                         reinplace "s|SORTTREE\t0|SORTTREE\t1|" ${worksrcpath}/fd.h
    46                 }
     43    if {[variant_isset autosort]} {
     44        reinplace "s|SORTTYPE\t0|SORTTYPE\t1|" ${worksrcpath}/fd.h
     45        reinplace "s|DISPLAYMODE\t0|DISPLAYMODE\t3|" ${worksrcpath}/fd.h
     46        reinplace "s|SORTTREE\t0|SORTTREE\t1|" ${worksrcpath}/fd.h
     47    }
    4748}
    4849
    49 build.args      CONFDIR=${prefix}/etc PREFIX=${prefix} CFLAGS="${configure.cflags}" CPPFLAGS="${configure.cppflags} -I${prefix}/include/ncurses" LDFLAGS="${configure.ldflags} -lncurses"
     50build.args      CONFDIR=${prefix}/etc PREFIX=${prefix} CFLAGS="${configure.cflags}" CPPFLAGS="${configure.cppflags} -I${prefix}/include/ncurses" LDFLAGS="${configure.ldflags} -lncurses"
    5051
    51 destroot.args   BUILD=${destroot} PREFIX=${prefix}
    52 post-destroot   {
    53                 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    54                 foreach f {FAQ* HISTORY* Install* LICENSES* README* TECHKNOW* ToAdmin* *.cat} {
    55                         eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/doc/${name}
    56                 }
    57                 xinstall -m 644 ${worksrcpath}/_fdrc ${destroot}${prefix}/etc/fd2rc.dist
     52destroot.args   BUILD=${destroot} PREFIX=${prefix}
     53post-destroot {
     54    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
     55    foreach f {FAQ* HISTORY* Install* LICENSES* README* TECHKNOW* ToAdmin* *.cat} {
     56        eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/doc/${name}
     57    }
     58    xinstall -m 644 ${worksrcpath}/_fdrc ${destroot}${prefix}/etc/fd2rc.dist
    5859}
    5960
    6061variant universal {
    61         build.args      CONFDIR=${prefix}/etc PREFIX=${prefix} CFLAGS="${configure.cflags} ${configure.universal_cflags}" CPPFLAGS="${configure.cppflags} -I${prefix}/include/ncurses" LDFLAGS="${configure.ldflags} ${configure.universal_ldflags} -lncurses"
     62    build.args  CONFDIR=${prefix}/etc PREFIX=${prefix} CFLAGS="${configure.cflags} ${configure.universal_cflags}" CPPFLAGS="${configure.cppflags} -I${prefix}/include/ncurses" LDFLAGS="${configure.ldflags} ${configure.universal_ldflags} -lncurses"
    6263}
    6364variant nojpnmes {}
     
    6970variant autosort {}
    7071
    71 livecheck.check regex
    72 livecheck.url   ${homepage}
    73 livecheck.regex FD-(\[0-9.a-z\]+)\\.tar
     72livecheck.check regex
     73livecheck.url   ${homepage}
     74livecheck.regex FD-(\[0-9.a-z\]+)\\.tar
Note: See TracChangeset for help on using the changeset viewer.