Ticket #54894: Portfile-py-pyaudio.3.diff

File Portfile-py-pyaudio.3.diff, 2.6 KB (added by mf2k (Frank Schima), 6 years ago)
  • Portfile

    old new  
    55
    66name                    py-pyaudio
    77set my_name             PyAudio
    8 version                 0.2.9
     8version                 0.2.11
    99categories-append       audio
    1010platforms               darwin
    1111maintainers             NLnetLabs.nl:jaap
     
    1818                        on a variety of platforms.
    1919
    2020homepage                http://people.csail.mit.edu/hubert/pyaudio/
     21master_sites            https://pypi.python.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/
    2122
    22 master_sites            pypi:P/PyAudio/
    2323distname                ${my_name}-${version}
    2424
    25 checksums               rmd160  161e7b17b025ccf5b0925a34aa0f081ccd3651e9 \
    26                         sha256  bfd694272b3d1efc51726d0c27650b3c3ba1345f7f8fdada7e86c9751ce0f2a1
     25checksums               md5     7e4c88139284033f67b4336c74eda3b8 \
     26                        rmd160  7a6bb88f56622555e77eb799e4ee74ff970b6e92 \
     27                        sha256  93bfde30e0b64e63a46f2fd77e85c41fd51182a4a3413d9edfaf9ffaa26efb74
    2728
    2829worksrcdir              PyAudio-${version}
    2930
    30 python.versions         27 34 35
     31# This works but there must be a better to generate the documents
     32pre-build {
     33    build.cmd make
     34    build.type gnu
     35    build.target SPHINX=sphinx-build-${python.branch} docs
     36}
     37
     38python.versions         27 34 35 36
    3139
    3240if {${name} ne ${subport}} {
    33     depends_build       port:py${python.version}-setuptools
     41    depends_build-append \
     42                        port:py${python.version}-sphinx
     43
    3444    depends_lib-append  port:portaudio
    3545
    3646    patchfiles          patch-setup.py.diff
     
    4050
    4151    python.link_binaries no
    4252
     53    post-destroot {
     54        # Install example files not installed by the Makefile
     55        #file mkdir ${destroot}${prefix}/share/doc/${name}
     56        #file copy ${worksrcpath}/examples/ ${destroot}${prefix}/share/doc/${name}
     57        xinstall -m 640 {*}[glob ${worksrcpath}/examples/*] \
     58        ${destroot}${prefix}/share/doc/py${python.version}-pyaudio
     59   
     60        #file mkdir ${destroot}${prefix}/share/doc/${name}
     61        #file copy ${worksrcpath}/docs/ ${destroot}${prefix}/share/doc/${name}
     62        xinstall -m 640 {*}[glob ${worksrcpath}/docs/*] \
     63        ${destroot}${prefix}/share/doc/py${python.version}-pyaudio
     64    }
     65
    4366    livecheck.type      none
    4467} else {
    45     livecheck.type      pypi
    46     livecheck.name      ${my_name}
     68    livecheck.type      regex
     69    livecheck.url       [lindex ${master_sites} 0]
     70    livecheck.regex     pyaudio-(\[0-9.\]+)${extract.suffix}
    4771}