/[gentoo-x86]/eclass/aspell-dict.eclass
Gentoo

Contents of /eclass/aspell-dict.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.42 - (show annotations) (download)
Sat Apr 16 19:53:30 2011 UTC (3 years, 11 months ago) by ulm
Branch: MAIN
Changes since 1.41: +3 -5 lines
Don't provide virtual/aspell-dict, bug 358821.

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/aspell-dict.eclass,v 1.41 2009/01/10 16:16:19 pva Exp $
4
5 # @ECLASS: aspell-dict.eclass
6 # @MAINTAINER:
7 # app-dicts@gentoo.org
8 #
9 # Original author: Seemant Kulleen
10 #
11 # @BLURB: An eclass to streamline the construction of ebuilds for new aspell dicts
12 # @DESCRIPTION:
13 # The aspell-dict eclass is designed to streamline the construction of
14 # ebuilds for the new aspell dictionaries (from gnu.org) which support
15 # aspell-0.50. Support for aspell-0.60 has been added by Sergey Ulanov.
16
17 # @ECLASS-VARIABLE: ASPELL_LANG
18 # @DESCRIPTION:
19 # Which language is the dictionary for? It's used for the DESCRIPTION of the
20 # package.
21
22 # @ECLASS-VARIABLE: ASPOSTFIX
23 # @DESCRIPTION:
24 # What major version of aspell is this dictionary for?
25
26 EXPORT_FUNCTIONS src_compile src_install
27
28 #MY_P=${PN}-${PV%.*}-${PV#*.*.}
29 MY_P=${P%.*}-${PV##*.}
30 MY_P=aspell${ASPOSTFIX}-${MY_P/aspell-/}
31 SPELLANG=${PN/aspell-/}
32 S="${WORKDIR}/${MY_P}"
33 DESCRIPTION="${ASPELL_LANG} language dictionary for aspell"
34 HOMEPAGE="http://aspell.net"
35 SRC_URI="mirror://gnu/aspell/dict/${SPELLANG}/${MY_P}.tar.bz2"
36
37 IUSE=""
38 SLOT="0"
39
40 if [ x${ASPOSTFIX} = x6 ] ; then
41 RDEPEND=">=app-text/aspell-0.60"
42 DEPEND="${RDEPEND}"
43 else
44 RDEPEND=">=app-text/aspell-0.50"
45 DEPEND="${RDEPEND}"
46 fi
47
48 # @FUNCTION: aspell-dict_src_compile
49 # @DESCRIPTION:
50 # The aspell-dict src_compile function which is exported.
51 aspell-dict_src_compile() {
52 ./configure || die
53 emake || die
54 }
55
56 # @FUNCTION: aspell-dict_src_install
57 # @DESCRIPTION:
58 # The aspell-dict src_install function which is exported.
59 aspell-dict_src_install() {
60 make DESTDIR="${D}" install || die
61
62 for doc in README info ; do
63 [ -s "$doc" ] && dodoc $doc
64 done
65 }

  ViewVC Help
Powered by ViewVC 1.1.20