/
Portfile
47 lines (35 loc) · 1.42 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# -*- 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-soxr
version 0.3.7
revision 0
categories-append audio
platforms {darwin any}
supported_archs noarch
license LGPL-2.1+
maintainers nomaintainer
description High quality, one-dimensional sample-rate conversion library for Python
long_description {*}${description}
homepage https://github.com/dofuuz/python-soxr
checksums rmd160 f2441bee743b8c598e49c19a87057ec9ba473431 \
sha256 436ddff00c6eb2c75b79c19cfdca7527b1e31b5fad738652f044045ba6258593 \
size 296432
python.versions 38 39 310 311 312
if {${name} ne ${subport}} {
depends_build-append \
path:bin/cython:py${python.version}-cython \
port:py${python.version}-setuptools_scm
depends_run-append \
port:py${python.version}-numpy
test.run yes
post-patch {
reinplace "s|oldest-supported-numpy|numpy|" ${worksrcpath}/pyproject.toml
}
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} LICENSE.txt README.md \
${destroot}${docdir}
}
}