From nobody Tue Oct 25 19:17:15 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MxhXC3Dmbz4ggsV; Tue, 25 Oct 2022 19:17:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MxhXC2fNjz3RTJ; Tue, 25 Oct 2022 19:17:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666725435; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LkPUK3m8DMKiuj7YJ/dHaBF/T6oEqwDSlB5bubmDCKg=; b=i/0sZyHArzGuiju6n5dmhSLUIYitIgS8SylR2YEN9O6plNp4uhQVOHe3xgk7FE4/z0Wv0c liiVmFLIWgkccNivZXUOrPp6o5OhQzg4VTBiliVHwkNAzmRtvNexYYIjlwAbrCVXVQK0vm ErB/6FWeIOK6Ztc8Q1pqPWqcuVceRxbyzG40zHqdIrTj2JYIzb3B+sjVJjvW9UJlz99oSq S1ld8mSe6qv+2DybsHnEcvovIN201/vfPJENQ29XpsBGKkzqZUxfIkvcmQm8fLTKFaI1t8 GBBlfzMkeuumL50FtP/VFduKglO3zBAp6W1HwgyCze3IMQDGbM5VQMJihsqVfQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MxhXC1jpRzpT5; Tue, 25 Oct 2022 19:17:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 29PJHFBZ064388; Tue, 25 Oct 2022 19:17:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29PJHFoZ064387; Tue, 25 Oct 2022 19:17:15 GMT (envelope-from git) Date: Tue, 25 Oct 2022 19:17:15 GMT Message-Id: <202210251917.29PJHFoZ064387@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 74c7ab2091f1 - main - Add audio/py-pocketsphinx: Python interface to CMU Sphinxbase and Pocketsphinx libraries List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 74c7ab2091f110961bf4f7a4829c56ff7c75bdba Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666725435; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LkPUK3m8DMKiuj7YJ/dHaBF/T6oEqwDSlB5bubmDCKg=; b=PQmNYrMRvIRJxRNp6gUCaCil8ydQzy1X0k/NZIXM7v4fTdyz9WgcYy6O9jsU8WkUcbx8WH 75C2KtJnG/MpWkwHKKv3i/1wIo/NqseTcFaVB3pbE1E/bWqgQmG34sBjjrCdhiBzOsba4E UaUWHajyqTgAAEzdEhIQ/AAmegkl+TtEqfSSHbsIxoLpDD2DUXemZalJChT/agWsnGWrxQ mZ3HN65w//CuD7RWRWf7NWZTL1XOFzGbiq4vcSNqiepgKgBqxS48/SIh4pw689hGOfMWFW 48NBQ6T13TG9dyKL4cDS5M/JIgx86XwHbQ5qwYf6jTvGQ5AGG6WmbDe8X8lWiA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666725435; a=rsa-sha256; cv=none; b=clfhFH7i1e/ZN4d7u7u/tWIiu1xbCVCNTb5P7xdomqlA8Z+54bJTwqbGWn5iqhi44MMiTl svLRuGBYkgEFOY+4x3M3ch4OzRbE5Mj6cJcGufpNN+dy1bM/QhA1bi3P8sDOAB7mPW9FIF /yPRsl0p4ETil8nyrM4WJrvdirdYFuTl6lKVIyxUYwEzTTuB/rcScMy0R+HOKHqqwc4MpQ X5gtsenJDJ/kgMrKV/ImyUR9RO3xnMZl3stCFwPGG8F79FMpzFB0JcXvqHxCEw2a0RC3AS SNdFJ8nPQZzNs3/Vkl1Z9LR9yBXrO4h/onus6Xoko3F+Hw9Q1R3xEGw46F3HXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/ports/commit/?id=74c7ab2091f110961bf4f7a4829c56ff7c75bdba commit 74c7ab2091f110961bf4f7a4829c56ff7c75bdba Author: Jesús Daniel Colmenares Oviedo AuthorDate: 2022-09-23 19:03:34 +0000 Commit: Li-Wen Hsu CommitDate: 2022-10-25 19:16:28 +0000 Add audio/py-pocketsphinx: Python interface to CMU Sphinxbase and Pocketsphinx libraries Pocketsphinx is a part of the CMU Sphinx Open Source Toolkit For Speech Recognition. This package provides a python interface to CMU Sphinxbase and Pocketsphinx libraries created with SWIG and Setuptools. WWW: https://github.com/bambocher/pocketsphinx-python PR: 265766 --- audio/Makefile | 1 + audio/py-pocketsphinx/Makefile | 30 +++++++++++++++++++++++++++ audio/py-pocketsphinx/distinfo | 3 +++ audio/py-pocketsphinx/files/patch-setup.py | 20 ++++++++++++++++++ audio/py-pocketsphinx/pkg-descr | 5 +++++ audio/py-pocketsphinx/pkg-plist | 33 ++++++++++++++++++++++++++++++ 6 files changed, 92 insertions(+) diff --git a/audio/Makefile b/audio/Makefile index 07c82c120a7d..04051adbd70a 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -647,6 +647,7 @@ SUBDIR += py-musicbrainzngs SUBDIR += py-mutagen SUBDIR += py-opuslib + SUBDIR += py-pocketsphinx SUBDIR += py-pulsectl SUBDIR += py-pyacoustid SUBDIR += py-pyaudio diff --git a/audio/py-pocketsphinx/Makefile b/audio/py-pocketsphinx/Makefile new file mode 100644 index 000000000000..be33992ba3d2 --- /dev/null +++ b/audio/py-pocketsphinx/Makefile @@ -0,0 +1,30 @@ +PORTNAME= pocketsphinx +PORTVERSION= 0.1.15 +CATEGORIES= audio python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= DtxdF@disroot.org +COMMENT= Python interface to CMU Sphinxbase and Pocketsphinx libraries +WWW= https://github.com/bambocher/pocketsphinx-python + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= swig>0:devel/swig +LIB_DEPENDS= libasound.so:audio/alsa-lib \ + libpulse-simple.so:audio/pulseaudio \ + libpulse.so:audio/pulseaudio + +USES= python:3.8+ +USE_PYTHON= distutils + +CFLAGS+= -I${LOCALBASE}/include + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pocketsphinx/_pocketsphinx${PYTHON_EXT_SUFFIX}.so + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/sphinxbase/_ad_alsa${PYTHON_EXT_SUFFIX}.so + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/sphinxbase/_ad_pulse${PYTHON_EXT_SUFFIX}.so + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/sphinxbase/_sphinxbase${PYTHON_EXT_SUFFIX}.so + +.include diff --git a/audio/py-pocketsphinx/distinfo b/audio/py-pocketsphinx/distinfo new file mode 100644 index 000000000000..e16fa187cd85 --- /dev/null +++ b/audio/py-pocketsphinx/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1660023511 +SHA256 (pocketsphinx-0.1.15.tar.gz) = 34d290745c7dbe6fa2cac9815b5c19d10f393e528ecd70e779c21ebc448f9b63 +SIZE (pocketsphinx-0.1.15.tar.gz) = 29092634 diff --git a/audio/py-pocketsphinx/files/patch-setup.py b/audio/py-pocketsphinx/files/patch-setup.py new file mode 100644 index 000000000000..22bc3b4ecb77 --- /dev/null +++ b/audio/py-pocketsphinx/files/patch-setup.py @@ -0,0 +1,20 @@ +--- setup.py.orig 2022-08-09 05:49:06 UTC ++++ setup.py +@@ -120,7 +120,7 @@ elif sys.platform.startswith('darwin'): + '-Wno-sign-compare', + '-Wno-logical-op-parentheses' + ]) +-elif sys.platform.startswith('linux'): ++elif sys.platform.startswith('linux') or sys.platform.startswith('freebsd'): + sb_include_dirs.append('deps/sphinxbase/include/android') + extra_compile_args.extend([ + '-Wno-unused-label', +@@ -245,7 +245,7 @@ elif sys.platform.startswith('darwin'): + extra_link_args=extra_link_args + ) + ) +-elif sys.platform.startswith('linux'): ++elif sys.platform.startswith('linux') or sys.platform.startswith('freebsd'): + ext_modules.extend([ + Extension( + name='sphinxbase._ad_pulse', diff --git a/audio/py-pocketsphinx/pkg-descr b/audio/py-pocketsphinx/pkg-descr new file mode 100644 index 000000000000..03a95bb48bcf --- /dev/null +++ b/audio/py-pocketsphinx/pkg-descr @@ -0,0 +1,5 @@ +Pocketsphinx is a part of the CMU Sphinx Open Source Toolkit For +Speech Recognition. + +This package provides a python interface to CMU Sphinxbase and +Pocketsphinx libraries created with SWIG and Setuptools. diff --git a/audio/py-pocketsphinx/pkg-plist b/audio/py-pocketsphinx/pkg-plist new file mode 100644 index 000000000000..d62d44f201bc --- /dev/null +++ b/audio/py-pocketsphinx/pkg-plist @@ -0,0 +1,33 @@ +%%PYTHON_SITELIBDIR%%/pocketsphinx/__init__.py +%%PYTHON_SITELIBDIR%%/pocketsphinx/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/pocketsphinx/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/pocketsphinx/__pycache__/pocketsphinx%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/pocketsphinx/__pycache__/pocketsphinx%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/pocketsphinx/_pocketsphinx%%PYTHON_EXT_SUFFIX%%.so +%%PYTHON_SITELIBDIR%%/pocketsphinx/data/goforward.raw +%%PYTHON_SITELIBDIR%%/pocketsphinx/model/cmudict-en-us.dict +%%PYTHON_SITELIBDIR%%/pocketsphinx/model/en-us.lm.bin +%%PYTHON_SITELIBDIR%%/pocketsphinx/model/en-us/README +%%PYTHON_SITELIBDIR%%/pocketsphinx/model/en-us/feat.params +%%PYTHON_SITELIBDIR%%/pocketsphinx/model/en-us/mdef +%%PYTHON_SITELIBDIR%%/pocketsphinx/model/en-us/means +%%PYTHON_SITELIBDIR%%/pocketsphinx/model/en-us/noisedict +%%PYTHON_SITELIBDIR%%/pocketsphinx/model/en-us/sendump +%%PYTHON_SITELIBDIR%%/pocketsphinx/model/en-us/transition_matrices +%%PYTHON_SITELIBDIR%%/pocketsphinx/model/en-us/variances +%%PYTHON_SITELIBDIR%%/pocketsphinx/pocketsphinx.py +%%PYTHON_SITELIBDIR%%/sphinxbase/__init__.py +%%PYTHON_SITELIBDIR%%/sphinxbase/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/sphinxbase/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/sphinxbase/__pycache__/ad_alsa%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/sphinxbase/__pycache__/ad_alsa%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/sphinxbase/__pycache__/ad_pulse%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/sphinxbase/__pycache__/ad_pulse%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/sphinxbase/__pycache__/sphinxbase%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/sphinxbase/__pycache__/sphinxbase%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/sphinxbase/_ad_alsa%%PYTHON_EXT_SUFFIX%%.so +%%PYTHON_SITELIBDIR%%/sphinxbase/_ad_pulse%%PYTHON_EXT_SUFFIX%%.so +%%PYTHON_SITELIBDIR%%/sphinxbase/_sphinxbase%%PYTHON_EXT_SUFFIX%%.so +%%PYTHON_SITELIBDIR%%/sphinxbase/ad_alsa.py +%%PYTHON_SITELIBDIR%%/sphinxbase/ad_pulse.py +%%PYTHON_SITELIBDIR%%/sphinxbase/sphinxbase.py