diff options
author | Peter Volkov <pva@gentoo.org> | 2008-12-09 16:36:41 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2008-12-09 16:36:41 +0000 |
commit | 2b17c8d55d00ed3c0825bfd65261fc6c6906cfd7 (patch) | |
tree | 611c123f69f1bafc42903ff166894daff36a0ffd /eclass/stardict.eclass | |
parent | Added URLs to track patches at upstream bugzilla. (diff) | |
download | gentoo-2-2b17c8d55d00ed3c0825bfd65261fc6c6906cfd7.tar.gz gentoo-2-2b17c8d55d00ed3c0825bfd65261fc6c6906cfd7.tar.bz2 gentoo-2-2b17c8d55d00ed3c0825bfd65261fc6c6906cfd7.zip |
New feature: USE=gzip to compress .idx and .dict files. Small cleanup.
Diffstat (limited to 'eclass/stardict.eclass')
-rw-r--r-- | eclass/stardict.eclass | 21 |
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 } |