# -*- 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-asn1
python.rootname     pyasn1
version             0.6.3
revision            0

categories-append   devel crypto
platforms           {darwin any}
supported_archs     noarch
license             BSD
maintainers         nomaintainer

homepage            https://github.com/pyasn1/pyasn1

description         Implementation of ASN.1 types and codecs in Python
long_description    This project is dedicated to implementation of ASN.1 \
                    types (concrete syntax) and codecs (transfer syntaxes) \
                    for Python programming environment.

python.versions     27 310 311 312 313 314

checksums           rmd160  a3b8f63ddae1ad15febc2ce96914cefb3ec1aeb2 \
                    sha256  697a8ecd6d98891189184ca1fa05d1bb00e2f84b5977c481452050549c8a72cf \
                    size    148685

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools

    if {${python.version} == 27} {
        version     0.5.1
        revision    0
        epoch       1
        checksums   rmd160  ec09ff726d54417b6a60ab3cc5e617f737e7ce0a \
                    sha256  6d391a96e59b23130a5cfa74d6fd7f388dbbe26cc8f1edf39fdddf08d9d6676c \
                    size    147134
    }

    post-destroot {
        xinstall -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 -W ${worksrcpath} CHANGES.rst LICENSE.rst README.md TODO.rst \
            ${destroot}${prefix}/share/doc/${subport}
    }

    test.run            yes
}
