aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaap Akkerhuis <jaap@NLnetLabs.nl>2022-11-22 23:36:48 +0000
committerGuangyuan Yang <ygy@FreeBSD.org>2022-11-22 23:36:48 +0000
commit5fa414e007da2a629cd622c09827d71512cfdca1 (patch)
tree89ce664efd5a279386ebda6df92ef70e80a99e87
parentf27f862129c466c0933693958ee256ae9eab6116 (diff)
downloadports-5fa414e007da2a629cd622c09827d71512cfdca1.tar.gz
ports-5fa414e007da2a629cd622c09827d71512cfdca1.zip
audio/py-pyaudio: Update to 0.2.12
-rw-r--r--audio/py-pyaudio/Makefile13
-rw-r--r--audio/py-pyaudio/distinfo6
-rw-r--r--audio/py-pyaudio/files/patch-setup.py24
3 files changed, 22 insertions, 21 deletions
diff --git a/audio/py-pyaudio/Makefile b/audio/py-pyaudio/Makefile
index bc6a96446a60..70643bd32fbe 100644
--- a/audio/py-pyaudio/Makefile
+++ b/audio/py-pyaudio/Makefile
@@ -1,6 +1,5 @@
PORTNAME= pyaudio
-PORTVERSION= 0.2.11
-PORTREVISION= 2
+PORTVERSION= 0.2.12
CATEGORIES= audio python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -14,8 +13,8 @@ LICENSE= MIT
LIB_DEPENDS= libportaudio.so:audio/portaudio
-USES= python:3.6+ gmake
-USE_PYTHON= distutils concurrent autoplist
+USES= gmake python:3.6+
+USE_PYTHON= autoplist concurrent distutils
MAKE_ENV= PYTHON=${PYTHON_CMD} \
SPHINX=sphinx-build-${PYTHON_VER}
@@ -31,10 +30,12 @@ post-patch:
${WRKSRC}/setup.py
post-build-DOCS-on:
- (cd ${BUILD_WRKSRC} && ${DO_MAKE_BUILD} docs)
+ (cd ${BUILD_WRKSRC} && \
+ ${DO_MAKE_BUILD} docs)
post-install-DOCS-on:
- (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name .buildinfo -and ! -path *doctrees*")
+ (cd ${WRKSRC}/docs && \
+ ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name .buildinfo -and ! -path *doctrees*")
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_portaudio*.so
diff --git a/audio/py-pyaudio/distinfo b/audio/py-pyaudio/distinfo
index 019cd30525b9..063e019063ab 100644
--- a/audio/py-pyaudio/distinfo
+++ b/audio/py-pyaudio/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1490086382
-SHA256 (PyAudio-0.2.11.tar.gz) = 93bfde30e0b64e63a46f2fd77e85c41fd51182a4a3413d9edfaf9ffaa26efb74
-SIZE (PyAudio-0.2.11.tar.gz) = 37428
+TIMESTAMP = 1668872490
+SHA256 (PyAudio-0.2.12.tar.gz) = 55ddf5db72bc537bba5f5dbca3ab9f0222ee5b842bda83978eab0b7b8f60fb9e
+SIZE (PyAudio-0.2.12.tar.gz) = 42944
diff --git a/audio/py-pyaudio/files/patch-setup.py b/audio/py-pyaudio/files/patch-setup.py
index 37be2151de14..872eba21d658 100644
--- a/audio/py-pyaudio/files/patch-setup.py
+++ b/audio/py-pyaudio/files/patch-setup.py
@@ -1,15 +1,15 @@
---- setup.py.orig 2015-10-19 05:48:12 UTC
+--- setup.py.orig 2022-07-19 03:53:30 UTC
+++ setup.py
-@@ -63,6 +63,12 @@ extra_link_args = []
- scripts = []
- defines = []
+@@ -56,6 +56,12 @@ def setup_extension():
+ extra_link_args = []
+ defines = []
-+if sys.platform.startswith('dragonfly') or \
-+ sys.platform.startswith('freebsd'):
-+ include_dirs = ['%%LOCALBASE%%/include/']
-+ external_libraries = []
-+ extra_link_args = ['%%LOCALBASE%%/lib/libportaudio.so']
++ if sys.platform.startswith('dragonfly') or \
++ sys.platform.startswith('freebsd'):
++ include_dirs = ['%%LOCALBASE%%/include/']
++ external_libraries = []
++ extra_link_args = ['%%LOCALBASE%%/lib/libportaudio.so']
+
- if sys.platform == 'darwin':
- defines += [('MACOSX', '1')]
- if mac_sysroot_path:
+ if sys.platform == 'darwin':
+ # Support only dynamic linking with portaudio, since the supported path
+ # is to install portaudio using a package manager (e.g., Homebrew).