# -*- 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.1
license             GPL
maintainers         {amake @amake} openmaintainer

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

homepage            https://pyscard.sourceforge.io/

checksums           rmd160  27185a623a92f0f85dcd1d87f811c6778430153b \
                    sha256  a24356f57a0a950740b6e54f51f819edd5296ee8892a6625b0da04724e9e6c13 \
                    size    160650

python.versions     310 311 312 313 314

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
}
