# -*- 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-pyscard
version             2.3.0
license             GPL
maintainers         {amake @amake} openmaintainer

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

homepage            https://pyscard.sourceforge.io/

checksums           rmd160  51f484378534738c43e8e26fd36b6eaa8e8648b8 \
                    sha256  621928e217e3b1d3c791086bf0c9f307fc4ae004a9b1a430536acc1a6eb50003 \
                    size    159897

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
}
