summaryrefslogtreecommitdiff
blob: d8f1889176113f26bc69d98ab686ab762652c5a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Stardict Mueller English to Russian Dictionary"
HOMEPAGE="http://mueller-dic.chat.ru/"
SRC_URI="http://mueller-dic.chat.ru/Mueller7accentGPL.tgz"

LICENSE="GPL"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="app-dicts/makedict
		gzip? ( app-text/dictd
				app-arch/gzip )"

S=${WORKDIR}/usr/local/share/dict

src_compile() {
	makedict -i mueller7 -o stardict Mueller7accentGPL.koi
	use gzip && dictzip stardict-Mueller7GPL-2.4.2/Mueller7GPL.dict
	use gzip && gzip stardict-Mueller7GPL-2.4.2/Mueller7GPL.idx
}

src_install() {
	mkdir -p "${D}"/usr/share/stardict/dic
	cp -r stardict-Mueller7GPL-2.4.2 "${D}"/usr/share/stardict/dic
	chmod 555 "${D}"/usr/share/stardict/dic/stardict-Mueller7GPL-2.4.2
	chown -R root:0 "${D}"/usr/share/stardict/dic
}