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

Contents of /eclass/freedict.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.18 - (show annotations) (download)
Sat Mar 29 02:08:46 2008 UTC (6 years, 8 months ago) by philantrop
Branch: MAIN
Changes since 1.17: +22 -4 lines
Added a patch to make freedict.eclass ready for eclass-manpages. Thanks, mren, for providing it on bug 211225.

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/freedict.eclass,v 1.17 2007/01/25 21:56:21 eroyf Exp $
4
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:
13 # This eclass exists to ease the installation of freedict translation
14 # dictionaries. The only variables which need to be defined in the actual
15 # ebuilds are FORLANG and TOLANG for the source and target languages,
16 # respectively.
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
26 inherit eutils
27
28 IUSE=""
29
30 MY_P=${PN/freedict-/}
31
32 S="${WORKDIR}"
33 DESCRIPTION="Freedict for language translation from ${FORLANG} to ${TOLANG}"
34 HOMEPAGE="http://www.freedict.de"
35 SRC_URI="http://freedict.sourceforge.net/download/linux/${MY_P}.tar.gz"
36
37 SLOT="0"
38 LICENSE="GPL-2"
39
40 DEPEND="app-text/dictd"
41
42 # @FUNCTION: freedict_src_install
43 # @DESCRIPTION:
44 # The freedict src_install function, which is exported
45 freedict_src_install() {
46 insinto /usr/$(get_libdir)/dict
47 doins ${MY_P}.dict.dz
48 doins ${MY_P}.index
49 }
50
51 EXPORT_FUNCTIONS src_install

  ViewVC Help
Powered by ViewVC 1.1.20