Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: stardict.eclass
Date: Sun, 23 Nov 2008 17:58:56
Message-Id: E1L4JEU-0000fa-0t@stork.gentoo.org
1 pva 08/11/23 17:58:54
2
3 Modified: stardict.eclass
4 Log:
5 added possibility to gzip .idx files
6
7 Revision Changes Path
8 1.14 eclass/stardict.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/stardict.eclass?rev=1.14&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/stardict.eclass?rev=1.14&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/stardict.eclass?r1=1.13&r2=1.14
13
14 Index: stardict.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/stardict.eclass,v
17 retrieving revision 1.13
18 retrieving revision 1.14
19 diff -u -r1.13 -r1.14
20 --- stardict.eclass 27 Mar 2008 13:56:41 -0000 1.13
21 +++ stardict.eclass 23 Nov 2008 17:58:53 -0000 1.14
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2004 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/stardict.eclass,v 1.13 2008/03/27 13:56:41 pva Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/stardict.eclass,v 1.14 2008/11/23 17:58:53 pva Exp $
27
28 # Author : Alastair Tse <liquidx@g.o>
29 #
30 @@ -13,7 +13,6 @@
31 # * DICT_PREFIX - SRC_URI prefix, like "dictd_www.mova.org_"
32 # * DICT_SUFFIX - SRC_URI after the prefix.
33
34 -
35 RESTRICT="strip"
36
37 [ -z "${DICT_SUFFIX}" ] && DICT_SUFFIX=${PN#stardict-[[:lower:]]*-}
38 @@ -32,12 +31,15 @@
39 SLOT="0"
40 LICENSE="GPL-2"
41
42 -DEPEND=">=app-dicts/stardict-2.4.2"
43 +DEPEND=">=app-dicts/stardict-2.4.2
44 + app-arch/gzip"
45
46 S=${WORKDIR}/${DICT_P}
47
48 stardict_src_compile() {
49 - return
50 + for file in *.idx; do
51 + [[ -f $file ]] && gzip ${file}
52 + done
53 }
54
55 stardict_src_install() {