1 |
vapier |
1.7 |
# Copyright 1999-2004 Gentoo Foundation |
2 |
seemant |
1.1 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
arj |
1.9 |
# $Header: /var/cvsroot/gentoo-x86/eclass/freedict.eclass,v 1.8 2004/09/15 23:10:21 kugelfang Exp $ |
4 |
seemant |
1.1 |
|
5 |
|
|
# Author: Seemant Kulleen <seemant@gentoo.org> |
6 |
|
|
# This eclass exists to ease the installation of freedict translation |
7 |
|
|
# dictionaries. The only variables which need to be defined in the actual |
8 |
|
|
# ebuilds are FORLANG and TOLANG for the source and target languages, |
9 |
|
|
# respectively. |
10 |
|
|
|
11 |
kugelfang |
1.8 |
inherit eutils |
12 |
|
|
|
13 |
liquidx |
1.3 |
ECLASS="freedict" |
14 |
|
|
INHERITED="$INHERITED $ECLASS" |
15 |
|
|
|
16 |
seemant |
1.1 |
IUSE="" |
17 |
|
|
|
18 |
|
|
MY_P=${PN/freedict-/} |
19 |
|
|
|
20 |
|
|
S=${WORKDIR} |
21 |
|
|
DESCRIPTION="Freedict for language translation from ${FORLANG} to ${TOLANG}" |
22 |
|
|
HOMEPAGE="http://www.freedict.de" |
23 |
|
|
SRC_URI="http://freedict.sourceforge.net/download/linux/${MY_P}.tar.gz" |
24 |
|
|
|
25 |
|
|
SLOT="0" |
26 |
|
|
LICENSE="GPL-2" |
27 |
arj |
1.9 |
KEYWORDS="x86 ~amd64 ~ppc ~sparc ~alpha ~mips ~hppa" |
28 |
seemant |
1.1 |
|
29 |
mr_bones_ |
1.6 |
DEPEND="app-text/dictd" |
30 |
seemant |
1.1 |
|
31 |
liquidx |
1.3 |
freedict_src_install() { |
32 |
kugelfang |
1.8 |
insinto /usr/$(get_libdir)/dict |
33 |
seemant |
1.1 |
doins ${MY_P}.dict.dz |
34 |
|
|
doins ${MY_P}.index |
35 |
|
|
} |
36 |
liquidx |
1.3 |
|
37 |
|
|
EXPORT_FUNCTIONS src_install |