Ticket #49971: patch-Portfile.diff

File patch-Portfile.diff, 1.9 KB (added by lpsinger (Leo Singer), 8 years ago)

Proposed patch

  • Portfile

    old new  
    44PortGroup         python 1.0
    55
    66name              py-httplib2
    7 version           2-0.8
     7set realversion   0.9.2
     8version           2-${realversion}
    89categories-append devel net
    910license           MIT
    1011platforms         darwin
     
    1415long_description  A comprehensive HTTP client library that supports \
    1516                  many features left out of other HTTP libraries.
    1617
    17 homepage          http://code.google.com/p/httplib2/
    18 master_sites      http://httplib2.googlecode.com/files/
    19 distname          httplib${version}
    20 
    21 python.versions   26 27 33 34
    22 
    23 checksums         rmd160 c5f812da928fbd5bd80c3134ba29a5e7654e3673 \
    24                   sha256 af689bc3cb10a95721eb0d0cf806202a699e7799dacd3497f63b48b2ba429c3f
     18homepage          http://pypi.python.org/pypi/${python.rootname}/
     19master_sites      pypi:[string index ${python.rootname} 0]/${python.rootname}
     20distname          ${python.rootname}-${realversion}
     21
     22python.versions   26 27 33 34 35
     23
     24checksums         md5    bd1b1445b3b2dfa7276b09b1a07b7f0e \
     25                  rmd160 305916f7a3f9ff7a262d770b7cf19e808ea11105 \
     26                  sha256 c3aba1c9539711551f4d83e857b316b5134a1c4ddce98a875b7027be7dd6d988
    2527
    2628if {${name} ne ${subport}} {
    27   # Extracted files do not have correct 'group' and 'other' permissions.
    28   post-extract {
    29     system "find ${worksrcpath} -type d -print0 | xargs -0 chmod a+rx"
    30     system "find ${worksrcpath} -type f -print0 | xargs -0 chmod a+r"
    31   }
     29  depends_build-append \
     30                    port:py${python.version}-setuptools
    3231
    3332  livecheck.type    none
    3433} else {
    35   livecheck.type    regex
    36   livecheck.url     ${homepage}downloads/list
    37   livecheck.regex   {httplib(\d-\d+(?:\.\d+)*).tar.gz}
     34  livecheck.type    pypi
     35  livecheck.version ${realversion}
    3836}