/[gentoo-x86]/app-accessibility/speakup/speakup-3.1.4.ebuild
Gentoo

Contents of /app-accessibility/speakup/speakup-3.1.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Thu Jan 28 06:50:32 2010 UTC (8 years, 7 months ago) by williamh
Branch: MAIN
Changes since 1.1: +2 -2 lines
stabilizing on amd64/x86 for bug #301527
(Portage version: 2.2_rc61/cvs/Linux i686)

1 williamh 1.1 # Copyright 1999-2010 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 williamh 1.2 # $Header: /var/cvsroot/gentoo-x86/app-accessibility/speakup/speakup-3.1.4.ebuild,v 1.1 2010/01/25 00:47:18 williamh Exp $
4 williamh 1.1
5     EAPI="2"
6    
7     inherit linux-mod
8    
9     DESCRIPTION="The speakup linux kernel based screen reader."
10     HOMEPAGE="http://linux-speakup.org"
11     SRC_URI="ftp://linux-speakup.org/pub/speakup/${P}.tar.bz2"
12    
13     LICENSE="GPL-2"
14     SLOT="0"
15 williamh 1.2 KEYWORDS="amd64 x86"
16 williamh 1.1 IUSE="modules"
17    
18     MODULE_NAMES="speakup(${PN}:\"${S}\"/src)
19     speakup_acntpc(${PN}:\"${S}\"/src)
20     speakup_acntsa(${PN}:\"${S}\"/src)
21     speakup_apollo(${PN}:\"${S}\"/src)
22     speakup_audptr(${PN}:\"${S}\"/src)
23     speakup_bns(${PN}:\"${S}\"/src)
24     speakup_decext(${PN}:\"${S}\"/src)
25     speakup_decpc(${PN}:\"${S}\"/src)
26     speakup_dectlk(${PN}:\"${S}\"/src)
27     speakup_dtlk(${PN}:\"${S}\"/src)
28     speakup_dummy(${PN}:\"${S}\"/src)
29     speakup_keypc(${PN}:\"${S}\"/src)
30     speakup_ltlk(${PN}:\"${S}\"/src)
31     speakup_soft(${PN}:\"${S}\"/src)
32     speakup_spkout(${PN}:\"${S}\"/src)
33     speakup_txprt(${PN}:\"${S}\"/src)"
34     BUILD_PARAMS="KERNELDIR=${KERNEL_DIR}"
35     BUILD_TARGETS="clean all"
36    
37     src_prepare() {
38     use modules && cmd=die || cmd=ewarn
39     case ${KV_EXTRA} in
40     *gentoo)
41     if kernel_is lt 2 6 25; then
42     $cmd "Speakup requires at least gentoo-sources-2.6.25"
43     fi
44     ;;
45     *)
46     if kernel_is lt 2 6 26; then
47     $cmd "Speakup requires at least kernel version 2.6.26"
48     fi
49     ;;
50     esac
51     }
52    
53     src_compile() {
54     use modules && linux-mod_src_compile
55     }
56    
57     src_install() {
58     use modules && linux-mod_src_install
59     dobin tools/speakupconf
60     dosbin tools/talkwith
61     dodoc Bugs.txt README To-Do doc/DefaultKeyAssignments doc/spkguide.txt
62     newdoc tools/README README.tools
63     }
64    
65     pkg_postinst() {
66     use modules && linux-mod_pkg_postinst
67    
68     elog "You must set up the speech synthesizer driver to be loaded"
69     elog "automatically in order for your system to start speaking"
70     elog "when it is booted."
71     if has_version "<sys-apps/baselayout-2"; then
72     elog "this is done via /etc/modules.autoload.d/kernel-2.6"
73     else
74     elog "This is done via /etc/conf.d/modules."
75     fi
76     }

  ViewVC Help
Powered by ViewVC 1.1.20