Ticket #49971: patch-Portfile.diff
File patch-Portfile.diff, 1.9 KB (added by lpsinger (Leo Singer), 9 years ago) |
---|
-
Portfile
old new 4 4 PortGroup python 1.0 5 5 6 6 name py-httplib2 7 version 2-0.8 7 set realversion 0.9.2 8 version 2-${realversion} 8 9 categories-append devel net 9 10 license MIT 10 11 platforms darwin … … 14 15 long_description A comprehensive HTTP client library that supports \ 15 16 many features left out of other HTTP libraries. 16 17 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 18 homepage http://pypi.python.org/pypi/${python.rootname}/ 19 master_sites pypi:[string index ${python.rootname} 0]/${python.rootname} 20 distname ${python.rootname}-${realversion} 21 22 python.versions 26 27 33 34 35 23 24 checksums md5 bd1b1445b3b2dfa7276b09b1a07b7f0e \ 25 rmd160 305916f7a3f9ff7a262d770b7cf19e808ea11105 \ 26 sha256 c3aba1c9539711551f4d83e857b316b5134a1c4ddce98a875b7027be7dd6d988 25 27 26 28 if {${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 32 31 33 32 livecheck.type none 34 33 } 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} 38 36 }