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

Contents of /eclass/aspell-dict.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.41 - (hide annotations) (download)
Sat Jan 10 16:16:19 2009 UTC (5 years, 8 months ago) by pva
Branch: MAIN
Changes since 1.40: +2 -2 lines
Updated SRC_URI to use gnu mirrors.

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 pva 1.41 # $Header: /var/cvsroot/gentoo-x86/eclass/aspell-dict.eclass,v 1.40 2008/03/29 02:02:37 philantrop Exp $
4 philantrop 1.40
5     # @ECLASS: aspell-dict.eclass
6     # @MAINTAINER:
7     # 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     # @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 seemant 1.12 PROVIDE="virtual/aspell-dict"
49    
50 philantrop 1.40 # @FUNCTION: aspell-dict_src_compile
51     # @DESCRIPTION:
52     # The aspell-dict src_compile function which is exported.
53 seemant 1.1 aspell-dict_src_compile() {
54     ./configure || die
55     emake || die
56     }
57    
58 philantrop 1.40 # @FUNCTION: aspell-dict_src_install
59     # @DESCRIPTION:
60     # The aspell-dict src_install function which is exported.
61 seemant 1.1 aspell-dict_src_install() {
62 vapier 1.37 make DESTDIR="${D}" install || die
63 seemant 1.1
64 vapier 1.25 for doc in README info ; do
65 lanius 1.20 [ -s "$doc" ] && dodoc $doc
66     done
67 seemant 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20