| 1 |
zmedico |
1.20 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
seemant |
1.1 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
zmedico |
1.20 |
# $Header: /var/cvsroot/gentoo-x86/eclass/freedict.eclass,v 1.19 2011/08/22 04:46:31 vapier Exp $
|
| 4 |
seemant |
1.1 |
|
| 5 |
philantrop |
1.18 |
# @ECLASS: freedict.eclass
|
| 6 |
|
|
# @MAINTAINER:
|
| 7 |
|
|
# app-dicts@gentoo.org
|
| 8 |
vapier |
1.19 |
# @AUTHOR:
|
| 9 |
philantrop |
1.18 |
# Original author: Seemant Kulleen
|
| 10 |
|
|
# @BLURB: Ease the installation of freedict translation dictionaries
|
| 11 |
|
|
# @DESCRIPTION:
|
| 12 |
seemant |
1.1 |
# 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,
|
| 15 |
|
|
# respectively.
|
| 16 |
|
|
|
| 17 |
philantrop |
1.18 |
# @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 |
|
|
|
| 25 |
zmedico |
1.20 |
inherit eutils multilib
|
| 26 |
kugelfang |
1.8 |
|
| 27 |
seemant |
1.1 |
IUSE=""
|
| 28 |
|
|
|
| 29 |
|
|
MY_P=${PN/freedict-/}
|
| 30 |
|
|
|
| 31 |
philantrop |
1.18 |
S="${WORKDIR}"
|
| 32 |
seemant |
1.1 |
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"
|
| 35 |
|
|
|
| 36 |
|
|
SLOT="0"
|
| 37 |
|
|
LICENSE="GPL-2"
|
| 38 |
|
|
|
| 39 |
mr_bones_ |
1.6 |
DEPEND="app-text/dictd"
|
| 40 |
seemant |
1.1 |
|
| 41 |
philantrop |
1.18 |
# @FUNCTION: freedict_src_install
|
| 42 |
|
|
# @DESCRIPTION:
|
| 43 |
|
|
# The freedict src_install function, which is exported
|
| 44 |
liquidx |
1.3 |
freedict_src_install() {
|
| 45 |
kugelfang |
1.8 |
insinto /usr/$(get_libdir)/dict
|
| 46 |
seemant |
1.1 |
doins ${MY_P}.dict.dz
|
| 47 |
|
|
doins ${MY_P}.index
|
| 48 |
|
|
}
|
| 49 |
liquidx |
1.3 |
|
| 50 |
|
|
EXPORT_FUNCTIONS src_install
|