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

Contents of /eclass/freedict.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.18 - (hide annotations) (download)
Sat Mar 29 02:08:46 2008 UTC (6 years, 3 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 philantrop 1.18 # Copyright 1999-2008 Gentoo Foundation
2 seemant 1.1 # Distributed under the terms of the GNU General Public License v2
3 philantrop 1.18 # $Header: /var/cvsroot/gentoo-x86/eclass/freedict.eclass,v 1.17 2007/01/25 21:56:21 eroyf Exp $
4 seemant 1.1
5 philantrop 1.18 # @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 seemant 1.1 # 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 philantrop 1.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 kugelfang 1.8 inherit eutils
27    
28 seemant 1.1 IUSE=""
29    
30     MY_P=${PN/freedict-/}
31    
32 philantrop 1.18 S="${WORKDIR}"
33 seemant 1.1 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 mr_bones_ 1.6 DEPEND="app-text/dictd"
41 seemant 1.1
42 philantrop 1.18 # @FUNCTION: freedict_src_install
43     # @DESCRIPTION:
44     # The freedict src_install function, which is exported
45 liquidx 1.3 freedict_src_install() {
46 kugelfang 1.8 insinto /usr/$(get_libdir)/dict
47 seemant 1.1 doins ${MY_P}.dict.dz
48     doins ${MY_P}.index
49     }
50 liquidx 1.3
51     EXPORT_FUNCTIONS src_install

  ViewVC Help
Powered by ViewVC 1.1.20