Ticket #51283: py-google-api.patch

File py-google-api.patch, 2.1 KB (added by david.e.pi.3.14@…, 8 years ago)
  • python/py-google-api/Portfile

     
    66
    77name                py-google-api
    88set realname        google-api-python-client
    9 version             1.2
     9version             1.5.0
    1010
    11 # There are no py3x-uritemplate subports (#38502).
    12 python.versions     27
     11python.versions     27 33 34 35
    1312
    1413categories-append   www devel
    1514maintainers         nomaintainer
     
    2221supported_archs     noarch
    2322
    2423homepage            http://pypi.python.org/pypi/${realname}
    25 master_sites        googlecode:${realname}
     24master_sites        https://pypi.python.org/packages/source/g/${realname}/
    2625distname            ${realname}-${version}
    27 distfiles           ${distname}${extract.suffix} \
    28                     ${realname}-samples-${version}${extract.suffix}
    2926
    3027if {${name} ne ${subport}} {
    3128    depends_build           port:py${python.version}-setuptools
     
    4340        }
    4441
    4542        xinstall -d -m 555 ${destroot}${prefix}/share/examples
    46         copy ${workpath}/samples ${destroot}${prefix}/share/examples/${subport}
    4743    }
    4844}
    4945
    50 checksums           ${realname}-${version}${extract.suffix} \
    51                     rmd160  785756e2b3a0c76f60f590574bb71834690dd921 \
    52                     sha256  3cb3f39c4a634950aee34f52e2a160b9a064b15210f7196ba364f670780aa675 \
    53                     ${realname}-samples-${version}${extract.suffix} \
    54                     rmd160  f7f86fe566438e8d1e972153a40ae4f79f024003 \
    55                     sha256  4c7a469caebe4926967b00ac3e14eadd28fbb3b10ec2672dd993028fd2add6bd
     46checksums           rmd160  c6cbb670bd402e9b466e404c709d3655a5e861e7 \
     47                    sha256  ffb89782c74702bd47d217709741717f0e4812d87f6cea04783f991d3eb51abd
    5648
    57 livecheck.type      regex
    58 livecheck.url       http://pypi.python.org/pypi/${realname}
    59 livecheck.regex     "${realname} (\[1-9\]+\.\[0-9\]+)"
     49if {${name} ne ${subport}} {
     50    livecheck.type  none
     51} else {
     52    livecheck.url       http://pypi.python.org/pypi/${realname}/json
     53    livecheck.regex     "${realname} (\[1-9\]+\.\[0-9\]+)"
     54}