# -*- 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
PortSystem 1.0
PortGroup python 1.0
name py-prompt_toolkit
version 2.0.9
revision 0
license BSD
platforms darwin
supported_archs noarch
maintainers {@xeron gmail.com:xeron.oskom} openmaintainer
description Library for building powerful interactive command lines in Python
long_description ${description}
python.versions 27 34 35 36 37
homepage https://pypi.python.org/pypi/${python.rootname}/
master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}
checksums rmd160 8399ff42d9cb70cbc1f73c6b375fc6bc7d508ca3 \
sha256 2519ad1d8038fd5fc8e770362237ad0364d16a7650fb5724af6997ed5515e3c1 \
size 348321
if {${name} ne ${subport}} {
if {${python.version} in "27 34"} {
version 1.0.15
revision 0
checksums rmd160 195e01e80e62e631f7c4b12d4f2cd5d4481a0752 \
sha256 858588f1983ca497f1cf4ffde01d978a3ea02b01c8a26a8bbc5cd2e66d816917 \
size 243734
}
distname ${python.rootname}-${version}
depends_build-append \
port:py${python.version}-setuptools
depends_lib-append \
port:py${python.version}-pygments \
port:py${python.version}-six \
port:py${python.version}-wcwidth
depends_test-append \
port:py${python.version}-pytest
test.run yes
test.cmd py.test-${python.branch}
test.target
test.env PYTHONPATH=${worksrcpath}/build/lib
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} LICENSE AUTHORS.rst \
README.rst CHANGELOG ${destroot}${docdir}
copy ${worksrcpath}/examples ${destroot}${docdir}/examples
}
livecheck.type none
}