1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 # @ECLASS: freedict.eclass
7 # maintainer-needed@gentoo.org
9 # Original author: Seemant Kulleen
10 # @BLURB: Ease the installation of freedict translation dictionaries
12 # This eclass exists to ease the installation of freedict translation
13 # dictionaries. The only variables which need to be defined in the actual
14 # ebuilds are FORLANG and TOLANG for the source and target languages,
17 # @ECLASS-VARIABLE: FORLANG
19 # Please see above for a description.
21 # @ECLASS-VARIABLE: TOLANG
23 # Please see above for a description.
25 inherit eutils multilib
32 DESCRIPTION="Freedict for language translation from ${FORLANG} to ${TOLANG}"
33 HOMEPAGE="http://www.freedict.de"
34 SRC_URI="http://freedict.sourceforge.net/download/linux/${MY_P}.tar.gz"
39 DEPEND="app-text/dictd"
41 # @FUNCTION: freedict_src_install
43 # The freedict src_install function, which is exported
44 freedict_src_install() {
45 insinto /usr/$(get_libdir)/dict
50 EXPORT_FUNCTIONS src_install