Ticket #20976: patch-viewcvs-Portfile.diff

File patch-viewcvs-Portfile.diff, 1.4 KB (added by jbenninghoff@…, 10 years ago)

patch file for existing viewcvs Portfile

  • Portfile

    old new  
    22
    33PortSystem 1.0
    44
     5replaced_by     viewvc
     6PortGroup       obsolete 1.0
     7
    58name            viewcvs
    69version         0.9.2
     10revision        1
    711categories      devel www
    812license         BSD
    913maintainers     nomaintainer
     
    1721homepage        http://viewcvs.sourceforge.net/
    1822platforms       darwin
    1923supported_archs noarch
    20 master_sites    sourceforge
    21 patchfiles      patch-viewcvs-install
    22 checksums       md5 c7857b1ed05240ad1f691ea40044daf2
    23 
    24 use_configure   no
    25 depends_build   bin:python:python24
    26 
    27 pre-build {
    28         reinplace "s|__ROOTDIR|${prefix}/share/${name}-${version}|g" ${worksrcpath}/viewcvs-install
    29         reinplace "s|__DESTROOTDIR|${destroot}${prefix}/share/${name}-${version}|g" ${worksrcpath}/viewcvs-install
    30 }
    31 
    32 build           {}
    33 build.cmd       ./viewcvs-install
    34 post-destroot {
    35        
    36         switch ${os.platform} {
    37                 darwin {
    38                         set cgi_path "/Library/WebServer/CGI-Executables/"
    39                 } freebsd {
    40                         set cgi_path "/usr/local/www/cgi-bin/"
    41                 } default {
    42                         puts stdout "and it was like, beep beep beep beep beep..."
    43                 }
    44         }
    45        
    46         # apache port interop
    47         if {[ file exists ${prefix}/sbin/httpd]} {
    48                 set cgi_path "${prefix}/www/cgi-bin/"
    49         }
    50 
    51         system "install -d ${destroot}${cgi_path}"
    52         system "install -m 755 ${destroot}${prefix}/share/${name}-${version}/cgi/query.cgi ${destroot}${cgi_path}"
    53         system "install -m 755 ${destroot}${prefix}/share/${name}-${version}/cgi/viewcvs.cgi ${destroot}${cgi_path}"
    54 }