source: trunk/dports/python/py-pyaudio/Portfile

Last change on this file was 148976, checked in by raimue@…, 16 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: 1.6 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
7name                    py-pyaudio
8set my_name             PyAudio
9version                 0.2.9
10categories-append       audio
11platforms               darwin
12maintainers             NLnetLabs.nl:jaap
13license                 MIT
14
15description             PyAudio provides Python bindings for PortAudio
16long_description        PyAudio provides Python bindings for PortAudio, \
17                        the cross-platform audio I/O library. With PyAudio, \
18                        you can easily use Python to play and record audio \
19                        on a variety of platforms.
20
21homepage                http://people.csail.mit.edu/hubert/pyaudio/
22
23master_sites            pypi:P/PyAudio/
24distname                ${my_name}-${version}
25
26checksums               rmd160  161e7b17b025ccf5b0925a34aa0f081ccd3651e9 \
27                        sha256  bfd694272b3d1efc51726d0c27650b3c3ba1345f7f8fdada7e86c9751ce0f2a1
28
29worksrcdir              PyAudio-${version}
30
31python.versions         27 34 35
32
33if {${name} ne ${subport}} {
34    depends_build       port:py${python.version}-setuptools
35    depends_lib-append  port:portaudio
36
37    patchfiles          patch-setup.py.diff
38    post-patch {
39        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
40    }
41
42    python.link_binaries no
43
44    livecheck.type      none
45} else {
46    livecheck.type      pypi
47    livecheck.name      ${my_name}
48}
Note: See TracBrowser for help on using the repository browser.