| 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 |
philantrop |
1.40 |
# $Header: $ |
| 4 |
|
|
|
| 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 |
seemant |
1.13 |
SRC_URI="ftp://ftp.gnu.org/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 |
} |