Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-accessibility/speech-dispatcher/
Date: Thu, 17 Dec 2015 15:42:54
Message-Id: 1450366941.330d0eb5549d0956bba5d44bbf1aebbfb2ade718.williamh@gentoo
1 commit: 330d0eb5549d0956bba5d44bbf1aebbfb2ade718
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 17 15:41:35 2015 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 17 15:42:21 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=330d0eb5
7
8 app-accessibility/speech-dispatcher: version bump
9
10 app-accessibility/speech-dispatcher/Manifest | 1 +
11 .../speech-dispatcher-0.8.3.ebuild | 109 +++++++++++++++++++++
12 2 files changed, 110 insertions(+)
13
14 diff --git a/app-accessibility/speech-dispatcher/Manifest b/app-accessibility/speech-dispatcher/Manifest
15 index 68a1f1b..7fffba5 100644
16 --- a/app-accessibility/speech-dispatcher/Manifest
17 +++ b/app-accessibility/speech-dispatcher/Manifest
18 @@ -1 +1,2 @@
19 DIST speech-dispatcher-0.8.1.tar.gz 1309969 SHA256 d25727239bbee4ee7881dd5e23e4da64a184b2ff3c8c9830088a671fb23b7757 SHA512 35f1ae547001a45d7945406ae5672829ff9ab6ac3f0cccb9eb3670dd92888a63c7cc4270ee90b5a166e6788afe3b117b5c3ef62c41a9df9f9af94dc4e0948fe8 WHIRLPOOL 945ef7ab1d771dc1e3727f223cfadfd309db03813f11fe995c0f4caf3a6f24bc9abc18e1f2f342b072bcd5fd0d626dae315f1fd0228d4172e051a2aba1255092
20 +DIST speech-dispatcher-0.8.3.tar.gz 1292321 SHA256 96a293b2ba1e2498f1280c75a9607891a9990947a8d87e9855c2a642c93f1e4f SHA512 48eaa1fb27a14ad6c6a1f214044fbddde85ff07e636355e75f4f3ac1e46cea0cbbbd2cb9ce01ce4b9cb27d5395d840bd38afd2c65ec0fabcc8787483ae7a7b67 WHIRLPOOL 606bee401a98c91aa34f071007cabc3d7ad5f2a5a9425a32d40a8cce75a4b13795b4877a42451be37ea14a68a008fc1e0e063d881c08a78dce41f3a800962fd1
21
22 diff --git a/app-accessibility/speech-dispatcher/speech-dispatcher-0.8.3.ebuild b/app-accessibility/speech-dispatcher/speech-dispatcher-0.8.3.ebuild
23 new file mode 100644
24 index 0000000..e7bd9e1
25 --- /dev/null
26 +++ b/app-accessibility/speech-dispatcher/speech-dispatcher-0.8.3.ebuild
27 @@ -0,0 +1,109 @@
28 +# Copyright 1999-2015 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +# $Id$
31 +
32 +EAPI=5
33 +
34 +PYTHON_COMPAT=( python3_3 python3_4 )
35 +
36 +inherit eutils python-r1
37 +
38 +DESCRIPTION="Speech synthesis interface"
39 +HOMEPAGE="http://www.freebsoft.org/speechd"
40 +SRC_URI="http://www.freebsoft.org/pub/projects/speechd/${P}.tar.gz"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
45 +IUSE="alsa ao +espeak flite nas pulseaudio python static-libs"
46 +
47 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
48 +
49 +COMMON_DEPEND="python? ( ${PYTHON_DEPS} )
50 + >=dev-libs/dotconf-1.3
51 + >=dev-libs/glib-2.28:2
52 + >=media-libs/libsndfile-1.0.2
53 + alsa? ( media-libs/alsa-lib )
54 + ao? ( media-libs/libao )
55 + espeak? ( app-accessibility/espeak )
56 + flite? ( app-accessibility/flite )
57 + nas? ( media-libs/nas )
58 + pulseaudio? ( media-sound/pulseaudio )"
59 +DEPEND="${COMMON_DEPEND}
60 + >=dev-util/intltool-0.40.0
61 + virtual/pkgconfig"
62 + RDEPEND="${COMMON_DEPEND}
63 + dev-python/pyxdg"
64 +
65 +src_configure() {
66 + local myeconfargs=(
67 + --disable-python
68 + $(use_enable static-libs static)
69 + $(use_with alsa)
70 + $(use_with ao libao)
71 + $(use_with espeak)
72 + $(use_with flite)
73 + $(use_with pulseaudio pulse)
74 + $(use_with nas)
75 + )
76 + econf ${myeconfargs[@]}
77 +}
78 +
79 +src_compile() {
80 + use python && python_copy_sources
81 +
82 + emake
83 +
84 + if use python; then
85 + building() {
86 + cd src/api/python || die
87 + emake \
88 + pyexecdir="$(python_get_sitedir)" \
89 + pythondir="$(python_get_sitedir)"
90 + }
91 + python_foreach_impl run_in_build_dir building
92 + fi
93 +}
94 +
95 +src_install() {
96 + emake DESTDIR="${D}" install
97 + dodoc ANNOUNCE AUTHORS BUGS ChangeLog FAQ NEWS README*
98 +
99 + prune_libtool_files --all
100 +
101 + if use python; then
102 + installation() {
103 + cd src/api/python || die
104 + emake \
105 + DESTDIR="${D}" \
106 + pyexecdir="$(python_get_sitedir)" \
107 + pythondir="$(python_get_sitedir)" \
108 + install
109 + }
110 + python_foreach_impl run_in_build_dir installation
111 + python_replicate_script "${ED}"/usr/bin/spd-conf
112 + fi
113 +}
114 +
115 +pkg_postinst() {
116 + local editconfig="n"
117 + if ! use espeak; then
118 + ewarn "You have disabled espeak, which is speech-dispatcher's"
119 + ewarn "default speech synthesizer."
120 + ewarn
121 + editconfig="y"
122 + fi
123 + if ! use pulseaudio; then
124 + ewarn "You have disabled pulseaudio support."
125 + ewarn "pulseaudio is speech-dispatcher's default audio subsystem."
126 + ewarn
127 + editconfig="y"
128 + fi
129 + if [[ "${editconfig}" == "y" ]]; then
130 + ewarn "You must edit ${EROOT}etc/speech-dispatcher/speechd.conf"
131 + ewarn "and make sure the settings there match your system."
132 + ewarn
133 + fi
134 + elog "For festival support, you need to"
135 + elog "install app-accessibility/festival-freebsoft-utils."
136 +}