Ticket #42821: Portfile

File Portfile, 2.1 KB (added by petrrr, 11 years ago)

Portfile for python/py-scikits-samplerate

Line 
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
4PortSystem          1.0
5PortGroup           python 1.0
6
7set _name           scikits.samplerate
8set _n              [string index ${_name} 0]
9
10name                py-scikits-samplerate
11version             0.3.3
12categories-append   science audio
13platforms           darwin
14supported_archs     noarch
15license             GPL
16
17maintainers         bo.ingv.it:Peter.Danecek openmaintainer
18
19description         A Python module for high quality audio resampling
20
21long_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
28homepage            https://pypi.python.org/pypi/${_name}/${version}
29
30distname            ${_name}-${version}
31master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
32
33checksums           md5     96c8d8ba3aa95a9db15994f78792efb4 \
34                    rmd160  8eec6aa95de1b064bdc2c3c86170aa26f686712f \
35                    sha256  05b06e729f58ab261a96f0d17e1b22733192c7450944762cceabce796ff77bdd
36
37python.versions     26 27
38
39livecheck.type  regex
40livecheck.url   [lindex ${master_sites} 0]
41livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
42
43if {${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 -${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}