Commits
reneeotten authored and Perry E. Metzger committed 37b72d9c9f3
1 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 6 | name py-flask-babel |
7 - | set real_name Flask-Babel |
8 - | version 0.8 |
9 - | python.versions 27 |
7 + | python.rootname Flask-Babel |
8 + | version 0.12.2 |
9 + | revision 0 |
10 10 | categories-append www |
11 11 | maintainers nomaintainer |
12 12 | description Adds i18n/l10n support to Flask applications |
13 - | long_description \ |
14 - | ${description} |
15 - | license BSD |
13 + | long_description ${description} |
14 + | license BSD |
16 15 | |
17 16 | platforms darwin |
18 17 | supported_archs noarch |
19 18 | |
20 - | homepage https://pypi.python.org/pypi/${real_name} |
21 - | master_sites pypi:F/${real_name}/ |
22 - | distname ${real_name}-${version} |
19 + | homepage https://github.com/python-babel/flask-babel |
20 + | master_sites pypi:F/${python.rootname}/ |
21 + | distname ${python.rootname}-${version} |
23 22 | |
24 - | checksums rmd160 41fc8cfb4b6125a2730930c01a6ef9d82b838650 \ |
25 - | sha256 a255d77910ddfbebc6318c618d9a23cda5d018c86c7e0dea64dc860a16cb3daa |
23 + | checksums rmd160 826fd8df10aa7d6634c46c41f58c660adbaecaf9 \ |
24 + | sha256 316ad183e42003f3922957fa643d0a1e8e34a0f0301a88c3a8f605bc37ba5c86 \ |
25 + | size 44567 |
26 + | |
27 + | python.versions 27 37 |
26 28 | |
27 29 | if {${name} ne ${subport}} { |
28 - | depends_lib port:py${python.version}-flask \ |
30 + | depends_build-append \ |
31 + | port:py${python.version}-setuptools |
32 + | |
33 + | depends_lib-append \ |
29 34 | port:py${python.version}-babel \ |
30 - | port:py${python.version}-tz \ |
31 - | port:py${python.version}-speaklater |
35 + | port:py${python.version}-flask \ |
36 + | port:py${python.version}-jinja2 |
37 + | |
38 + | depends_test-append \ |
39 + | port:py${python.version}-pytest |
40 + | test.run yes |
41 + | test.cmd ${python.bin} ${worksrcpath}/tests/tests.py |
42 + | test.target |
43 + | test.env PYTHONPATH=${worksrcpath}/build/lib |
44 + | |
45 + | post-destroot { |
46 + | set docdir ${prefix}/share/doc/${subport} |
47 + | xinstall -d ${destroot}${docdir} |
48 + | xinstall -m 0644 -W ${worksrcpath} README.md LICENSE \ |
49 + | ${destroot}${docdir} |
50 + | } |
51 + | |
52 + | livecheck.type none |
32 53 | } |