1 | # -*- 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 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | |
---|
7 | set _name scikits.samplerate |
---|
8 | set _n [string index ${_name} 0] |
---|
9 | |
---|
10 | name py-scikits-samplerate |
---|
11 | version 0.3.3 |
---|
12 | categories-append science audio |
---|
13 | platforms darwin |
---|
14 | supported_archs noarch |
---|
15 | license GPL |
---|
16 | |
---|
17 | maintainers bo.ingv.it:Peter.Danecek openmaintainer |
---|
18 | |
---|
19 | description A Python module for high quality audio resampling |
---|
20 | |
---|
21 | long_description \ |
---|
22 | Samplerate is a small python package to do high quality audio resampling \ |
---|
23 | for data in numpy arrays. It is a wrapper around the Secret Rabbit Code \ |
---|
24 | by Erik de Castro Lopo (http://www.mega-nerd.com/SRC/), providing a high \ |
---|
25 | quality converters based on the work of J.O. Smith from CCRMA, Stanford \ |
---|
26 | University (https://ccrma.stanford.edu/~jos/resample/) |
---|
27 | |
---|
28 | homepage https://pypi.python.org/pypi/${_name}/${version} |
---|
29 | |
---|
30 | distname ${_name}-${version} |
---|
31 | master_sites https://pypi.python.org/packages/source/${_n}/${_name}/ |
---|
32 | |
---|
33 | checksums md5 96c8d8ba3aa95a9db15994f78792efb4 \ |
---|
34 | rmd160 8eec6aa95de1b064bdc2c3c86170aa26f686712f \ |
---|
35 | sha256 05b06e729f58ab261a96f0d17e1b22733192c7450944762cceabce796ff77bdd |
---|
36 | |
---|
37 | python.versions 26 27 |
---|
38 | |
---|
39 | livecheck.type regex |
---|
40 | livecheck.url [lindex ${master_sites} 0] |
---|
41 | livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<" |
---|
42 | |
---|
43 | if {${name} ne ${subport}} { |
---|
44 | depends_build-append port:py${python.version}-setuptools \ |
---|
45 | port:py${python.version}-numpy |
---|
46 | |
---|
47 | depends_lib-append port:libsamplerate |
---|
48 | |
---|
49 | # Adding documentation and examples |
---|
50 | post-destroot { |
---|
51 | set dest_doc ${destroot}${prefix}/share/doc/${subport} |
---|
52 | xinstall -d ${dest_doc} |
---|
53 | xinstall -m 755 -W ${worksrcpath} \ |
---|
54 | COPYING \ |
---|
55 | README \ |
---|
56 | Changelog \ |
---|
57 | ${dest_doc} |
---|
58 | |
---|
59 | copy ${worksrcpath}/docs/html ${dest_doc} |
---|
60 | copy ${worksrcpath}/docs/pdf ${dest_doc} |
---|
61 | } |
---|
62 | livecheck.type none |
---|
63 | } |
---|