# -*- 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

# apycot moved from 0.12.3 -> 0.99 but is a fundamentally incompatible change.  The newer versions
# should be put in a port called apycotbot
name                py-apycot
version             0.12.3
categories-append   devel
license             GPL-2+
platforms           darwin
supported_archs     noarch
maintainers         nomaintainer
description         automated pythonic code tester.
long_description    Apycot is an Automated Pythonic Code Tester. Use it to \
                    daily run your tests and generate reports about code or \
                    document quality.

homepage            https://www.logilab.org/projects/apycot/
master_sites        macports_distfiles
distname            apycot-${version}

checksums           md5     60e98754ee0cc69d5bb3d76817bfcde0 \
                    sha1    512b010827f58b26472618cefd8dc10651788ba9 \
                    rmd160  1652039cdd960424e18ab5aa575f4397c1596a11

deprecated.upstream_support no
livecheck.type      none

python.versions     27

if {${name} ne ${subport}} {
    post-destroot   {
        delete ${destroot}${prefix}/share/doc/${subport}
        copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${subport}
    }
}