| 1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2008 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.16 2007/01/25 21:17:12 eroyf Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/freedict.eclass,v 1.18 2008/03/29 02:08:46 philantrop Exp $ |
| 4 | |
4 | |
| 5 | # Author: Seemant Kulleen <seemant@gentoo.org> |
5 | # @ECLASS: freedict.eclass |
|
|
6 | # @MAINTAINER: |
|
|
7 | # app-dicts@gentoo.org |
|
|
8 | # |
|
|
9 | # Original author: Seemant Kulleen |
|
|
10 | # |
|
|
11 | # @BLURB: Ease the installation of freedict translation dictionaries |
|
|
12 | # @DESCRIPTION: |
| 6 | # This eclass exists to ease the installation of freedict translation |
13 | # This eclass exists to ease the installation of freedict translation |
| 7 | # dictionaries. The only variables which need to be defined in the actual |
14 | # dictionaries. The only variables which need to be defined in the actual |
| 8 | # ebuilds are FORLANG and TOLANG for the source and target languages, |
15 | # ebuilds are FORLANG and TOLANG for the source and target languages, |
| 9 | # respectively. |
16 | # respectively. |
|
|
17 | |
|
|
18 | # @ECLASS-VARIABLE: FORLANG |
|
|
19 | # @DESCRIPTION: |
|
|
20 | # Please see above for a description. |
|
|
21 | |
|
|
22 | # @ECLASS-VARIABLE: TOLANG |
|
|
23 | # @DESCRIPTION: |
|
|
24 | # Please see above for a description. |
| 10 | |
25 | |
| 11 | inherit eutils |
26 | inherit eutils |
| 12 | |
27 | |
| 13 | IUSE="" |
28 | IUSE="" |
| 14 | |
29 | |
| 15 | MY_P=${PN/freedict-/} |
30 | MY_P=${PN/freedict-/} |
| 16 | |
31 | |
| 17 | S=${WORKDIR} |
32 | S="${WORKDIR}" |
| 18 | DESCRIPTION="Freedict for language translation from ${FORLANG} to ${TOLANG}" |
33 | DESCRIPTION="Freedict for language translation from ${FORLANG} to ${TOLANG}" |
| 19 | HOMEPAGE="http://www.freedict.de" |
34 | HOMEPAGE="http://www.freedict.de" |
| 20 | SRC_URI="http://freedict.sourceforge.net/download/linux/${MY_P}.tar.gz" |
35 | SRC_URI="http://freedict.sourceforge.net/download/linux/${MY_P}.tar.gz" |
| 21 | |
36 | |
| 22 | SLOT="0" |
37 | SLOT="0" |
| 23 | LICENSE="GPL-2" |
38 | LICENSE="GPL-2" |
| 24 | KEYWORDS="x86 ~amd64 ppc sparc alpha mips ~hppa" |
|
|
| 25 | |
39 | |
| 26 | DEPEND="app-text/dictd" |
40 | DEPEND="app-text/dictd" |
| 27 | |
41 | |
|
|
42 | # @FUNCTION: freedict_src_install |
|
|
43 | # @DESCRIPTION: |
|
|
44 | # The freedict src_install function, which is exported |
| 28 | freedict_src_install() { |
45 | freedict_src_install() { |
| 29 | insinto /usr/$(get_libdir)/dict |
46 | insinto /usr/$(get_libdir)/dict |
| 30 | doins ${MY_P}.dict.dz |
47 | doins ${MY_P}.dict.dz |
| 31 | doins ${MY_P}.index |
48 | doins ${MY_P}.index |
| 32 | } |
49 | } |