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

Diff of /eclass/freedict.eclass

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

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

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.20