Ignore:
Timestamp:
Nov 6, 2015, 1:52:09 PM (3 years ago)
Author:
mojca@…
Message:

cvsweb: whitespace, first line, checksums only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/cvsweb/Portfile

    r116124 r142195  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    12# $Id$
    23
    3 PortSystem 1.0
     4PortSystem          1.0
    45
    5 name            cvsweb
    6 version         3.0.6
    7 revision    2
    8 categories      devel www
    9 license         BSD
    10 maintainers     nomaintainer
    11 supported_archs noarch
     6name                cvsweb
     7version             3.0.6
     8revision            2
     9categories          devel www
     10license             BSD
     11maintainers         nomaintainer
     12supported_archs     noarch
    1213
    13 description     WWW interface for CVS repositories
    14 long_description        \
    15         FreeBSD-CVSweb is a WWW CGI script that allows remote users to \
    16         browse a CVS repository tree via web.  It can display the revision \
    17         history of a file, as well as diffs between revisions and \
    18         downloading the whole file.
    19 homepage        http://www.freebsd.org/projects/cvsweb.html
    20 platforms       darwin
    21 master_sites    http://people.FreeBSD.org/~scop/cvsweb/ \
    22                 ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/scop/
    23 checksums       md5 0e1eec962b1db00e01b295fff84b6e89
     14description         WWW interface for CVS repositories
     15long_description    FreeBSD-CVSweb is a WWW CGI script that allows remote users to \
     16                    browse a CVS repository tree via web.  It can display the revision \
     17                    history of a file, as well as diffs between revisions and \
     18                    downloading the whole file.
     19homepage            http://www.freebsd.org/projects/cvsweb.html
     20platforms           darwin
     21master_sites        http://people.FreeBSD.org/~scop/cvsweb/ \
     22                    ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/scop/
    2423
    25 depends_build   port:perl5.16 \
    26                 port:p5.16-ipc-run \
    27                 port:p5.16-file-temp \
    28                 port:p5.16-uri \
    29                 port:p5.16-mime-types \
    30                 port:p5.16-string-ediff \
    31                 port:cvsgraph
     24checksums           rmd160  e933c3814ea52c7fb9cec65e088c9ab778da2fee \
     25                    sha256  07391ee70212ae42e54b8f6d5e613623ef2aad5fd7474899a102fcca48d213c2
    3226
    33 use_configure   no
    34 build           {}
     27depends_build       port:perl5.16 \
     28                    port:p5.16-ipc-run \
     29                    port:p5.16-file-temp \
     30                    port:p5.16-uri \
     31                    port:p5.16-mime-types \
     32                    port:p5.16-string-ediff \
     33                    port:cvsgraph
    3534
    36         global cgi_path httpd_conf_path
    37         set cgi_path "/Library/WebServer/CGI-Executables/"
    38         set httpd_conf_path "/private/etc/httpd/"
    39         set icons_path "/Library/WebServer/Documents/icons/"
    40         set css_path "/Library/WebServer/Documents/css/"
     35use_configure       no
     36build               {}
     37
     38global cgi_path     httpd_conf_path
     39set cgi_path        "/Library/WebServer/CGI-Executables/"
     40set httpd_conf_path "/private/etc/httpd/"
     41set icons_path      "/Library/WebServer/Documents/icons/"
     42set css_path        "/Library/WebServer/Documents/css/"
    4143
    4244variant macports_apache2 description {Install for MacPorts apache2 instead of Apple Apache} {
    43         global cgi_path httpd_conf_path
     45    global cgi_path httpd_conf_path
    4446        set cgi_path "${prefix}/apache2/cgi-bin/"
    4547        set httpd_conf_path "${prefix}/apache2/conf/"
    4648        set icons_path "${prefix}/apache2/htdocs/icons/"
    4749        set css_path "${prefix}/apache2/htdocs/css/"
    48 
    4950}
    5051
     
    5253
    5354destroot {
    54         file mkdir ${destroot}${cgi_path}
    55         file mkdir ${destroot}${httpd_conf_path}
    56         file mkdir ${destroot}${icons_path}
    57         file mkdir ${destroot}${css_path}
    58         xinstall -m 755 ${worksrcpath}/cvsweb.cgi ${destroot}${cgi_path}
    59         xinstall -m 644 ${worksrcpath}/cvsweb.conf ${destroot}${httpd_conf_path}
    60         eval xinstall -m 755 [glob ${worksrcpath}/icons/*] ${destroot}${icons_path}
    61         eval xinstall -m 755 [glob ${worksrcpath}/css/*] ${destroot}${css_path}
     55    file mkdir ${destroot}${cgi_path}
     56    file mkdir ${destroot}${httpd_conf_path}
     57    file mkdir ${destroot}${icons_path}
     58    file mkdir ${destroot}${css_path}
     59    xinstall -m 755 ${worksrcpath}/cvsweb.cgi ${destroot}${cgi_path}
     60    xinstall -m 644 ${worksrcpath}/cvsweb.conf ${destroot}${httpd_conf_path}
     61    eval xinstall -m 755 [glob ${worksrcpath}/icons/*] ${destroot}${icons_path}
     62    eval xinstall -m 755 [glob ${worksrcpath}/css/*] ${destroot}${css_path}
    6263
    63         reinplace -locale en_US.ISO8859-1 "s|#!/usr/bin/perl|#!${prefix}/bin/perl5.16|g" \
    64                 "${destroot}${cgi_path}/cvsweb.cgi"
    65         reinplace -locale en_US.ISO8859-1 "s|/usr/local/etc/cvsweb/cvsweb.conf|${httpd_conf_path}cvsweb.conf|g" \
    66                 "${destroot}${cgi_path}/cvsweb.cgi"
    67         reinplace -locale en_US.ISO8859-1 "s|/bin /usr/bin /usr/local/bin|/bin /usr/bin /usr/local/bin ${prefix}/bin ${prefix}/sbin|g" \
    68                 "${destroot}${cgi_path}/cvsweb.cgi"
     64    reinplace -locale en_US.ISO8859-1 "s|#!/usr/bin/perl|#!${prefix}/bin/perl5.16|g" \
     65        "${destroot}${cgi_path}/cvsweb.cgi"
     66    reinplace -locale en_US.ISO8859-1 "s|/usr/local/etc/cvsweb/cvsweb.conf|${httpd_conf_path}cvsweb.conf|g" \
     67        "${destroot}${cgi_path}/cvsweb.cgi"
     68    reinplace -locale en_US.ISO8859-1 "s|/bin /usr/bin /usr/local/bin|/bin /usr/bin /usr/local/bin ${prefix}/bin ${prefix}/sbin|g" \
     69        "${destroot}${cgi_path}/cvsweb.cgi"
    6970}
Note: See TracChangeset for help on using the changeset viewer.