summaryrefslogtreecommitdiff
blob: e99fcbc9a09de0499aa35848fda5b58e0303011c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/aspell-dict.eclass,v 1.36 2006/05/08 20:44:36 flameeyes Exp $
#
# Author: Seemant Kulleen <seemant@gentoo.org>
#
# The aspell-dict eclass is designed to streamline the construction of
# ebuilds for the new aspell dictionaries (from gnu.org) which support
# aspell-0.50. Support for aspell-0.60 has been added by Sergey Ulanov.


EXPORT_FUNCTIONS src_compile src_install

#MY_P=${PN}-${PV%.*}-${PV#*.*.}
MY_P=${P%.*}-${PV##*.}
MY_P=aspell${ASPOSTFIX}-${MY_P/aspell-/}
SPELLANG=${PN/aspell-/}
S=${WORKDIR}/${MY_P}
DESCRIPTION="${ASPELL_LANG} language dictionary for aspell"
HOMEPAGE="http://aspell.net"
SRC_URI="ftp://ftp.gnu.org/gnu/aspell/dict/${SPELLANG}/${MY_P}.tar.bz2"

IUSE=""
SLOT="0"

if [ x${ASPOSTFIX} = x6 ] ; then
	RDEPEND=">=app-text/aspell-0.60"
	DEPEND="${RDEPEND}"
	KEYWORDS="~x86 ~ppc ~sparc ~amd64 ~x86-fbsd"
else
	RDEPEND=">=app-text/aspell-0.50"
	DEPEND="${RDEPEND}"
	KEYWORDS="x86 ppc sparc mips alpha arm hppa amd64 ia64 ppc64"
fi

PROVIDE="virtual/aspell-dict"

aspell-dict_src_compile() {
	echo `pwd`
	./configure || die
	emake || die
}

aspell-dict_src_install() {
	make DESTDIR=${D} install || die

	for doc in README info ; do
		[ -s "$doc" ] && dodoc $doc
	done
}