summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-accessibility/speakup/speakup-3.1.6.ebuild')
-rw-r--r--app-accessibility/speakup/speakup-3.1.6.ebuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/app-accessibility/speakup/speakup-3.1.6.ebuild b/app-accessibility/speakup/speakup-3.1.6.ebuild
index af294332527e..c6d08cf82601 100644
--- a/app-accessibility/speakup/speakup-3.1.6.ebuild
+++ b/app-accessibility/speakup/speakup-3.1.6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-accessibility/speakup/speakup-3.1.6.ebuild,v 1.4 2010/12/09 00:49:13 williamh Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/speakup/speakup-3.1.6.ebuild,v 1.5 2010/12/09 04:08:50 williamh Exp $
EAPI="2"
@@ -13,7 +13,7 @@ SRC_URI="ftp://linux-speakup.org/pub/speakup/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
-IUSE=""
+IUSE="modules"
MODULE_NAMES="speakup(${PN}:\"${S}\"/src)
speakup_acntpc(${PN}:\"${S}\"/src)
@@ -35,17 +35,18 @@ BUILD_PARAMS="KERNELDIR=${KERNEL_DIR}"
BUILD_TARGETS="clean all"
src_prepare() {
+ use modules && cmd=die || cmd=ewarn
if kernel_is lt 2 6 26 || kernel_is gt 2 6 35; then
- die "Speakup ${PV} requires linux 2.6.26 through 2.6.35"
+ $cmd "Speakup ${PV} requires linux 2.6.26 through 2.6.35"
fi
}
src_compile() {
- linux-mod_src_compile
+ use modules && linux-mod_src_compile
}
src_install() {
- linux-mod_src_install
+ use modules && linux-mod_src_install
dobin tools/speakupconf
dosbin tools/talkwith
dodoc Bugs.txt README To-Do doc/DefaultKeyAssignments doc/spkguide.txt
@@ -53,7 +54,7 @@ src_install() {
}
pkg_postinst() {
- linux-mod_pkg_postinst
+ use modules && linux-mod_pkg_postinst
elog "You must set up the speech synthesizer driver to be loaded"
elog "automatically in order for your system to start speaking"