Files
2026-03-27 15:11:41 -04:00

57 lines
1.8 KiB
Tcl

# -*- 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-asn1-modules
python.rootname pyasn1-modules
version 0.4.2
revision 0
categories-append devel crypto
platforms {darwin any}
supported_archs noarch
license BSD
maintainers nomaintainer
description A collection of ASN.1-based protocols modules.
long_description This is a small but growing collection of ASN.1 \
data structures expressed in Python terms using pyasn1 data model.
homepage https://github.com/etingof/pyasn1-modules
distname pyasn1_modules-${version}
checksums rmd160 ceb5fcbd9d591f3c4481f4c812912f70b477ec3b \
sha256 677091de870a80aae844b1ca6134f54652fa2c8c5a52aa396440ac3106e941e6 \
size 307892
python.versions 27 310 311 312 313 314
if {${name} ne ${subport}} {
depends_lib-append \
port:py${python.version}-asn1
if {${python.version} == 27} {
version 0.3.0
revision 0
checksums rmd160 33092910bbb0a86b264e0501c00530c6882e72ca \
sha256 5bd01446b736eb9d31512a30d46c1ac3395d676c6f3cafa4c03eb54b9925631c \
size 307901
depends_build-append \
port:py${python.version}-setuptools
} else {
test.run yes
python.test_framework unittest
}
distname pyasn1_modules-${version}
post-destroot {
xinstall -d ${destroot}${prefix}/share/doc/${subport}
xinstall -m 644 -W ${worksrcpath} CHANGES.txt LICENSE.txt README.md \
${destroot}${prefix}/share/doc/${subport}
}
}