You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
fc12dd50c2
- drop py38, add py313 subport
49 lines
1.4 KiB
Tcl
49 lines
1.4 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 github 1.0
|
|
PortGroup python 1.0
|
|
|
|
github.setup saltstack libnacl 2.1.0 v
|
|
github.tarball_from archive
|
|
revision 0
|
|
name py-libnacl
|
|
|
|
categories-append net
|
|
supported_archs noarch
|
|
platforms {darwin any}
|
|
license Apache-2
|
|
maintainers nomaintainer
|
|
|
|
description Python binding for libsodium
|
|
long_description Libnacl is a Python binding for the libsodium NaCl crypto \
|
|
library.
|
|
|
|
checksums rmd160 cd14f14d2a67a2890e4d5b7fab0468beb19b7b1d \
|
|
sha256 4bef42f811f5c8d2509a34efd64e9028b223aa06fb52127cd4dad9301edde6f5 \
|
|
size 46400
|
|
|
|
python.versions 313
|
|
python.pep517_backend poetry
|
|
|
|
if {${name} ne ${subport}} {
|
|
depends_lib-append \
|
|
port:libsodium
|
|
|
|
patchfiles libsodium-path.patch
|
|
post-patch {
|
|
reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/libnacl/__init__.py
|
|
}
|
|
|
|
test.run yes
|
|
python.test_framework
|
|
test.cmd ${python.bin} tests/runtests.py
|
|
|
|
post-destroot {
|
|
set docdir ${prefix}/share/doc/${subport}
|
|
xinstall -d ${destroot}${docdir}
|
|
xinstall -m 0644 -W ${worksrcpath} LICENSE \
|
|
README.rst ${destroot}${docdir}
|
|
}
|
|
}
|