diff options
Diffstat (limited to 'app-accessibility/espeakup')
-rw-r--r-- | app-accessibility/espeakup/Manifest | 8 | ||||
-rw-r--r-- | app-accessibility/espeakup/espeakup-0.71-r1.ebuild | 58 | ||||
-rw-r--r-- | app-accessibility/espeakup/espeakup-0.80.ebuild | 62 | ||||
-rw-r--r-- | app-accessibility/espeakup/espeakup-9999.ebuild | 62 | ||||
-rw-r--r-- | app-accessibility/espeakup/files/espeakup.confd | 9 | ||||
-rw-r--r-- | app-accessibility/espeakup/files/espeakup.rc | 12 | ||||
-rw-r--r-- | app-accessibility/espeakup/metadata.xml | 18 |
7 files changed, 229 insertions, 0 deletions
diff --git a/app-accessibility/espeakup/Manifest b/app-accessibility/espeakup/Manifest new file mode 100644 index 000000000000..4fd53fd762f4 --- /dev/null +++ b/app-accessibility/espeakup/Manifest @@ -0,0 +1,8 @@ +AUX espeakup.confd 256 BLAKE2B 1fc5aed1a603d19a7dcddaae05eb00dfe8651993c1f31dfb5a7db0737c24cc75f284dd313b7e1abd2c2841d408f7a719124aac91eb974a5b1e9ae00be4abf6a3 SHA512 aebd97c63dbeae5025bf54f39bb3e7d97822a2b1b369e40b013c5c7da2eba968adf48800f62ef14541ca22ed3f3dfcbdb63b2a3d7f45975ae8bddfea0a42d931 +AUX espeakup.rc 284 BLAKE2B 9cbc247d542afa3ed7cc8be816a96cca7673b5af0f30f91c91ecde838b31311371b69ad02d195fbc41973d58844eefd997b83aa5f329bd3f1ec9d74ada55e05a SHA512 411e984074260d1a5e7cbf80ff4db7e16d7b5cca48a5e82491bc775c962636da1cefc79527921d8546056b969b8368a6c157833e27bb0e4e6aae48596225b747 +DIST espeakup-0.71.tar.bz2 24663 BLAKE2B b5cae80e7a6d45e599dd03680da398cc9db8eb98d0140d8e71aa5047607484401c3906386627810e3ff78a244c9c0e16383675fdd845802225fdb32c8b2a3dbd SHA512 01091560cd4843897fa6925a54b4c856fe57ed5728ddc0c091c93b1ae14eb2f4d07ab2247e40bd5a5968cc22ee3696abfe1b28f67b95aa7ab61e33667c51135d +DIST espeakup-0.80.tar.gz 39626 BLAKE2B f36d9776b954e73fd2bc33c7ba97dd323184480549b667ac2afc4dc40a8b98089b8ced16e8b1cb33e6b4c586df27a8d6f782236ef8770bc98a530665e257edcf SHA512 1b7e2bd46c3c13a5305746d2d2810ec94a8660f561e4f679ee4779be1b22178f8ac7de42d626d649710509f7b087b9a2f94608bde203d1bcd6d353229ed9ff83 +EBUILD espeakup-0.71-r1.ebuild 1650 BLAKE2B e5032e2a1b412ddf5f0f3a83fc1493c0bb01bf0ea9da62a6301c49f6cf44deae5e5d8f870f106c26908544394500d201f63ab8bc5992fb404984605d4e037bc5 SHA512 5c464c9eddac8d44fb2cf3488c9b64cea14b1aaca37216c23085d76f41015ea39aa5bad334c81802aef182009aa6e755936a76788540c5a298573a9b627ab48d +EBUILD espeakup-0.80.ebuild 1793 BLAKE2B 942b6e71215b319d1f222c11e395e2154d1a860ae0efca1623c9203a1f44fee49553950532d453804d996b5d466cefd0894823fad2eb4e31b4c3c1022ed3cd88 SHA512 f17b4b9779d724ce1711f29eb1164a225ce212ad11f11d6e2f5fe98ddccb805c68d8c2bd98b509f9911e5a30f365091c4a3cb83b23055257a5bae1ca6062a7ba +EBUILD espeakup-9999.ebuild 1793 BLAKE2B 942b6e71215b319d1f222c11e395e2154d1a860ae0efca1623c9203a1f44fee49553950532d453804d996b5d466cefd0894823fad2eb4e31b4c3c1022ed3cd88 SHA512 f17b4b9779d724ce1711f29eb1164a225ce212ad11f11d6e2f5fe98ddccb805c68d8c2bd98b509f9911e5a30f365091c4a3cb83b23055257a5bae1ca6062a7ba +MISC metadata.xml 598 BLAKE2B 14ae31982e49a4a506ebbe1db0a645fd1de6e7ef8441aa46a3f2a758108c9bdee3e5a58239c9148ac252f068185654f31c7e0267d38ca75d902746de73af7239 SHA512 41a8a023e62a5c3c286fcda70d55c4e3f999703ad021681cbe5f2441057e74e486d92ef023f969e0146d19131b9a73453b2f0dad06c308bb2f3a9123bfa54a48 diff --git a/app-accessibility/espeakup/espeakup-0.71-r1.ebuild b/app-accessibility/espeakup/espeakup-0.71-r1.ebuild new file mode 100644 index 000000000000..6d8dbfdadf20 --- /dev/null +++ b/app-accessibility/espeakup/espeakup-0.71-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit linux-info + +DESCRIPTION="espeakup is a small lightweight connector for espeak and speakup" +HOMEPAGE="http://www.linux-speakup.org" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +COMMON_DEPEND="|| ( + app-accessibility/espeak[portaudio] + app-accessibility/espeak[pulseaudio] )" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" + +CONFIG_CHECK="~SPEAKUP ~SPEAKUP_SYNTH_SOFT" +ERROR_SPEAKUP="CONFIG_SPEAKUP is not enabled in this kernel!" +ERROR_SPEAKUP_SYNTH_SOFT="CONFIG_SPEAKUP_SYNTH_SOFT is not enabled in this kernel!" + +pkg_setup() { + if kernel_is -ge 2 6 37; then + check_extra_config + elif ! has_version app-accessibility/speakup; then + ewarn "Cannot find speakup on your system." + ewarn "Please upgrade your kernel to 2.6.37 or later and enable the" + ewarn "CONFIG_SPEAKUP and CONFIG_SPEAKUP_SYNTH_SOFT options" + ewarn "or install app-accessibility/speakup." + fi +} + +src_compile() { + emake || die "Compile failed." +} + +src_install() { + emake DESTDIR="${D}" install || die "Install failed." + dodoc ChangeLog README ToDo + newconfd "${FILESDIR}"/espeakup.confd espeakup + newinitd "${FILESDIR}"/espeakup.rc espeakup +} + +pkg_postinst() { + elog "To get espeakup to start automatically, it is currently recommended" + elog "that you add it to the default run level, by giving the following" + elog "command as root." + elog + elog "rc-update add espeakup default" + elog + elog "You can also set a default voice now for espeakup." + elog "See /etc/conf.d/espeakup for how to do this." +} diff --git a/app-accessibility/espeakup/espeakup-0.80.ebuild b/app-accessibility/espeakup/espeakup-0.80.ebuild new file mode 100644 index 000000000000..95a1e0ea06b2 --- /dev/null +++ b/app-accessibility/espeakup/espeakup-0.80.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/williamh/espeakup.git" + inherit git-r3 +else + EGIT_COMMIT=v${PV} + SRC_URI="https://github.com/williamh/espeakup/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" + inherit vcs-snapshot +fi + +inherit linux-info + +DESCRIPTION="espeakup is a small lightweight connector for espeak and speakup" +HOMEPAGE="https://github.com/williamh/espeakup" + +LICENSE="GPL-3" +SLOT="0" +IUSE="" + +COMMON_DEPEND="|| ( + app-accessibility/espeak[portaudio] + app-accessibility/espeak[pulseaudio] )" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" + +CONFIG_CHECK="~SPEAKUP ~SPEAKUP_SYNTH_SOFT" +ERROR_SPEAKUP="CONFIG_SPEAKUP is not enabled in this kernel!" +ERROR_SPEAKUP_SYNTH_SOFT="CONFIG_SPEAKUP_SYNTH_SOFT is not enabled in this kernel!" + +pkg_setup() { + if kernel_is -ge 2 6 37; then + check_extra_config + elif ! has_version app-accessibility/speakup; then + ewarn "Cannot find speakup on your system." + ewarn "Please upgrade your kernel to 2.6.37 or later and enable the" + ewarn "CONFIG_SPEAKUP and CONFIG_SPEAKUP_SYNTH_SOFT options" + ewarn "or install app-accessibility/speakup." + fi +} + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr install + einstalldocs + newconfd "${FILESDIR}"/espeakup.confd espeakup + newinitd "${FILESDIR}"/espeakup.rc espeakup +} + +pkg_postinst() { + elog "To get espeakup to start automatically, it is currently recommended" + elog "that you add it to the default run level, by giving the following" + elog "command as root." + elog + elog "rc-update add espeakup default" + elog + elog "You can also set a default voice now for espeakup." + elog "See /etc/conf.d/espeakup for how to do this." +} diff --git a/app-accessibility/espeakup/espeakup-9999.ebuild b/app-accessibility/espeakup/espeakup-9999.ebuild new file mode 100644 index 000000000000..95a1e0ea06b2 --- /dev/null +++ b/app-accessibility/espeakup/espeakup-9999.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/williamh/espeakup.git" + inherit git-r3 +else + EGIT_COMMIT=v${PV} + SRC_URI="https://github.com/williamh/espeakup/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" + inherit vcs-snapshot +fi + +inherit linux-info + +DESCRIPTION="espeakup is a small lightweight connector for espeak and speakup" +HOMEPAGE="https://github.com/williamh/espeakup" + +LICENSE="GPL-3" +SLOT="0" +IUSE="" + +COMMON_DEPEND="|| ( + app-accessibility/espeak[portaudio] + app-accessibility/espeak[pulseaudio] )" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" + +CONFIG_CHECK="~SPEAKUP ~SPEAKUP_SYNTH_SOFT" +ERROR_SPEAKUP="CONFIG_SPEAKUP is not enabled in this kernel!" +ERROR_SPEAKUP_SYNTH_SOFT="CONFIG_SPEAKUP_SYNTH_SOFT is not enabled in this kernel!" + +pkg_setup() { + if kernel_is -ge 2 6 37; then + check_extra_config + elif ! has_version app-accessibility/speakup; then + ewarn "Cannot find speakup on your system." + ewarn "Please upgrade your kernel to 2.6.37 or later and enable the" + ewarn "CONFIG_SPEAKUP and CONFIG_SPEAKUP_SYNTH_SOFT options" + ewarn "or install app-accessibility/speakup." + fi +} + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr install + einstalldocs + newconfd "${FILESDIR}"/espeakup.confd espeakup + newinitd "${FILESDIR}"/espeakup.rc espeakup +} + +pkg_postinst() { + elog "To get espeakup to start automatically, it is currently recommended" + elog "that you add it to the default run level, by giving the following" + elog "command as root." + elog + elog "rc-update add espeakup default" + elog + elog "You can also set a default voice now for espeakup." + elog "See /etc/conf.d/espeakup for how to do this." +} diff --git a/app-accessibility/espeakup/files/espeakup.confd b/app-accessibility/espeakup/files/espeakup.confd new file mode 100644 index 000000000000..035012cc08e5 --- /dev/null +++ b/app-accessibility/espeakup/files/espeakup.confd @@ -0,0 +1,9 @@ +# conf.d file for espeakup +# +# Please check man 8 espeakup for more information about the options +# espeakup accepts. +# +# Currently, the only meaningful option is: +# --default-voice=voicename -- set the espeak voice espeakup will use. +# +ESPEAKUP_OPTS="" diff --git a/app-accessibility/espeakup/files/espeakup.rc b/app-accessibility/espeakup/files/espeakup.rc new file mode 100644 index 000000000000..2989a970874b --- /dev/null +++ b/app-accessibility/espeakup/files/espeakup.rc @@ -0,0 +1,12 @@ +#!/sbin/openrc-run +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +command=/usr/bin/espeakup +command_args="${espeakup_opts:-${ESPEAKUP_OPTS}}" +pidfile=/run/espeakup.pid + +depend() { + after modules + use alsasound pulseaudio +} diff --git a/app-accessibility/espeakup/metadata.xml b/app-accessibility/espeakup/metadata.xml new file mode 100644 index 000000000000..af3734414e2f --- /dev/null +++ b/app-accessibility/espeakup/metadata.xml @@ -0,0 +1,18 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>williamh@gentoo.org</email> + </maintainer> + <maintainer type="project"> + <email>accessibility@gentoo.org</email> + <name>Gentoo Accessibility Project</name> + </maintainer> + <longdescription> +Espeakup is a small lightweight connector which makes it possible for +speakup to use espeak as its synthesizer. + </longdescription> + <upstream> + <remote-id type="github">williamh/espeakup</remote-id> + </upstream> +</pkgmetadata> |