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

Diff of /eclass/freedict.eclass

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

Revision 1.5 Revision 1.19
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2011 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.5 2004/02/17 07:36:54 mr_bones_ Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/freedict.eclass,v 1.19 2011/08/22 04:46:31 vapier 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
11ECLASS="freedict" 17# @ECLASS-VARIABLE: FORLANG
12INHERITED="$INHERITED $ECLASS" 18# @DESCRIPTION:
19# Please see above for a description.
20
21# @ECLASS-VARIABLE: TOLANG
22# @DESCRIPTION:
23# Please see above for a description.
24
25inherit eutils
13 26
14IUSE="" 27IUSE=""
15 28
16MY_P=${PN/freedict-/} 29MY_P=${PN/freedict-/}
17 30
18S=${WORKDIR} 31S="${WORKDIR}"
19DESCRIPTION="Freedict for language translation from ${FORLANG} to ${TOLANG}" 32DESCRIPTION="Freedict for language translation from ${FORLANG} to ${TOLANG}"
20HOMEPAGE="http://www.freedict.de" 33HOMEPAGE="http://www.freedict.de"
21SRC_URI="http://freedict.sourceforge.net/download/linux/${MY_P}.tar.gz" 34SRC_URI="http://freedict.sourceforge.net/download/linux/${MY_P}.tar.gz"
22 35
23SLOT="0" 36SLOT="0"
24LICENSE="GPL-2" 37LICENSE="GPL-2"
25KEYWORDS="x86 ~ppc ~sparc ~alpha ~mips ~hppa"
26 38
27newdepend "app-text/dictd" 39DEPEND="app-text/dictd"
28 40
41# @FUNCTION: freedict_src_install
42# @DESCRIPTION:
43# The freedict src_install function, which is exported
29freedict_src_install() { 44freedict_src_install() {
30 insinto /usr/lib/dict 45 insinto /usr/$(get_libdir)/dict
31 doins ${MY_P}.dict.dz 46 doins ${MY_P}.dict.dz
32 doins ${MY_P}.index 47 doins ${MY_P}.index
33} 48}
34 49
35EXPORT_FUNCTIONS src_install 50EXPORT_FUNCTIONS src_install

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.19

  ViewVC Help
Powered by ViewVC 1.1.20