# -*- 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
# $Id: Portfile 102768 2013-02-08 03:32:21Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-asn1
epoch               1
version             0.1.6
categories-append   devel crypto
license             BSD
maintainers         nomaintainer

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     24 25 26 27 31 32

platforms           darwin
supported_archs     noarch

homepage            http://pyasn1.sourceforge.net/
master_sites        sourceforge:project/pyasn1/pyasn1/${version}
distname            pyasn1-${version}

checksums           rmd160 92662bc5368844c10943467647eabeb4f1104905 \
                    sha256  dac7e6631a2c77a2f552514cf5e6d10e43036a880b7a1fe58978eaff12013e80

if {${name} != ${subport}} {
    post-destroot {
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} CHANGES LICENSE README THANKS TODO \
            ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath}/doc pyasn1-tutorial.html \
            ${destroot}${prefix}/share/doc/${subport}
    }
}

livecheck.type      regex
livecheck.url       http://sourceforge.net/project/showfiles.php?group_id=93839&package_id=148920
livecheck.regex     pyasn1-(\[-.0-9a-zA-Z_\]+)\\.tar\\.gz
