View | Details | Raw Unified | Return to bug 265766 | Differences between
and this patch

Collapse All | Expand All

(-)b/audio/py-pocketsphinx/Makefile (+30 lines)
Added Link Here
1
PORTNAME=	pocketsphinx
2
PORTVERSION=	0.1.15
3
CATEGORIES=	audio python
4
MASTER_SITES=	CHEESESHOP
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
6
7
MAINTAINER=	DtxdF@disroot.org
8
COMMENT=	Python interface to CMU Sphinxbase and Pocketsphinx libraries
9
WWW=	https://github.com/bambocher/pocketsphinx-python
10
11
LICENSE=	BSD2CLAUSE
12
LICENSE_FILE=	${WRKSRC}/LICENSE
13
14
BUILD_DEPENDS=	swig>0:devel/swig
15
LIB_DEPENDS=	libasound.so:audio/alsa-lib \
16
		libpulse-simple.so:audio/pulseaudio \
17
		libpulse.so:audio/pulseaudio
18
19
USES=	python:3.8+
20
USE_PYTHON=	distutils
21
22
CFLAGS+=	-I${LOCALBASE}/include
23
24
post-install:
25
	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pocketsphinx/_pocketsphinx${PYTHON_EXT_SUFFIX}.so
26
	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/sphinxbase/_ad_alsa${PYTHON_EXT_SUFFIX}.so
27
	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/sphinxbase/_ad_pulse${PYTHON_EXT_SUFFIX}.so
28
	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/sphinxbase/_sphinxbase${PYTHON_EXT_SUFFIX}.so
29
30
.include <bsd.port.mk>
(-)b/audio/py-pocketsphinx/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1660023511
2
SHA256 (pocketsphinx-0.1.15.tar.gz) = 34d290745c7dbe6fa2cac9815b5c19d10f393e528ecd70e779c21ebc448f9b63
3
SIZE (pocketsphinx-0.1.15.tar.gz) = 29092634
(-)b/audio/py-pocketsphinx/files/patch-setup.py (+20 lines)
Added Link Here
1
--- setup.py.orig	2022-08-09 05:49:06 UTC
2
+++ setup.py
3
@@ -120,7 +120,7 @@ elif sys.platform.startswith('darwin'):
4
         '-Wno-sign-compare',
5
         '-Wno-logical-op-parentheses'
6
     ])
7
-elif sys.platform.startswith('linux'):
8
+elif sys.platform.startswith('linux') or sys.platform.startswith('freebsd'):
9
     sb_include_dirs.append('deps/sphinxbase/include/android')
10
     extra_compile_args.extend([
11
         '-Wno-unused-label',
12
@@ -245,7 +245,7 @@ elif sys.platform.startswith('darwin'):
13
             extra_link_args=extra_link_args
14
         )
15
     )
16
-elif sys.platform.startswith('linux'):
17
+elif sys.platform.startswith('linux') or sys.platform.startswith('freebsd'):
18
     ext_modules.extend([
19
         Extension(
20
             name='sphinxbase._ad_pulse',
(-)b/audio/py-pocketsphinx/pkg-descr (+5 lines)
Added Link Here
1
Pocketsphinx is a part of the CMU Sphinx Open Source Toolkit For
2
Speech Recognition.
3
4
This package provides a python interface to CMU Sphinxbase and
5
Pocketsphinx libraries created with SWIG and Setuptools.
(-)b/audio/py-pocketsphinx/pkg-plist (-1 / +33 lines)
Added Link Here
0
- 
1
%%PYTHON_SITELIBDIR%%/pocketsphinx/__init__.py
2
%%PYTHON_SITELIBDIR%%/pocketsphinx/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
3
%%PYTHON_SITELIBDIR%%/pocketsphinx/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc
4
%%PYTHON_SITELIBDIR%%/pocketsphinx/__pycache__/pocketsphinx%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
5
%%PYTHON_SITELIBDIR%%/pocketsphinx/__pycache__/pocketsphinx%%PYTHON_EXT_SUFFIX%%.pyc
6
%%PYTHON_SITELIBDIR%%/pocketsphinx/_pocketsphinx%%PYTHON_EXT_SUFFIX%%.so
7
%%PYTHON_SITELIBDIR%%/pocketsphinx/data/goforward.raw
8
%%PYTHON_SITELIBDIR%%/pocketsphinx/model/cmudict-en-us.dict
9
%%PYTHON_SITELIBDIR%%/pocketsphinx/model/en-us.lm.bin
10
%%PYTHON_SITELIBDIR%%/pocketsphinx/model/en-us/README
11
%%PYTHON_SITELIBDIR%%/pocketsphinx/model/en-us/feat.params
12
%%PYTHON_SITELIBDIR%%/pocketsphinx/model/en-us/mdef
13
%%PYTHON_SITELIBDIR%%/pocketsphinx/model/en-us/means
14
%%PYTHON_SITELIBDIR%%/pocketsphinx/model/en-us/noisedict
15
%%PYTHON_SITELIBDIR%%/pocketsphinx/model/en-us/sendump
16
%%PYTHON_SITELIBDIR%%/pocketsphinx/model/en-us/transition_matrices
17
%%PYTHON_SITELIBDIR%%/pocketsphinx/model/en-us/variances
18
%%PYTHON_SITELIBDIR%%/pocketsphinx/pocketsphinx.py
19
%%PYTHON_SITELIBDIR%%/sphinxbase/__init__.py
20
%%PYTHON_SITELIBDIR%%/sphinxbase/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
21
%%PYTHON_SITELIBDIR%%/sphinxbase/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc
22
%%PYTHON_SITELIBDIR%%/sphinxbase/__pycache__/ad_alsa%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
23
%%PYTHON_SITELIBDIR%%/sphinxbase/__pycache__/ad_alsa%%PYTHON_EXT_SUFFIX%%.pyc
24
%%PYTHON_SITELIBDIR%%/sphinxbase/__pycache__/ad_pulse%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
25
%%PYTHON_SITELIBDIR%%/sphinxbase/__pycache__/ad_pulse%%PYTHON_EXT_SUFFIX%%.pyc
26
%%PYTHON_SITELIBDIR%%/sphinxbase/__pycache__/sphinxbase%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
27
%%PYTHON_SITELIBDIR%%/sphinxbase/__pycache__/sphinxbase%%PYTHON_EXT_SUFFIX%%.pyc
28
%%PYTHON_SITELIBDIR%%/sphinxbase/_ad_alsa%%PYTHON_EXT_SUFFIX%%.so
29
%%PYTHON_SITELIBDIR%%/sphinxbase/_ad_pulse%%PYTHON_EXT_SUFFIX%%.so
30
%%PYTHON_SITELIBDIR%%/sphinxbase/_sphinxbase%%PYTHON_EXT_SUFFIX%%.so
31
%%PYTHON_SITELIBDIR%%/sphinxbase/ad_alsa.py
32
%%PYTHON_SITELIBDIR%%/sphinxbase/ad_pulse.py
33
%%PYTHON_SITELIBDIR%%/sphinxbase/sphinxbase.py

Return to bug 265766