/[gentoo-x86]/eclass/freedict.eclass
Gentoo

Diff of /eclass/freedict.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.12 Revision 1.18
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2008 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/freedict.eclass,v 1.12 2005/07/06 20:23:20 agriffis Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/freedict.eclass,v 1.18 2008/03/29 02:08:46 philantrop Exp $
4 4
5# Author: Seemant Kulleen <seemant@gentoo.org> 5# @ECLASS: freedict.eclass
6# @MAINTAINER:
7# app-dicts@gentoo.org
8#
9# Original author: Seemant Kulleen
10#
11# @BLURB: Ease the installation of freedict translation dictionaries
12# @DESCRIPTION:
6# This eclass exists to ease the installation of freedict translation 13# This eclass exists to ease the installation of freedict translation
7# dictionaries. The only variables which need to be defined in the actual 14# dictionaries. The only variables which need to be defined in the actual
8# ebuilds are FORLANG and TOLANG for the source and target languages, 15# ebuilds are FORLANG and TOLANG for the source and target languages,
9# respectively. 16# respectively.
10 17
18# @ECLASS-VARIABLE: FORLANG
19# @DESCRIPTION:
20# Please see above for a description.
21
22# @ECLASS-VARIABLE: TOLANG
23# @DESCRIPTION:
24# Please see above for a description.
25
11inherit eutils 26inherit eutils
12
13 27
14IUSE="" 28IUSE=""
15 29
16MY_P=${PN/freedict-/} 30MY_P=${PN/freedict-/}
17 31
18S=${WORKDIR} 32S="${WORKDIR}"
19DESCRIPTION="Freedict for language translation from ${FORLANG} to ${TOLANG}" 33DESCRIPTION="Freedict for language translation from ${FORLANG} to ${TOLANG}"
20HOMEPAGE="http://www.freedict.de" 34HOMEPAGE="http://www.freedict.de"
21SRC_URI="http://freedict.sourceforge.net/download/linux/${MY_P}.tar.gz" 35SRC_URI="http://freedict.sourceforge.net/download/linux/${MY_P}.tar.gz"
22 36
23SLOT="0" 37SLOT="0"
24LICENSE="GPL-2" 38LICENSE="GPL-2"
25KEYWORDS="x86 ~amd64 ppc ~sparc ~alpha ~mips ~hppa"
26 39
27DEPEND="app-text/dictd" 40DEPEND="app-text/dictd"
28 41
42# @FUNCTION: freedict_src_install
43# @DESCRIPTION:
44# The freedict src_install function, which is exported
29freedict_src_install() { 45freedict_src_install() {
30 insinto /usr/$(get_libdir)/dict 46 insinto /usr/$(get_libdir)/dict
31 doins ${MY_P}.dict.dz 47 doins ${MY_P}.dict.dz
32 doins ${MY_P}.index 48 doins ${MY_P}.index
33} 49}

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20