Ticket #46273: http-replicator.2.diff

File http-replicator.2.diff, 1.5 KB (added by larryv (Lawrence Velázquez), 9 years ago)
  • dports/net/http-replicator/Portfile

    diff --git a/dports/net/http-replicator/Portfile b/dports/net/http-replicator/Portfile
    index 2cfe711..f113db6 100644
    a b PortSystem 1.0 
    55
    66name                http-replicator
    77version             3.0
     8revision            1
    89categories          net www
    910platforms           darwin
     11license             GPL-2+
    1012maintainers         mww
    1113
    1214description         replicating HTTP proxy server
    long_description Replicator is a replicating HTTP proxy server. \ 
    2022                    packages.
    2123homepage            http://gertjan.freezope.org/replicator/
    2224
    23 depends_run         bin:python:python27
     25depends_run         port:python27
     26supported_archs     noarch
    2427
    2528master_sites        ${homepage}
    2629distname            ${name}_${version}
    worksrcdir ${name}-${version} 
    2831checksums           md5 7d8d69175a5dc3d470273b1e508a27f3
    2932
    3033configure {
    31     reinplace -W ${worksrcpath} "s| /usr/bin/python|/usr/bin/env python|g" \
     34    reinplace -W ${worksrcpath} "s| /usr/bin/python|${prefix}/bin/python2.7|" \
    3235            http-replicator \
    3336            http-replicator_maintenance
    3437}
    destroot { 
    4245    xinstall -m 644 -W ${worksrcpath} \
    4346            http-replicator.1 http-replicator_maintenance.1 \
    4447            ${destroot}${prefix}/share/man/man1
     48    xinstall -d ${destroot}${prefix}/share/doc/${name}
     49    xinstall -m 644 ${worksrcpath}/README \
     50            ${destroot}${prefix}/share/doc/${name}
    4551}