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

Diff of /eclass/freedict.eclass

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

Revision 1.2 Revision 1.11
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2004 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.2 2003/03/18 03:54:48 seemant Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/freedict.eclass,v 1.11 2005/07/06 20:20:03 agriffis Exp $
4 4
5# Author: Seemant Kulleen <seemant@gentoo.org> 5# Author: Seemant Kulleen <seemant@gentoo.org>
6# This eclass exists to ease the installation of freedict translation 6# This eclass exists to ease the installation of freedict translation
7# dictionaries. The only variables which need to be defined in the actual 7# dictionaries. The only variables which need to be defined in the actual
8# ebuilds are FORLANG and TOLANG for the source and target languages, 8# ebuilds are FORLANG and TOLANG for the source and target languages,
9# respectively. 9# respectively.
10
11inherit eutils
12
13INHERITED="$INHERITED $ECLASS"
10 14
11IUSE="" 15IUSE=""
12 16
13MY_P=${PN/freedict-/} 17MY_P=${PN/freedict-/}
14 18
17HOMEPAGE="http://www.freedict.de" 21HOMEPAGE="http://www.freedict.de"
18SRC_URI="http://freedict.sourceforge.net/download/linux/${MY_P}.tar.gz" 22SRC_URI="http://freedict.sourceforge.net/download/linux/${MY_P}.tar.gz"
19 23
20SLOT="0" 24SLOT="0"
21LICENSE="GPL-2" 25LICENSE="GPL-2"
22KEYWORDS="x86 ~ppc ~sparc ~alpha ~mips ~hppa ~arm" 26KEYWORDS="x86 ~amd64 ppc ~sparc ~alpha ~mips ~hppa"
23 27
24DEPEND="app-text/dictd" 28DEPEND="app-text/dictd"
25 29
26src_install() { 30freedict_src_install() {
27 insinto /usr/lib/dict 31 insinto /usr/$(get_libdir)/dict
28 doins ${MY_P}.dict.dz 32 doins ${MY_P}.dict.dz
29 doins ${MY_P}.index 33 doins ${MY_P}.index
30} 34}
35
36EXPORT_FUNCTIONS src_install

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

  ViewVC Help
Powered by ViewVC 1.1.20