diff options
author | Koop Mast <kwm@FreeBSD.org> | 2016-01-18 11:54:01 +0000 |
---|---|---|
committer | Koop Mast <kwm@FreeBSD.org> | 2016-01-18 11:54:01 +0000 |
commit | f34eabc21d15fcb39a8f61a02ac2d6e8b8b60f6b (patch) | |
tree | b9c2eb0e01e4d82d4d4d42cecc97862d43dfdcac /accessibility | |
parent | 593d2f3a3aa18d97792602ed389b5db8a692c144 (diff) | |
download | ports-f34eabc21d15fcb39a8f61a02ac2d6e8b8b60f6b.tar.gz ports-f34eabc21d15fcb39a8f61a02ac2d6e8b8b60f6b.zip |
Notes
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/Makefile | 1 | ||||
-rw-r--r-- | accessibility/py3-speech-dispatcher/Makefile | 16 | ||||
-rw-r--r-- | accessibility/py3-speech-dispatcher/pkg-plist | 24 | ||||
-rw-r--r-- | accessibility/speech-dispatcher/Makefile | 25 | ||||
-rw-r--r-- | accessibility/speech-dispatcher/pkg-plist | 23 |
5 files changed, 59 insertions, 30 deletions
diff --git a/accessibility/Makefile b/accessibility/Makefile index a690fc30f819..df5d89c7244c 100644 --- a/accessibility/Makefile +++ b/accessibility/Makefile @@ -32,6 +32,7 @@ SUBDIR += py-atspi SUBDIR += py-papi SUBDIR += py3-atspi + SUBDIR += py3-speech-dispatcher SUBDIR += qt4-accessible SUBDIR += redshift SUBDIR += rubygem-atk diff --git a/accessibility/py3-speech-dispatcher/Makefile b/accessibility/py3-speech-dispatcher/Makefile new file mode 100644 index 000000000000..affb313ea68c --- /dev/null +++ b/accessibility/py3-speech-dispatcher/Makefile @@ -0,0 +1,16 @@ +# $FreeBSD$ + +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +COMMENT= Common interface to speech synthesis python bindings + +SPEECH_SLAVE= yes + +MASTERDIR= ${.CURDIR}/../../accessibility/speech-dispatcher + +BUILD_WRKSRC= ${WRKSRC}/src/api/python +INSTALL_WRKSRC= ${WRKSRC}/src/api/python + +PLIST= ${.CURDIR}/pkg-plist + +.include "${MASTERDIR}/Makefile" diff --git a/accessibility/py3-speech-dispatcher/pkg-plist b/accessibility/py3-speech-dispatcher/pkg-plist new file mode 100644 index 000000000000..3c6880c82559 --- /dev/null +++ b/accessibility/py3-speech-dispatcher/pkg-plist @@ -0,0 +1,24 @@ +bin/spd-conf +%%PYTHON_SITELIBDIR%%/speechd/__init__.py +%%PYTHON_SITELIBDIR%%/speechd/__pycache__/__init__.cpython-%%PYVER%%.pyc +%%PYTHON_SITELIBDIR%%/speechd/__pycache__/__init__.cpython-%%PYVER%%.pyo +%%PYTHON_SITELIBDIR%%/speechd/__pycache__/_test.cpython-%%PYVER%%.pyc +%%PYTHON_SITELIBDIR%%/speechd/__pycache__/_test.cpython-%%PYVER%%.pyo +%%PYTHON_SITELIBDIR%%/speechd/__pycache__/client.cpython-%%PYVER%%.pyc +%%PYTHON_SITELIBDIR%%/speechd/__pycache__/client.cpython-%%PYVER%%.pyo +%%PYTHON_SITELIBDIR%%/speechd/__pycache__/paths.cpython-%%PYVER%%.pyc +%%PYTHON_SITELIBDIR%%/speechd/__pycache__/paths.cpython-%%PYVER%%.pyo +%%PYTHON_SITELIBDIR%%/speechd/_test.py +%%PYTHON_SITELIBDIR%%/speechd/client.py +%%PYTHON_SITELIBDIR%%/speechd/paths.py +%%PYTHON_SITELIBDIR%%/speechd_config/__init__.py +%%PYTHON_SITELIBDIR%%/speechd_config/__pycache__/__init__.cpython-%%PYVER%%.pyc +%%PYTHON_SITELIBDIR%%/speechd_config/__pycache__/__init__.cpython-%%PYVER%%.pyo +%%PYTHON_SITELIBDIR%%/speechd_config/__pycache__/config.cpython-%%PYVER%%.pyc +%%PYTHON_SITELIBDIR%%/speechd_config/__pycache__/config.cpython-%%PYVER%%.pyo +%%PYTHON_SITELIBDIR%%/speechd_config/__pycache__/paths.cpython-%%PYVER%%.pyc +%%PYTHON_SITELIBDIR%%/speechd_config/__pycache__/paths.cpython-%%PYVER%%.pyo +%%PYTHON_SITELIBDIR%%/speechd_config/config.py +%%PYTHON_SITELIBDIR%%/speechd_config/paths.py +share/sounds/speech-dispatcher/test.wav +%%DATADIR%%/conf/desktop/speechd.desktop diff --git a/accessibility/speech-dispatcher/Makefile b/accessibility/speech-dispatcher/Makefile index bd623ec8d34c..ef904afd37aa 100644 --- a/accessibility/speech-dispatcher/Makefile +++ b/accessibility/speech-dispatcher/Makefile @@ -2,6 +2,7 @@ PORTNAME= speech-dispatcher PORTVERSION= 0.8.3 +PORTREVISION= 1 CATEGORIES= accessibility audio MASTER_SITES= http://devel.freebsoft.org/pub/projects/speechd/ @@ -23,6 +24,10 @@ LDFLAGS+= -L${LOCALBASE}/lib USE_LDCONFIG= yes INSTALL_TARGET= install-strip +.if !defined(SPEECH_SLAVE) + +CONFIGURE_ARGS+=--disable-python + ETCFILES= clients/emacs.conf modules/pico-generic.conf \ modules/cicero.conf modules/dtk-generic.conf \ modules/epos-generic.conf modules/espeak-generic.conf \ @@ -35,8 +40,7 @@ PORTDOCS= ANNOUNCE AUTHORS ChangeLog FAQ NEWS README TODO INFO= spd-say speech-dispatcher speech-dispatcher-cs ssip -OPTIONS_DEFINE= ALSA AO DOCS ESPEAK FESTIVAL FLITE NAS \ - PULSEAUDIO PYTHON +OPTIONS_DEFINE= ALSA AO DOCS ESPEAK FESTIVAL FLITE NAS PULSEAUDIO OPTIONS_DEFAULT=ESPEAK OPTIONS_SUB= yes @@ -64,11 +68,6 @@ NAS_CONFIGURE_WITH= nas PULSEAUDIO_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio PULSEAUDIO_CONFIGURE_WITH=pulse -PYTHON_RUN_DEPENDS= ${PYTHON_SITELIBDIR}/xdg/__init__.py:${PORTSDIR}/devel/py3-xdg -PYTHON_USES= python:3 -PYTHON_USE= PYTHON=py3kplist -PYTHON_CONFIGURE_ENABLE=python - post-patch: @${REINPLACE_CMD} -e '/SUBDIRS/ s/tests//' \ ${WRKSRC}/src/Makefile.in @@ -82,4 +81,16 @@ post-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + +.else + +USES+= python:3 +LIB_DEPENDS+= libspeechd.so:${PORTSDIR}/accessibility/speech-dispatcher +RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/xdg/__init__.py:${PORTSDIR}/devel/py3-xdg + +USE_PYTHON= py3kplist +PLIST_SUB= PYVER=${PYTHON_VER:S|.||} + +.endif + .include <bsd.port.mk> diff --git a/accessibility/speech-dispatcher/pkg-plist b/accessibility/speech-dispatcher/pkg-plist index e6ed617cb43f..c93eec8e7b12 100644 --- a/accessibility/speech-dispatcher/pkg-plist +++ b/accessibility/speech-dispatcher/pkg-plist @@ -1,4 +1,3 @@ -%%PYTHON%%bin/spd-conf bin/spd-say bin/spdsend bin/speech-dispatcher @@ -26,27 +25,6 @@ lib/libspeechd.a lib/libspeechd.so lib/libspeechd.so.2 lib/libspeechd.so.2.6.0 -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd/__init__.py -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd/__init__.pyc -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd/__init__.pyo -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd/_test.py -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd/_test.pyc -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd/_test.pyo -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd/client.py -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd/client.pyc -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd/client.pyo -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd/paths.py -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd/paths.pyc -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd/paths.pyo -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd_config/__init__.py -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd_config/__init__.pyc -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd_config/__init__.pyo -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd_config/config.py -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd_config/config.pyc -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd_config/config.pyo -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd_config/paths.py -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd_config/paths.pyc -%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd_config/paths.pyo lib/speech-dispatcher-modules/sd_cicero lib/speech-dispatcher-modules/sd_dummy %%ESPEAK%%lib/speech-dispatcher-modules/sd_espeak @@ -67,4 +45,3 @@ libdata/pkgconfig/speech-dispatcher.pc share/locale/cs/LC_MESSAGES/speech-dispatcher.mo share/locale/hu/LC_MESSAGES/speech-dispatcher.mo share/sounds/speech-dispatcher/dummy-message.wav -%%PYTHON%%share/sounds/speech-dispatcher/test.wav |