| 1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2006 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/aspell-dict.eclass,v 1.32 2005/07/06 20:20:03 agriffis Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/aspell-dict.eclass,v 1.39 2006/12/01 01:54:29 kevquinn Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Seemant Kulleen <seemant@gentoo.org> |
5 | # Author: Seemant Kulleen <seemant@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # The aspell-dict eclass is designed to streamline the construction of |
7 | # The aspell-dict eclass is designed to streamline the construction of |
| 8 | # ebuilds for the new aspell dictionaries (from gnu.org) which support |
8 | # ebuilds for the new aspell dictionaries (from gnu.org) which support |
| 9 | # aspell-0.50. Support for aspell-0.60 has been added by Sergey Ulanov. |
9 | # aspell-0.50. Support for aspell-0.60 has been added by Sergey Ulanov. |
| 10 | |
10 | |
| 11 | INHERITED="${INHERITED} ${ECLASS}" |
|
|
| 12 | |
11 | |
| 13 | EXPORT_FUNCTIONS src_compile src_install |
12 | EXPORT_FUNCTIONS src_compile src_install |
| 14 | |
13 | |
| 15 | #MY_P=${PN}-${PV%.*}-${PV#*.*.} |
14 | #MY_P=${PN}-${PV%.*}-${PV#*.*.} |
| 16 | MY_P=${P%.*}-${PV##*.} |
15 | MY_P=${P%.*}-${PV##*.} |
| … | |
… | |
| 23 | |
22 | |
| 24 | IUSE="" |
23 | IUSE="" |
| 25 | SLOT="0" |
24 | SLOT="0" |
| 26 | |
25 | |
| 27 | if [ x${ASPOSTFIX} = x6 ] ; then |
26 | if [ x${ASPOSTFIX} = x6 ] ; then |
| 28 | RDEPEND=">=app-text/aspell-0.60 |
27 | RDEPEND=">=app-text/aspell-0.60" |
| 29 | sys-apps/which" |
28 | DEPEND="${RDEPEND}" |
| 30 | KEYWORDS="~x86 ~ppc ~sparc ~amd64" |
|
|
| 31 | else |
29 | else |
| 32 | RDEPEND=">=app-text/aspell-0.50 |
30 | RDEPEND=">=app-text/aspell-0.50" |
| 33 | sys-apps/which" |
31 | DEPEND="${RDEPEND}" |
| 34 | KEYWORDS="x86 ppc sparc mips alpha arm hppa amd64 ia64 ppc64" |
|
|
| 35 | fi |
32 | fi |
| 36 | |
33 | |
| 37 | PROVIDE="virtual/aspell-dict" |
34 | PROVIDE="virtual/aspell-dict" |
| 38 | |
35 | |
| 39 | aspell-dict_src_compile() { |
36 | aspell-dict_src_compile() { |
| 40 | echo `pwd` |
|
|
| 41 | ./configure || die |
37 | ./configure || die |
| 42 | emake || die |
38 | emake || die |
| 43 | } |
39 | } |
| 44 | |
40 | |
| 45 | aspell-dict_src_install() { |
41 | aspell-dict_src_install() { |
| 46 | make DESTDIR=${D} install || die |
42 | make DESTDIR="${D}" install || die |
| 47 | |
43 | |
| 48 | for doc in README info ; do |
44 | for doc in README info ; do |
| 49 | [ -s "$doc" ] && dodoc $doc |
45 | [ -s "$doc" ] && dodoc $doc |
| 50 | done |
46 | done |
| 51 | } |
47 | } |