--- espeakup-0.71.ebuild 12 Jan 2011 23:56:02 -0000 1.7 +++ espeakup-0.71.ebuild 27 Apr 2011 16:43:23 -0000 @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeakup/espeakup-0.71.ebuild,v 1.7 2011/01/12 23:56:02 williamh Exp $ +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" @@ -12,8 +14,18 @@ IUSE="" DEPEND="app-accessibility/espeak" -RDEPEND="${DEPEND} - || ( >=virtual/linux-sources-2.6.37 app-accessibility/speakup )" +RDEPEND="${DEPEND}" + +pkg_setup() { + if kernel_is -ge 2 6 37; then + CONFIG_CHECK="~SPEAKUP" + 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 option, or install app-accessibility/speakup." + fi +} src_compile() { emake || die "Compile failed."