| 1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2004 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/freedict.eclass,v 1.7 2004/06/25 00:39:48 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/freedict.eclass,v 1.11 2005/07/06 20:20:03 agriffis Exp $ |
| 4 | |
4 | |
| 5 | # Author: Seemant Kulleen <seemant@gentoo.org> |
5 | # Author: Seemant Kulleen <seemant@gentoo.org> |
| 6 | # This eclass exists to ease the installation of freedict translation |
6 | # This eclass exists to ease the installation of freedict translation |
| 7 | # dictionaries. The only variables which need to be defined in the actual |
7 | # dictionaries. The only variables which need to be defined in the actual |
| 8 | # ebuilds are FORLANG and TOLANG for the source and target languages, |
8 | # ebuilds are FORLANG and TOLANG for the source and target languages, |
| 9 | # respectively. |
9 | # respectively. |
| 10 | |
10 | |
| 11 | ECLASS="freedict" |
11 | inherit eutils |
|
|
12 | |
| 12 | INHERITED="$INHERITED $ECLASS" |
13 | INHERITED="$INHERITED $ECLASS" |
| 13 | |
14 | |
| 14 | IUSE="" |
15 | IUSE="" |
| 15 | |
16 | |
| 16 | MY_P=${PN/freedict-/} |
17 | MY_P=${PN/freedict-/} |
| … | |
… | |
| 20 | HOMEPAGE="http://www.freedict.de" |
21 | HOMEPAGE="http://www.freedict.de" |
| 21 | SRC_URI="http://freedict.sourceforge.net/download/linux/${MY_P}.tar.gz" |
22 | SRC_URI="http://freedict.sourceforge.net/download/linux/${MY_P}.tar.gz" |
| 22 | |
23 | |
| 23 | SLOT="0" |
24 | SLOT="0" |
| 24 | LICENSE="GPL-2" |
25 | LICENSE="GPL-2" |
| 25 | KEYWORDS="x86 ~ppc ~sparc ~alpha ~mips ~hppa" |
26 | KEYWORDS="x86 ~amd64 ppc ~sparc ~alpha ~mips ~hppa" |
| 26 | |
27 | |
| 27 | DEPEND="app-text/dictd" |
28 | DEPEND="app-text/dictd" |
| 28 | |
29 | |
| 29 | freedict_src_install() { |
30 | freedict_src_install() { |
| 30 | insinto /usr/lib/dict |
31 | insinto /usr/$(get_libdir)/dict |
| 31 | doins ${MY_P}.dict.dz |
32 | doins ${MY_P}.dict.dz |
| 32 | doins ${MY_P}.index |
33 | doins ${MY_P}.index |
| 33 | } |
34 | } |
| 34 | |
35 | |
| 35 | EXPORT_FUNCTIONS src_install |
36 | EXPORT_FUNCTIONS src_install |