source: trunk/dports/python/py-scikits-samplerate/Portfile

Last change on this file was 148976, checked in by raimue@…, 14 months ago

Mass update of python ports for master_sites pypi

The pypi hosting site changed the naming scheme for new uploads. While old URLs
continue to work, this possibly breaks updates as master_sites would need to be
changed. This patch updates all previously hardcoded references to
pypi.python.org to the pypi: mirror sites, which was already updated to check
at both the old and new location. See #51391.

Overriding maintainers as this is a mass update of ports.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
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: Portfile 148976 2016-05-24 07:48:05Z ryandesign@macports.org $
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         petr 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        pypi:${_n}/${_name}/
32
33checksums           md5     96c8d8ba3aa95a9db15994f78792efb4 \
34                    rmd160  8eec6aa95de1b064bdc2c3c86170aa26f686712f \
35                    sha256  05b06e729f58ab261a96f0d17e1b22733192c7450944762cceabce796ff77bdd
36
37python.versions     27
38
39if {${name} ne ${subport}} {
40    depends_build-append    port:py${python.version}-setuptools \
41                            port:py${python.version}-numpy
42
43    depends_lib-append      port:libsamplerate
44
45    # Adding documentation and examples
46    post-destroot {
47        set dest_doc ${destroot}${prefix}/share/doc/${subport}
48        xinstall -${dest_doc}
49        xinstall -m 755 -W ${worksrcpath} \
50            COPYING \
51            README \
52            Changelog \
53                ${dest_doc}
54
55        copy ${worksrcpath}/docs/html ${dest_doc}
56        copy ${worksrcpath}/docs/pdf  ${dest_doc}
57    }
58    livecheck.type  none
59} else {
60    livecheck.type  regex
61    livecheck.url   https://pypi.python.org/pypi/${_name}/json
62    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
63}
Note: See TracBrowser for help on using the repository browser.