# 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.2 2010/10/14 19:23:54 flameeyes Exp $ EAPI="2" inherit linux-mod DESCRIPTION="The speakup linux kernel based screen reader." HOMEPAGE="http://linux-speakup.org" SRC_URI="ftp://linux-speakup.org/pub/speakup/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="modules" MODULE_NAMES="speakup(${PN}:\"${S}\"/src) speakup_acntpc(${PN}:\"${S}\"/src) speakup_acntsa(${PN}:\"${S}\"/src) speakup_apollo(${PN}:\"${S}\"/src) speakup_audptr(${PN}:\"${S}\"/src) speakup_bns(${PN}:\"${S}\"/src) speakup_decext(${PN}:\"${S}\"/src) speakup_decpc(${PN}:\"${S}\"/src) speakup_dectlk(${PN}:\"${S}\"/src) speakup_dtlk(${PN}:\"${S}\"/src) speakup_dummy(${PN}:\"${S}\"/src) speakup_keypc(${PN}:\"${S}\"/src) speakup_ltlk(${PN}:\"${S}\"/src) speakup_soft(${PN}:\"${S}\"/src) speakup_spkout(${PN}:\"${S}\"/src) speakup_txprt(${PN}:\"${S}\"/src)" 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 $cmd "Speakup ${PV} requires linux 2.6.26 through 2.6.35" fi } src_compile() { use modules && linux-mod_src_compile } 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 newdoc tools/README README.tools } 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" elog "when it is booted." if has_version "