/[gentoo-alt]/trunk/prefix/eclass/stardict.eclass
Gentoo

Contents of /trunk/prefix/eclass/stardict.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 982 - (show annotations) (download)
Thu Feb 2 04:20:17 2006 UTC (13 years, 2 months ago) by kito
File size: 1321 byte(s)
Initial eclass import from gentoo-x86
1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/stardict.eclass,v 1.11 2005/09/19 13:45:46 gustavoz Exp $
4
5 # Author : Alastair Tse <liquidx@gentoo.org>
6 #
7 # Convienence class to do stardict dictionary installations.
8 #
9 # Usage:
10 # - Variables to set :
11 # * FROM_LANG - From this language
12 # * TO_LANG - To this language
13 # * DICT_PREFIX - SRC_URI prefix, like "dictd_www.mova.org_"
14 # * DICT_SUFFIX - SRC_URI after the prefix.
15
16
17 RESTRICT="nostrip"
18
19 [ -z "${DICT_SUFFIX}" ] && DICT_SUFFIX=${PN#stardict-[a-z]*-}
20 [ -z "${DICT_P}" ] && DICT_P=stardict-${DICT_PREFIX}${DICT_SUFFIX}-${PV}
21
22 if [ -n "${FROM_LANG}" -a -n "${TO_LANG}" ]; then
23 DESCRIPTION="Stardict Dictionary ${FROM_LANG} to ${TO_LANG}"
24 elif [ -z "${DESCRIPTION}" ]; then
25 DESCRIPTION="Another Stardict Dictionary"
26 fi
27
28 HOMEPAGE="http://stardict.sourceforge.net/"
29 SRC_URI="mirror://sourceforge/stardict/${DICT_P}.tar.bz2"
30
31 IUSE=""
32 SLOT="0"
33 LICENSE="GPL-2"
34 KEYWORDS="~sparc ~x86"
35
36 DEPEND=">=app-dicts/stardict-2.1"
37
38 S=${WORKDIR}/${DICT_P}
39
40 stardict_src_compile() {
41 return
42 }
43
44 stardict_src_install() {
45 cd ${S}
46 insinto /usr/share/stardict/dic
47 doins *.dict.dz
48 doins *.idx*
49 doins *.ifo
50 }
51
52 EXPORT_FUNCTIONS src_compile src_install

  ViewVC Help
Powered by ViewVC 1.1.20