[Midnightbsd-cvs] mports [19754] trunk/accessibility/speech-dispatcher: speech dispatcher 0.8.3
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Aug 16 14:26:45 EDT 2015
Revision: 19754
http://svnweb.midnightbsd.org/mports/?rev=19754
Author: laffer1
Date: 2015-08-16 14:26:45 -0400 (Sun, 16 Aug 2015)
Log Message:
-----------
speech dispatcher 0.8.3
Modified Paths:
--------------
trunk/accessibility/speech-dispatcher/Makefile
trunk/accessibility/speech-dispatcher/distinfo
trunk/accessibility/speech-dispatcher/files/patch-src__server__speechd.h
trunk/accessibility/speech-dispatcher/pkg-plist
Removed Paths:
-------------
trunk/accessibility/speech-dispatcher/files/patch-include__spd_utils.h
trunk/accessibility/speech-dispatcher/files/patch-src__common__spd_getline.c
trunk/accessibility/speech-dispatcher/files/patch-src__modules__cicero.c
trunk/accessibility/speech-dispatcher/files/patch-src__server__output.c
trunk/accessibility/speech-dispatcher/files/patch-src__server__sem_functions.c
trunk/accessibility/speech-dispatcher/files/patch-src__server__speaking.c
Modified: trunk/accessibility/speech-dispatcher/Makefile
===================================================================
--- trunk/accessibility/speech-dispatcher/Makefile 2015-08-13 22:52:49 UTC (rev 19753)
+++ trunk/accessibility/speech-dispatcher/Makefile 2015-08-16 18:26:45 UTC (rev 19754)
@@ -2,8 +2,7 @@
# $FreeBSD: head/accessibility/speech-dispatcher/Makefile 371241 2014-10-20 08:12:20Z marino $
PORTNAME= speech-dispatcher
-PORTVERSION= 0.8
-PORTREVISION= 2
+PORTVERSION= 0.8.3
CATEGORIES= accessibility audio
MASTER_SITES= http://devel.freebsoft.org/pub/projects/speechd/
@@ -17,7 +16,6 @@
libltdl.so:${PORTSDIR}/devel/libltdl \
libsndfile.so:${PORTSDIR}/audio/libsndfile
-# gnomehier is required because of share/sounds directory.
USE_GNOME= glib20 intltool
USES= alias gettext gmake pathfix pkgconfig libtool
GNU_CONFIGURE= yes
@@ -26,7 +24,7 @@
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
-ETCFILES= clients/emacs.conf clients/gnome-speech.conf \
+ETCFILES= clients/emacs.conf modules/pico-generic.conf \
modules/cicero.conf modules/dtk-generic.conf \
modules/epos-generic.conf modules/espeak-generic.conf \
modules/espeak-mbrola-generic.conf modules/espeak.conf \
@@ -34,13 +32,12 @@
modules/ivona.conf modules/llia_phon-generic.conf \
modules/swift-generic.conf speechd.conf
-PLIST_SUB+= ETCFILES="${ETCFILES}"
+PORTDOCS= ANNOUNCE AUTHORS ChangeLog FAQ NEWS README TODO
-PORTDOCS= AUTHORS ChangeLog FAQ INSTALL NEWS README TODO
+INFO= spd-say speech-dispatcher speech-dispatcher-cs ssip
-INFO= spd-say speech-dispatcher ssip
-
-OPTIONS_DEFINE= ALSA AO DOCS ESPEAK FESTIVAL FLITE NAS PULSEAUDIO #PYTHON
+OPTIONS_DEFINE= ALSA AO DOCS ESPEAK FESTIVAL FLITE NAS \
+ PULSEAUDIO PYTHON
OPTIONS_DEFAULT=ESPEAK
OPTIONS_SUB= yes
@@ -68,12 +65,10 @@
PULSEAUDIO_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio
PULSEAUDIO_CONFIGURE_WITH=pulse
-# devel/py-xdg doesn't support Python 3.
-CONFIGURE_ARGS+= --disable-python
-PLIST_SUB+= PYTHON="@comment "
-#PYTHON_RUN_DEPENDS= ${PYTHON_SITELIBDIR}/xdg/__init__.py:${PORTSDIR}/devel/py-xdg
-#PYTHON_USE= PYTHON=3
-#PYTHON_CONFIGURE_ENABLE=python
+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//' \
@@ -83,7 +78,9 @@
.for f in ${ETCFILES}
@${MV} ${ETCDIR}/${f} ${ETCDIR}/${f}.sample
.endfor
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
+ @${RM} -rf ${STAGEDIR}${DATADIR}/conf
+ @${RMDIR} ${STAGEDIR}${DATADIR} || ${TRUE}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
Modified: trunk/accessibility/speech-dispatcher/distinfo
===================================================================
--- trunk/accessibility/speech-dispatcher/distinfo 2015-08-13 22:52:49 UTC (rev 19753)
+++ trunk/accessibility/speech-dispatcher/distinfo 2015-08-16 18:26:45 UTC (rev 19754)
@@ -1,2 +1,2 @@
-SHA256 (speech-dispatcher-0.8.tar.gz) = 0a6ce544cfbac8592a8ea08e3ab24c389153904ea51c6fd68756cea52de9efa2
-SIZE (speech-dispatcher-0.8.tar.gz) = 1229312
+SHA256 (speech-dispatcher-0.8.3.tar.gz) = 96a293b2ba1e2498f1280c75a9607891a9990947a8d87e9855c2a642c93f1e4f
+SIZE (speech-dispatcher-0.8.3.tar.gz) = 1292321
Deleted: trunk/accessibility/speech-dispatcher/files/patch-include__spd_utils.h
===================================================================
--- trunk/accessibility/speech-dispatcher/files/patch-include__spd_utils.h 2015-08-13 22:52:49 UTC (rev 19753)
+++ trunk/accessibility/speech-dispatcher/files/patch-include__spd_utils.h 2015-08-16 18:26:45 UTC (rev 19754)
@@ -1,11 +0,0 @@
---- ./include/spd_utils.h.orig 2012-07-11 11:05:05.000000000 +0200
-+++ ./include/spd_utils.h 2013-11-15 08:46:53.865350816 +0100
-@@ -27,4 +27,8 @@
- #include <sys/types.h>
-
- ssize_t spd_getline(char **lineptr, size_t * n, FILE * f);
-+
-+ssize_t safe_read(int fd, void *buf, size_t count);
-+ssize_t safe_write(int fd, const void *buf, size_t count);
-+
- #endif /* SPD_UTILS_H */
Deleted: trunk/accessibility/speech-dispatcher/files/patch-src__common__spd_getline.c
===================================================================
--- trunk/accessibility/speech-dispatcher/files/patch-src__common__spd_getline.c 2015-08-13 22:52:49 UTC (rev 19753)
+++ trunk/accessibility/speech-dispatcher/files/patch-src__common__spd_getline.c 2015-08-16 18:26:45 UTC (rev 19754)
@@ -1,34 +0,0 @@
---- ./src/common/spd_getline.c.orig 2012-07-11 11:05:05.000000000 +0200
-+++ ./src/common/spd_getline.c 2013-11-15 11:25:07.125139008 +0100
-@@ -26,6 +26,7 @@
-
- #include <stdio.h>
- #include <stdlib.h>
-+#include <unistd.h>
- #include <errno.h>
- #include <limits.h>
- #include <glib.h>
-@@ -122,3 +123,23 @@
- }
- return buf_pos;
- }
-+
-+ssize_t
-+safe_read(int fd, void *buf, size_t count)
-+{
-+ ssize_t r;
-+ do {
-+ r = read(fd, buf, count);
-+ } while (r == -1 && errno == EINTR);
-+ return r;
-+}
-+
-+ssize_t
-+safe_write(int fd, const void *buf, size_t count)
-+{
-+ ssize_t w;
-+ do {
-+ w = write(fd, buf, count);
-+ } while (w == -1 && errno == EINTR);
-+ return w;
-+}
Deleted: trunk/accessibility/speech-dispatcher/files/patch-src__modules__cicero.c
===================================================================
--- trunk/accessibility/speech-dispatcher/files/patch-src__modules__cicero.c 2015-08-13 22:52:49 UTC (rev 19753)
+++ trunk/accessibility/speech-dispatcher/files/patch-src__modules__cicero.c 2015-08-16 18:26:45 UTC (rev 19754)
@@ -1,21 +0,0 @@
---- ./src/modules/cicero.c.orig 2012-07-11 11:05:05.000000000 +0200
-+++ ./src/modules/cicero.c 2013-11-15 08:51:41.687674164 +0100
-@@ -32,6 +32,7 @@
- #include <langinfo.h>
- #include <sys/stat.h>
- #include <semaphore.h>
-+#include <spd_utils.h>
-
- #include "module_utils.h"
-
-@@ -377,9 +378,7 @@
- break;
- }
- if (ret > 0)
-- TEMP_FAILURE_RETRY(read
-- (fd1[0], b,
-- 2));
-+ safe_read(fd1[0], b, 2);
- if (cicero_stop) {
- cicero_speaking = 0;
- module_report_event_stop();
Deleted: trunk/accessibility/speech-dispatcher/files/patch-src__server__output.c
===================================================================
--- trunk/accessibility/speech-dispatcher/files/patch-src__server__output.c 2015-08-13 22:52:49 UTC (rev 19753)
+++ trunk/accessibility/speech-dispatcher/files/patch-src__server__output.c 2015-08-16 18:26:45 UTC (rev 19754)
@@ -1,25 +0,0 @@
---- ./src/server/output.c.orig 2012-07-11 11:05:06.000000000 +0200
-+++ ./src/server/output.c 2013-11-15 11:18:27.066817985 +0100
-@@ -30,22 +30,9 @@
- #include "output.h"
- #include "parse.h"
-
--#ifdef TEMP_FAILURE_RETRY /* GNU libc */
--#define safe_write(fd, buf, count) TEMP_FAILURE_RETRY(write(fd, buf, count))
--#else /* TEMP_FAILURE_RETRY */
- #ifdef HAVE_UNISTD_H
- #include <unistd.h>
- #endif
--static inline ssize_t
--safe_write(int fd, const void *buf, size_t count) {
-- do {
-- ssize_t w = write(fd, buf, count);
--
-- if (w == -1 && errno == EINTR) continue;
-- return w;
-- } while (1);
--}
--#endif /* TEMP_FAILURE_RETRY */
-
- #if !(defined(__GLIBC__) && defined(_GNU_SOURCE))
- /* Added by Willie Walker - strndup is a gcc-ism
Deleted: trunk/accessibility/speech-dispatcher/files/patch-src__server__sem_functions.c
===================================================================
--- trunk/accessibility/speech-dispatcher/files/patch-src__server__sem_functions.c 2015-08-13 22:52:49 UTC (rev 19753)
+++ trunk/accessibility/speech-dispatcher/files/patch-src__server__sem_functions.c 2015-08-16 18:26:45 UTC (rev 19754)
@@ -1,18 +0,0 @@
---- ./src/server/sem_functions.c.orig 2012-07-11 11:05:06.000000000 +0200
-+++ ./src/server/sem_functions.c 2013-11-15 11:19:15.965146025 +0100
-@@ -28,13 +28,13 @@
-
- #include "speechd.h"
- #include "sem_functions.h"
-+#include <spd_utils.h>
-
- void speaking_semaphore_post(void)
- {
- char buf[1];
- buf[0] = 42;
-- const ssize_t wr_bytes =
-- TEMP_FAILURE_RETRY(write(speaking_pipe[1], buf, 1));
-+ const ssize_t wr_bytes = safe_write(speaking_pipe[1], buf, 1);
- if (wr_bytes != 1)
- FATAL("write to polled fd: could not write 1 byte");
- }
Deleted: trunk/accessibility/speech-dispatcher/files/patch-src__server__speaking.c
===================================================================
--- trunk/accessibility/speech-dispatcher/files/patch-src__server__speaking.c 2015-08-13 22:52:49 UTC (rev 19753)
+++ trunk/accessibility/speech-dispatcher/files/patch-src__server__speaking.c 2015-08-16 18:26:45 UTC (rev 19754)
@@ -1,22 +0,0 @@
---- ./src/server/speaking.c.orig 2012-07-11 11:05:06.000000000 +0200
-+++ ./src/server/speaking.c 2013-11-15 11:20:31.405951238 +0100
-@@ -39,6 +39,7 @@
- #include "output.h"
- #include "speaking.h"
- #include "sem_functions.h"
-+#include <spd_utils.h>
-
- TSpeechDMessage *current_message = NULL;
- static SPDPriority highest_priority = 0;
-@@ -87,10 +88,7 @@
- char buf[1];
- MSG(5,
- "wait_for_poll: activity in Speech Dispatcher");
-- const ssize_t rd_bytes =
-- TEMP_FAILURE_RETRY(read
-- (poll_fds[0].fd, buf,
-- 1));
-+ const ssize_t rd_bytes = safe_read(poll_fds[0].fd, buf, 1);
- if (rd_bytes != 1)
- FATAL
- ("read from polled fd: could not read 1 byte");
Modified: trunk/accessibility/speech-dispatcher/files/patch-src__server__speechd.h
===================================================================
--- trunk/accessibility/speech-dispatcher/files/patch-src__server__speechd.h 2015-08-13 22:52:49 UTC (rev 19753)
+++ trunk/accessibility/speech-dispatcher/files/patch-src__server__speechd.h 2015-08-16 18:26:45 UTC (rev 19754)
@@ -1,5 +1,5 @@
---- ./src/server/speechd.h.orig 2012-07-11 11:05:06.000000000 +0200
-+++ ./src/server/speechd.h 2013-11-15 08:44:05.115355454 +0100
+--- src/server/speechd.h.orig 2015-06-04 01:52:14 UTC
++++ src/server/speechd.h
@@ -56,7 +56,7 @@
/* TODO: This fixes compilation for Mac OS X but might not be a correct
solution for other platforms. A better check is needed, possibly including
@@ -6,6 +6,6 @@
_POSIX_C_SOURCE and friends*/
-#if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)) || defined(__APPLE__)
+#if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)) || defined(__APPLE__) || defined(__FreeBSD__)
- /* union semun is defined by including <sys/sem.h> */
+ /* union semun is defined by including <sys/sem.h> */
#else
- /* according to X/OPEN we have to define it ourselves */
+ /* according to X/OPEN we have to define it ourselves */
Modified: trunk/accessibility/speech-dispatcher/pkg-plist
===================================================================
--- trunk/accessibility/speech-dispatcher/pkg-plist 2015-08-13 22:52:49 UTC (rev 19753)
+++ trunk/accessibility/speech-dispatcher/pkg-plist 2015-08-16 18:26:45 UTC (rev 19754)
@@ -3,7 +3,6 @@
bin/spdsend
bin/speech-dispatcher
@sample %%ETCDIR%%/clients/emacs.conf.sample
- at sample %%ETCDIR%%/clients/gnome-speech.conf.sample
@sample %%ETCDIR%%/modules/cicero.conf.sample
@sample %%ETCDIR%%/modules/dtk-generic.conf.sample
@sample %%ETCDIR%%/modules/epos-generic.conf.sample
@@ -15,15 +14,18 @@
@sample %%ETCDIR%%/modules/ibmtts.conf.sample
@sample %%ETCDIR%%/modules/ivona.conf.sample
@sample %%ETCDIR%%/modules/llia_phon-generic.conf.sample
+ at sample %%ETCDIR%%/modules/pico-generic.conf.sample
@sample %%ETCDIR%%/modules/swift-generic.conf.sample
@sample %%ETCDIR%%/speechd.conf.sample
include/speech-dispatcher/libspeechd.h
+include/speech-dispatcher/libspeechd_version.h
include/speech-dispatcher/spd_audio_plugin.h
+include/speech-dispatcher/speechd_defines.h
include/speech-dispatcher/speechd_types.h
lib/libspeechd.a
lib/libspeechd.so
lib/libspeechd.so.2
-lib/libspeechd.so.2.4.0
+lib/libspeechd.so.2.6.0
%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd/__init__.py
%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd/__init__.pyc
%%PYTHON%%%%PYTHON_SITELIBDIR%%/speechd/__init__.pyo
@@ -66,18 +68,3 @@
share/locale/hu/LC_MESSAGES/speech-dispatcher.mo
share/sounds/speech-dispatcher/dummy-message.wav
%%PYTHON%%share/sounds/speech-dispatcher/test.wav
-%%DATADIR%%/conf/clients/emacs.conf
-%%DATADIR%%/conf/clients/gnome-speech.conf
-%%DATADIR%%/conf/modules/cicero.conf
-%%DATADIR%%/conf/modules/dtk-generic.conf
-%%DATADIR%%/conf/modules/epos-generic.conf
-%%DATADIR%%/conf/modules/espeak-generic.conf
-%%DATADIR%%/conf/modules/espeak-mbrola-generic.conf
-%%DATADIR%%/conf/modules/espeak.conf
-%%DATADIR%%/conf/modules/festival.conf
-%%DATADIR%%/conf/modules/flite.conf
-%%DATADIR%%/conf/modules/ibmtts.conf
-%%DATADIR%%/conf/modules/ivona.conf
-%%DATADIR%%/conf/modules/llia_phon-generic.conf
-%%DATADIR%%/conf/modules/swift-generic.conf
-%%DATADIR%%/conf/speechd.conf
More information about the Midnightbsd-cvs
mailing list