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

Diff of /eclass/freedict.eclass

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

Revision 1.1.1.1 Revision 1.21
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2014 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.1.1.1 2005/11/30 09:59:33 chriswhite Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/freedict.eclass,v 1.21 2014/01/05 11:39:48 pacho Exp $
4 4
5# Author: Seemant Kulleen <seemant@gentoo.org> 5# @ECLASS: freedict.eclass
6# @MAINTAINER:
7# maintainer-needed@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
17# @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
11inherit eutils 25inherit eutils multilib
12 26
13IUSE="" 27IUSE=""
14 28
15MY_P=${PN/freedict-/} 29MY_P=${PN/freedict-/}
16 30
17S=${WORKDIR} 31S="${WORKDIR}"
18DESCRIPTION="Freedict for language translation from ${FORLANG} to ${TOLANG}" 32DESCRIPTION="Freedict for language translation from ${FORLANG} to ${TOLANG}"
19HOMEPAGE="http://www.freedict.de" 33HOMEPAGE="http://www.freedict.de"
20SRC_URI="http://freedict.sourceforge.net/download/linux/${MY_P}.tar.gz" 34SRC_URI="http://freedict.sourceforge.net/download/linux/${MY_P}.tar.gz"
21 35
22SLOT="0" 36SLOT="0"
23LICENSE="GPL-2" 37LICENSE="GPL-2"
24KEYWORDS="x86 ~amd64 ppc ~sparc ~alpha ~mips ~hppa"
25 38
26DEPEND="app-text/dictd" 39DEPEND="app-text/dictd"
27 40
41# @FUNCTION: freedict_src_install
42# @DESCRIPTION:
43# The freedict src_install function, which is exported
28freedict_src_install() { 44freedict_src_install() {
29 insinto /usr/$(get_libdir)/dict 45 insinto /usr/$(get_libdir)/dict
30 doins ${MY_P}.dict.dz 46 doins ${MY_P}.dict.dz
31 doins ${MY_P}.index 47 doins ${MY_P}.index
32} 48}

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.20