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

Contents of /eclass/aspell-dict.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.40 - (show annotations) (download)
Sat Mar 29 02:02:37 2008 UTC (6 years, 3 months ago) by philantrop
Branch: MAIN
Changes since 1.39: +24 -4 lines
Added a patch to make aspell-dict.eclass ready for eclass-manpages. Thanks, mren, for providing it on bug 210644.

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
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="ftp://ftp.gnu.org/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 PROVIDE="virtual/aspell-dict"
49
50 # @FUNCTION: aspell-dict_src_compile
51 # @DESCRIPTION:
52 # The aspell-dict src_compile function which is exported.
53 aspell-dict_src_compile() {
54 ./configure || die
55 emake || die
56 }
57
58 # @FUNCTION: aspell-dict_src_install
59 # @DESCRIPTION:
60 # The aspell-dict src_install function which is exported.
61 aspell-dict_src_install() {
62 make DESTDIR="${D}" install || die
63
64 for doc in README info ; do
65 [ -s "$doc" ] && dodoc $doc
66 done
67 }

  ViewVC Help
Powered by ViewVC 1.1.20