Skip to content

Commit

Permalink
audio/py-speechrecognition: Convert to USE_PYTHON=pep517
Browse files Browse the repository at this point in the history
- Bump PORTREVISION for package change
  • Loading branch information
sunpoet committed Mar 23, 2024
1 parent a11aff6 commit afa298e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion audio/py-speechrecognition/Makefile
@@ -1,5 +1,6 @@
PORTNAME= speechrecognition
PORTVERSION= 3.10.1
PORTREVISION= 1
MASTER_SITES= PYPI
CATEGORIES= audio python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -12,13 +13,15 @@ WWW= https://github.com/Uberi/speech_recognition
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= flac:audio/flac \
${PYTHON_PKGNAMEPREFIX}pyaudio>=0.2.11:audio/py-pyaudio@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.26.0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}

USES= python
USE_PYTHON= autoplist concurrent distutils
USE_PYTHON= autoplist concurrent pep517

NO_ARCH= yes

Expand Down
3 changes: 2 additions & 1 deletion audio/py-speechrecognition/files/patch-setup.py
Expand Up @@ -26,7 +26,8 @@
-
-
setup(
name="SpeechRecognition",
- name="SpeechRecognition",
+ name="speechrecognition",
version=speech_recognition.__version__,
packages=["speech_recognition"],
include_package_data=True,
Expand Down

0 comments on commit afa298e

Please sign in to comment.