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

github.setup        LudovicRousseau pyscard 2.2.1
name                py-pyscard
license             GPL
maintainers         {amake @amake} openmaintainer

description         Smartcard module for Python.
long_description    {*}${description}

homepage            https://pyscard.sourceforge.io/

checksums           rmd160  37bea975a8ace4b56d3a19366d74b7ff77672708 \
                    sha256  338be92f3143746d9b2635e70a1999d137358e62f4603c9bd459f53c6f90289a \
                    size    179418

python.versions     39 310 311 312

if {${name} ne ${subport}} {
    depends_lib-append \
        port:swig-python

    patchfiles-append  0001-Remove-requirement-provided-by-MacPorts.patch
    patch.pre_args-replace  -p0 -p1
}
