1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
4 # @ECLASS: freedict.eclass
6 # maintainer-needed@gentoo.org
8 # Original author: Seemant Kulleen
9 # @BLURB: Ease the installation of freedict translation dictionaries
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,
16 # @ECLASS-VARIABLE: FORLANG
18 # Please see above for a description.
20 # @ECLASS-VARIABLE: TOLANG
22 # Please see above for a description.
24 inherit eutils multilib
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"
38 DEPEND="app-text/dictd"
40 # @FUNCTION: freedict_src_install
42 # The freedict src_install function, which is exported
43 freedict_src_install() {
44 insinto /usr/$(get_libdir)/dict
49 EXPORT_FUNCTIONS src_install