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

Contents of /eclass/stardict.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Jun 4 13:13:59 2003 UTC (17 years, 1 month ago) by liquidx
Branch: MAIN
Branch point for: RELEASE-1_4
helper eclass for stardict dictionaries. look how simple they are now :)

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/eclass/freedict.eclass,v 1.2 2003/03/18 03:54:48 seemant 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 ECLASS="stardict"
17 INHERITED="$INHERITED $ECLASS"
18
19 RESTRICT="nostrip nosharedlib"
20
21 [ -z "${DICT_SUFFIX}" ] && DICT_SUFFIX=${PN#stardict-[a-z]*-}
22 [ -z "${DICT_P}" ] && DICT_P=stardict-${DICT_PREFIX}${DICT_SUFFIX}-${PV}
23
24 if [ -n "${FROM_LANG}" -a -n "${TO_LANG}" ]; then
25 DESCRIPTION="Stardict Dictionary ${FROM_LANG} to ${TO_LANG}"
26 elif [ -z "${DESCRIPTION}" ]; then
27 DESCRIPTION="Another Stardict Dictionary"
28 fi
29
30 HOMEPAGE="http://stardict.sourceforge.net/ ${HOMEPAGE}"
31 SRC_URI="mirror://sourceforge/stardict/${DICT_P}.tar.bz2"
32
33 SLOT="0"
34 LICENSE="GPL-2"
35 KEYWORDS="~x86"
36
37 DEPEND=">=app-dicts/stardict-2.1"
38
39 S=${WORKDIR}/${DICT_P}
40
41 stardict_src_compile() {
42 return
43 }
44
45 stardict_src_install() {
46 insinto /usr/share/stardict/dic
47 doins *.dict.dz
48 doins *.idx.gz
49 }
50
51 EXPORT_FUNCTIONS src_compile src_install

  ViewVC Help
Powered by ViewVC 1.1.20