Ticket #48443: py-configobj.diff
File py-configobj.diff, 2.6 KB (added by xeron (Ivan Larionov), 9 years ago) |
---|
-
Portfile
1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=42 1 # $Id$ 3 2 4 3 PortSystem 1.0 … … 5 4 PortGroup python 1.0 6 5 7 6 name py-configobj 8 version 4.7.2 7 version 5.0.6 8 license BSD 9 9 platforms darwin 10 10 supported_archs noarch 11 license BSD12 11 maintainers nomaintainer 13 14 12 description Config file reading, writing and validation. 15 13 long_description ConfigObj is a simple but powerful config file \ 16 14 reader and writer: an ini file round tripper. \ … … 17 15 Its main feature is that it is very easy to use, \ 18 16 with a straightforward programmer's interface and \ 19 17 a simple syntax for config files. 20 homepage http://www.voidspace.org.uk/python/configobj.html21 18 22 master_sites sourceforge:configobj 19 python.versions 26 27 34 20 21 homepage https://pypi.python.org/pypi/configobj/ 22 master_sites https://pypi.python.org/packages/source/c/configobj/ 23 23 distname configobj-${version} 24 use_zip yes25 checksums md5 51cee395cfbf831339b03f72706de18e \26 sha1 2e6e33a5f685926bea2d4745cf81403c2c974e81 \27 rmd160 a4301775b5bc7c893f8ee32df5160bc5559fd54128 24 29 python.versions 26 27 34 25 checksums md5 e472a3a1c2a67bb0ec9b5d54c13a47d6 \ 26 rmd160 9b7dd0b9e08477914da104585369921c549eec01 \ 27 sha256 a2f5650770e1c87fb335af19a9b7eb73fc05ccf22144eb68db7d00cd2bcb0902 30 28 31 29 if {${name} ne ${subport}} { 32 # Patch for Python3 33 post-extract { 34 if {[string match py3* ${subport}]} { 35 ui_msg "Patching for python 3.x" 36 reinplace -E "s|(except .*)\\, e|\\1 as e|" \ 37 ${worksrcpath}/configobj.py 38 } 39 } 40 41 post-destroot { 42 foreach f [glob -directory ${worksrcpath}/docs *] { 43 copy $f ${destroot}${prefix}/share/doc/${subport}/[file tail $f] 44 } 45 } 46 livecheck.type none 30 depends_build-append port:py${python.version}-setuptools 31 livecheck.type none 47 32 } else { 48 livecheck.regex configobj-(\[0-9.\]+)${extract.suffix} 33 livecheck.type regex 34 livecheck.url ${homepage} 35 livecheck.regex "configobj/(\\d+\\.\\d+(?:\\.\\d+))" 49 36 }