summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2008-11-23 17:58:53 +0000
committerPeter Volkov <pva@gentoo.org>2008-11-23 17:58:53 +0000
commit380c9c1b761c759826979aba435d8697e8fd3b88 (patch)
treec7cc9319720ac4591d30658ce157f7e93bc3cf62 /eclass/stardict.eclass
parentStable on amd64/x86 (bug #239482) (diff)
downloadgentoo-2-380c9c1b761c759826979aba435d8697e8fd3b88.tar.gz
gentoo-2-380c9c1b761c759826979aba435d8697e8fd3b88.tar.bz2
gentoo-2-380c9c1b761c759826979aba435d8697e8fd3b88.zip
added possibility to gzip .idx files
Diffstat (limited to 'eclass/stardict.eclass')
-rw-r--r--eclass/stardict.eclass10
1 files changed, 6 insertions, 4 deletions
diff --git a/eclass/stardict.eclass b/eclass/stardict.eclass
index 1f7b5479a64f..fb33ba6d820c 100644
--- a/eclass/stardict.eclass
+++ b/eclass/stardict.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/stardict.eclass,v 1.13 2008/03/27 13:56:41 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/stardict.eclass,v 1.14 2008/11/23 17:58:53 pva Exp $
# Author : Alastair Tse <liquidx@gentoo.org>
#
@@ -13,7 +13,6 @@
# * DICT_PREFIX - SRC_URI prefix, like "dictd_www.mova.org_"
# * DICT_SUFFIX - SRC_URI after the prefix.
-
RESTRICT="strip"
[ -z "${DICT_SUFFIX}" ] && DICT_SUFFIX=${PN#stardict-[[:lower:]]*-}
@@ -32,12 +31,15 @@ IUSE=""
SLOT="0"
LICENSE="GPL-2"
-DEPEND=">=app-dicts/stardict-2.4.2"
+DEPEND=">=app-dicts/stardict-2.4.2
+ app-arch/gzip"
S=${WORKDIR}/${DICT_P}
stardict_src_compile() {
- return
+ for file in *.idx; do
+ [[ -f $file ]] && gzip ${file}
+ done
}
stardict_src_install() {