# -*- 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-pyrxp
version             2.2.0
revision            0

categories-append   devel
license             BSD
platforms           darwin
maintainers         {mcalhoun @MarcusCalhoun-Lopez} openmaintainer

description         Fast validating XML parser for python
long_description    {*}${description}

homepage            https://pypi.python.org/pypi/pyRXP
master_sites        pypi:p/pyRXP/:main
distfiles           pyRXP-${version}${extract.suffix}:main

master_sites-append https://bitbucket.org/rptlab/pyrxp/raw/796003193f0921d53f7005159d749919d6cc55df:license
distfiles-append    LICENSE.txt:license

extract.only        pyRXP-${version}${extract.suffix}

python.versions     27 39

checksums           pyRXP-${version}${extract.suffix} \
                    rmd160  22530f1bd477966d0083efc73547e48edb25f907 \
                    sha256  e70cdc9d45237e1e7996bfe21cedec2eec8f910c2d34dc46d77dbacb9cb329b6 \
                    size    256677

checksums-append    LICENSE.txt \
                    rmd160  a49c84f435cf6e53b51fef7eda7a15d8ad06a2e4 \
                    sha256  a02a6aeb5dde4c4194494bc0b10d5ed62a32628ccd2882c363fdb9a7874ab2b8 \
                    size    1707

post-extract {
    # avoid
    #    FileNotFoundError: [Errno 2] No such file or directory: 'LICENSE.txt'
    xinstall -m 0644 ${distpath}/LICENSE.txt ${worksrcpath}
}

universal_variant no
