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 | 4914e80d6cf78be79b71fbd71b672a060af3d069 (patch) | |
tree | 872fefdbcfb17a0ec230f46ef86d07113e25cf12 /eclass/stardict.eclass | |
parent | Added URLs to track patches at upstream bugzilla. (diff) | |
download | historical-4914e80d6cf78be79b71fbd71b672a060af3d069.tar.gz historical-4914e80d6cf78be79b71fbd71b672a060af3d069.tar.bz2 historical-4914e80d6cf78be79b71fbd71b672a060af3d069.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 } |