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