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

Contents of /eclass/aspell-dict.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.44 - (hide annotations) (download)
Sun Jan 5 11:39:48 2014 UTC (9 months, 2 weeks ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.43: +3 -3 lines
Cleanup due http://gentoo.2317880.n4.nabble.com/app-dicts-herd-is-empty-td271273.html

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

  ViewVC Help
Powered by ViewVC 1.1.20