Commits
Renee Otten authored d152eeaf388
1 - | # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
1 + | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
2 2 | |
3 3 | PortSystem 1.0 |
4 4 | PortGroup python 1.0 |
5 5 | |
6 - | set _name IPy |
7 - | set _n [string index ${_name} 0] |
8 - | |
9 6 | name py-ipy |
10 - | version 0.83 |
7 + | python.rootname IPy |
8 + | version 1.00 |
9 + | revision 0 |
11 10 | |
12 11 | categories-append devel net |
13 12 | platforms darwin |
14 13 | supported_archs noarch |
15 14 | license BSD |
16 - | |
17 15 | maintainers nomaintainer |
18 16 | |
19 17 | description python module for handling IPv4 and IPv6 addresses and networks |
20 18 | long_description IPy is a Python module for handling IPv4 and IPv6 \ |
21 19 | addresses and networks in a fashion similar to perl's \ |
22 20 | Net::IP and friends. The IP class allows a comfortable \ |
23 21 | parsing and handling for most notations in use for \ |
24 22 | IPv4 and IPv6 addresses and networks. |
25 23 | |
26 - | homepage https://github.com/haypo/python-ipy |
27 - | master_sites pypi:${_n}/${_name}/ |
28 - | distname ${_name}-${version} |
24 + | homepage https://github.com/autocracy/python-ipy |
25 + | master_sites pypi:[string index ${python.rootname} 0]/${python.rootname} |
26 + | distname ${python.rootname}-${version} |
29 27 | |
30 - | checksums rmd160 9d059c6949134ac0f74ae768a8d6dbac5cdb9b54 \ |
31 - | sha256 61da5a532b159b387176f6eabf11946e7458b6df8fb8b91ff1d345ca7a6edab8 |
28 + | checksums rmd160 2f386828685d7452d1e33b5c4b9a888e2bbed334 \ |
29 + | sha256 2f2bf658a858d43868d8a4352b3889cf78c66e2ce678b300dcf518c9149ba621 \ |
30 + | size 35324 |
32 31 | |
33 - | python.versions 27 34 35 36 |
32 + | python.versions 27 35 36 37 38 |
34 33 | |
35 34 | if {${name} ne ${subport}} { |
35 + | depends_test-append \ |
36 + | port:py${python.version}-nose |
37 + | |
38 + | test.run yes |
39 + | test.cmd nosetests-${python.branch} |
40 + | test.args -e fuzz |
41 + | test.target |
42 + | test.env PYTHONPATH=${worksrcpath}/build/lib |
43 + | |
36 44 | post-destroot { |
37 45 | set docdir ${prefix}/share/doc/${subport} |
38 - | xinstall -m 644 ${worksrcpath}/README ${destroot}${docdir} |
46 + | xinstall -d ${destroot}${docdir} |
47 + | xinstall -m 0644 -W ${worksrcpath} COPYING AUTHORS \ |
48 + | ChangeLog README.rst ${destroot}${docdir} |
39 49 | } |
40 50 | |
41 51 | livecheck.type none |
42 - | } else { |
43 - | livecheck.url https://pypi.python.org/pypi/${_name}/json |
44 - | livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\"" |
45 52 | } |