summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/stardict.eclass')
-rw-r--r--eclass/stardict.eclass21
1 files changed, 13 insertions, 8 deletions
diff --git a/eclass/stardict.eclass b/eclass/stardict.eclass
index fb33ba6d820c..66ab0ab99379 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.14 2008/11/23 17:58:53 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/stardict.eclass,v 1.15 2008/12/09 16:36:41 pva Exp $
# Author : Alastair Tse <liquidx@gentoo.org>
#
@@ -27,25 +27,30 @@ fi
HOMEPAGE="http://stardict.sourceforge.net/"
SRC_URI="mirror://sourceforge/stardict/${DICT_P}.tar.bz2"
-IUSE=""
+IUSE="gzip"
SLOT="0"
LICENSE="GPL-2"
DEPEND=">=app-dicts/stardict-2.4.2
- app-arch/gzip"
+ gzip? ( app-arch/gzip
+ app-text/dictd )"
S=${WORKDIR}/${DICT_P}
stardict_src_compile() {
- for file in *.idx; do
- [[ -f $file ]] && gzip ${file}
- done
+ if use gzip; then
+ for file in *.idx; do
+ [[ -f $file ]] && gzip ${file}
+ done
+ for file in *.dict; do
+ [[ -f $file ]] && dictzip ${file}
+ done
+ fi
}
stardict_src_install() {
- cd "${S}"
insinto /usr/share/stardict/dic
- doins *.dict.dz
+ doins *.dict.dz*
doins *.idx*
doins *.ifo
}