Ticket #996: portfile-20031008.diff

File portfile-20031008.diff, 2.0 KB (added by bchesneau@…, 21 years ago)

patch portfile

  • (a) Portfile-orig vs. (b) Portfile

    a b  
    1515        "blame" support, and the beginnings of Bonsai-like query facilities.
    1616homepage        http://viewcvs.sourceforge.net/
    1717platforms       darwin
    18 master_sites    \
    19         http://unc.dl.sourceforge.net/sourceforge/${name}/ \
    20         http://telia.dl.sourceforge.net/sourceforge/${name}/ \
    21         http://easynews.dl.sourceforge.net/sourceforge/${name}/ \
    22         http://umn.dl.sourceforge.net/sourceforge/${name}/ \
    23         http://twtelecom.dl.sourceforge.net/sourceforge/${name}/ \
    24         http://belnet.dl.sourceforge.net/sourceforge/${name}/ \
    25         http://switch.dl.sourceforge.net/sourceforge/${name}/ \
    26         http://cesnet.dl.sourceforge.net/sourceforge/${name}/
     18master_sites    sourceforge:viewcvs
     19
     20patchfiles      patch-viewcvs-install
     21
    2722checksums       md5 c7857b1ed05240ad1f691ea40044daf2
    28 #some evil to make things work
    29 patch {
    30         reinplace "s|\"/usr/local/viewcvs-\" + version|\"${destroot}${prefix}/viewcvs\"|g" "${worksrcpath}/viewcvs-install"
    31         reinplace "s|temp = raw_input(\"Installation|temp = \"\"##raw_input|g" "${worksrcpath}/viewcvs-install"
    32         reinplace "s|temp = raw_input(|temp = \"o\"##|g" "${worksrcpath}/viewcvs-install"
    33 }
     23
     24
     25
     26
    3427configure       {}
    3528depends_build   bin:python:python
     29
     30pre-build {
     31        reinplace "s|__ROOTDIR|${prefix}/share/${name}-${version}|g" ${worksrcpath}/viewcvs-install
     32        reinplace "s|__DESTROOTDIR|${destroot}${prefix}/share/${name}-${version}|g" ${worksrcpath}/viewcvs-install
     33}
     34
    3635build           {}
    3736build.cmd       ./viewcvs-install
    3837post-destroot {
     
    5352        }
    5453
    5554        system "install -d ${destroot}${cgi_path}"
    56         system "install -m 755 ${destroot}${prefix}/viewcvs/cgi/query.cgi ${destroot}${cgi_path}"
    57         system "install -m 755 ${destroot}${prefix}/viewcvs/cgi/viewcvs.cgi ${destroot}${cgi_path}"
     55        system "install -m 755 ${destroot}${prefix}/share/${name}-${version}/cgi/query.cgi ${destroot}${cgi_path}"
     56        system "install -m 755 ${destroot}${prefix}/share/${name}-${version}/cgi/viewcvs.cgi ${destroot}${cgi_path}"
    5857}