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

Contents of /eclass/aspell-dict.eclass

Parent Directory Parent Directory | Revision Log Revision Log


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

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

  ViewVC Help
Powered by ViewVC 1.1.20