dev-libs/libusb: stable 1.0.21 for sparc, bug #630342
[gentoo.git] / eclass / freedict.eclass
1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3
4 # @ECLASS: freedict.eclass
5 # @MAINTAINER:
6 # maintainer-needed@gentoo.org
7 # @AUTHOR:
8 # Original author: Seemant Kulleen
9 # @BLURB: Ease the installation of freedict translation dictionaries
10 # @DESCRIPTION:
11 # This eclass exists to ease the installation of freedict translation
12 # dictionaries.  The only variables which need to be defined in the actual
13 # ebuilds are FORLANG and TOLANG for the source and target languages,
14 # respectively.
15
16 # @ECLASS-VARIABLE: FORLANG
17 # @DESCRIPTION:
18 # Please see above for a description.
19
20 # @ECLASS-VARIABLE: TOLANG
21 # @DESCRIPTION:
22 # Please see above for a description.
23
24 inherit eutils multilib
25
26 IUSE=""
27
28 MY_P=${PN/freedict-/}
29
30 S="${WORKDIR}"
31 DESCRIPTION="Freedict for language translation from ${FORLANG} to ${TOLANG}"
32 HOMEPAGE="http://www.freedict.de"
33 SRC_URI="http://freedict.sourceforge.net/download/linux/${MY_P}.tar.gz"
34
35 SLOT="0"
36 LICENSE="GPL-2"
37
38 DEPEND="app-text/dictd"
39
40 # @FUNCTION: freedict_src_install
41 # @DESCRIPTION:
42 # The freedict src_install function, which is exported
43 freedict_src_install() {
44         insinto /usr/$(get_libdir)/dict
45         doins ${MY_P}.dict.dz
46         doins ${MY_P}.index
47 }
48
49 EXPORT_FUNCTIONS src_install