Ticket #29187: untabify.diff

File untabify.diff, 4.7 KB (added by ci42, 13 years ago)

apply this after yaws.diff to convert all tabs to spaces

  • Portfile

    old new  
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
    22# $Id: Portfile 71001 2010-08-29 09:00:39Z ryandesign@macports.org $
    33
    4 PortSystem                      1.0
     4PortSystem          1.0
    55
    6 name                            yaws
    7 version                         1.89
    8 categories                      www
    9 maintainers                     googlemail.com:ciserlohn
    10 platforms                       darwin
    11 description                     Webserver for dynamic content written in Erlang
    12 long_description        Yaws is a high performance HTTP server for dynamic content \
    13                                         written in Erlang. Pages can be dynamic with embedded erlang \
    14                                         code. Yaws also features a built-in Wiki.
    15 homepage                        http://yaws.hyber.org/
    16 master_sites            http://yaws.hyber.org/download/
    17 
    18 checksums                       sha1    3f6cc88eb7f154f017f78f1ad07eff5521e7319c \
    19                                         rmd160  9fc274a9ddc82cc83bceeaed133758ee71c2951e
    20 
    21 depends_build           port:erlang
    22 
    23 extract.post_args       | tar -xf - --exclude \
    24                                         "${name}-${version}/www/testdir/xx*xx.jpg"
    25 
    26 patchfiles                      patch-man-yaws.1 \
    27                                         patch-man-yaws_api.5 \
    28                                         patch-man-yaws.conf.5 \
    29                                         patch-scripts-Install \
    30                                         patch-scripts-Makefile \
    31                                         patch-scripts-yaws.conf.template
     6name                yaws
     7version             1.89
     8categories          www
     9maintainers         googlemail.com:ciserlohn
     10platforms           darwin
     11description         Webserver for dynamic content written in Erlang
     12long_description    Yaws is a high performance HTTP server for dynamic content \
     13                    written in Erlang. Pages can be dynamic with embedded erlang \
     14                    code. Yaws also features a built-in Wiki.
     15homepage            http://yaws.hyber.org/
     16master_sites        http://yaws.hyber.org/download/
     17
     18checksums           sha1    3f6cc88eb7f154f017f78f1ad07eff5521e7319c \
     19                    rmd160  9fc274a9ddc82cc83bceeaed133758ee71c2951e
     20
     21depends_build       port:erlang
     22
     23extract.post_args   | tar -xf - --exclude \
     24                        "${name}-${version}/www/testdir/xx*xx.jpg"
     25
     26patchfiles          patch-man-yaws.1 \
     27                    patch-man-yaws_api.5 \
     28                    patch-man-yaws.conf.5 \
     29                    patch-scripts-Install \
     30                    patch-scripts-Makefile \
     31                    patch-scripts-yaws.conf.template
    3232
    3333post-patch {
    34         reinplace "s|__PREFIX|${prefix}|g" \
    35                                         ${worksrcpath}/man/yaws.1 \
    36                                         ${worksrcpath}/man/yaws.conf.5 \
    37                                         ${worksrcpath}/man/yaws_api.5 \
    38                                         ${worksrcpath}/scripts/yaws.conf.template
     34    reinplace "s|__PREFIX|${prefix}|g" \
     35        ${worksrcpath}/man/yaws.1 \
     36        ${worksrcpath}/man/yaws.conf.5 \
     37        ${worksrcpath}/man/yaws_api.5 \
     38        ${worksrcpath}/scripts/yaws.conf.template
    3939}
    4040
    41 default_variants        +yapp
     41default_variants    +yapp
    4242
    43 configure.args          --sysconfdir=${prefix}/etc \
    44                                         --localstatedir=${prefix}/var
     43configure.args      --sysconfdir=${prefix}/etc \
     44                    --localstatedir=${prefix}/var
    4545
    4646variant yapp description {Yapp application handler} {
    47         post-build {
    48                 system "cd ${worksrcpath}/applications/yapp && make && make docs"
    49         }
    50         post-destroot {
    51                 system "cd ${worksrcpath}/applications/yapp && make install DESTDIR=${destroot}"
    52         }
     47    post-build {
     48        system "cd ${worksrcpath}/applications/yapp && make && make docs"
     49    }
     50    post-destroot {
     51        system "cd ${worksrcpath}/applications/yapp && make install DESTDIR=${destroot}"
     52    }
    5353}
    54                                        
     54                   
    5555post-destroot {
    56         xinstall -d "${destroot}${prefix}/var/log/yaws/"
    57         system "touch ${destroot}${prefix}/var/log/yaws/.turd"
    58         file rename "${destroot}${prefix}/etc/yaws/yaws.conf" "${destroot}${prefix}/etc/yaws/yaws.conf.template"
     56    xinstall -d "${destroot}${prefix}/var/log/yaws/"
     57    system "touch ${destroot}${prefix}/var/log/yaws/.turd"
     58    file rename "${destroot}${prefix}/etc/yaws/yaws.conf" "${destroot}${prefix}/etc/yaws/yaws.conf.template"
    5959}
    6060
    6161notes "\
    6262Copy and customize ${prefix}/etc/yaws/yaws.conf.template to ${prefix}/etc/yaws/yaws.conf\
    6363"
    6464
    65 startupitem.create      yes
    66 startupitem.name        yaws
    67 startupitem.start       "${prefix}/bin/yaws --daemon --heart --conf ${prefix}/etc/yaws/yaws.conf"
    68 startupitem.stop        "${prefix}/bin/yaws --stop"
    69 
    70 livecheck.type  regex
    71 livecheck.url   http://yaws.hyber.org/download/
    72 livecheck.regex {<address> Yaws (.*) Server at yaws.hyber.org </address>}
     65startupitem.create  yes
     66startupitem.name    yaws
     67startupitem.start   "${prefix}/bin/yaws --daemon --heart --conf ${prefix}/etc/yaws/yaws.conf"
     68startupitem.stop    "${prefix}/bin/yaws --stop"
     69
     70livecheck.type      regex
     71livecheck.url       http://yaws.hyber.org/download/
     72livecheck.regex     {<address> Yaws (.*) Server at yaws.hyber.org </address>}