# -*- 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
PortGroup           deprecated 1.0

name                py-yenc
version             0.4.0
revision            0
platforms           darwin
license             LGPL-2.1+
maintainers         nomaintainer
description         provides raw yEnc encoding/decoding with crc32 calculation
long_description    py-yenc provides (only) raw yEnc encoding/decoding \
                    with builitin crc32 calculation.

homepage            https://www.golug.it/yenc.html
checksums           rmd160  e7d67c29e90594500927dc5b8da19a972515ddd5 \
                    sha256  2c24a249d627af8ce1ca5a4b5bd237a34b6c859f71f55f0b09ed369f749fd4d9 \
                    size    64237

deprecated.upstream_support no

python.versions     27

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

    test.run        yes
    python.test_framework
    test.cmd        ${python.bin} test/test.py

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} CHANGES COPYING README TODO \
            ${destroot}${docdir}
        xinstall -m 0644 {*}[glob ${worksrcpath}/examples/*] \
                ${destroot}${docdir}/examples
    }
}
