svn commit: r460952 - in head/audio: . py-sounddevice
Yuri Victorovich
yuri at FreeBSD.org
Sun Feb 4 22:33:07 UTC 2018
Author: yuri
Date: Sun Feb 4 22:33:06 2018
New Revision: 460952
URL: https://svnweb.freebsd.org/changeset/ports/460952
Log:
New port: audio/py-sounddevice: Play and record sound through OSS in python programs
See usage examples here:
http://python-sounddevice.readthedocs.io/en/0.3.10/#usage
Approved by: adamw (mentor)
Differential Revision: https://reviews.freebsd.org/D14199
Added:
head/audio/py-sounddevice/
head/audio/py-sounddevice/Makefile (contents, props changed)
head/audio/py-sounddevice/distinfo (contents, props changed)
head/audio/py-sounddevice/pkg-descr (contents, props changed)
Modified:
head/audio/Makefile
Modified: head/audio/Makefile
==============================================================================
--- head/audio/Makefile Sun Feb 4 21:52:37 2018 (r460951)
+++ head/audio/Makefile Sun Feb 4 22:33:06 2018 (r460952)
@@ -680,6 +680,7 @@
SUBDIR += py-pysndfile
SUBDIR += py-shout
SUBDIR += py-soundcloud
+ SUBDIR += py-sounddevice
SUBDIR += py-soundscrape
SUBDIR += py-speechrecognition
SUBDIR += py-speex
Added: head/audio/py-sounddevice/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/audio/py-sounddevice/Makefile Sun Feb 4 22:33:06 2018 (r460952)
@@ -0,0 +1,29 @@
+# $FreeBSD$
+
+PORTNAME= sounddevice
+PORTVERSION= 0.3.10
+CATEGORIES= audio python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri at FreeBSD.org
+COMMENT= Play and record sound through OSS in python programs
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${FLAVOR} \
+ ${PYNUMPY} \
+ portaudio>0:audio/portaudio
+
+USES= python
+USE_PYTHON= distutils autoplist
+NO_ARCH= yes
+
+post-install: # workaround for https://github.com/spatialaudio/python-sounddevice/issues/116
+ @${GREP} "/sounddevice\." < ${_PYTHONPKGLIST} \
+ | ${SED} -e 's|/sounddevice\.|/_sounddevice.|' \
+ >> ${_PYTHONPKGLIST}
+
+.include <bsd.port.mk>
Added: head/audio/py-sounddevice/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/audio/py-sounddevice/distinfo Sun Feb 4 22:33:06 2018 (r460952)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1516010801
+SHA256 (sounddevice-0.3.10.tar.gz) = 6a972db105b11a570b454c0b92b5d37ead46829ce71a278b148ec6479209ad9f
+SIZE (sounddevice-0.3.10.tar.gz) = 46411
Added: head/audio/py-sounddevice/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/audio/py-sounddevice/pkg-descr Sun Feb 4 22:33:06 2018 (r460952)
@@ -0,0 +1,7 @@
+sounddevice provides bindings for the PortAudio library and a few convenience
+functions to play and record NumPy arrays containing audio signals.
+
+It is primarily intended for use in signal analysis software.
+PortAudio plays and records sound through the OSS audio interface.
+
+WWW: https://github.com/spatialaudio/python-sounddevice
More information about the svn-ports-head
mailing list