blob: a25ddf0a67b205f39bd1883727abfa5e511a5e47 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-dicts/goldendict/goldendict-0.9.0.ebuild,v 1.1 2010/01/23 13:04:13 hwoarang Exp $
EAPI="2"
LANGS="ru"
inherit qt4-r2 eutils
DESCRIPTION="Feature-rich dictionary lookup program"
HOMEPAGE="http://goldendict.berlios.de/"
SRC_URI="mirror://berlios/${PN}/${P}-src-x11.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
S="${WORKDIR}/${P}-src"
RDEPEND=">=app-text/hunspell-1.2
dev-libs/libzip
media-libs/libogg
media-libs/libvorbis
x11-libs/libXtst
>=x11-libs/qt-webkit-4.5:4"
DEPEND="${RDEPEND}"
src_prepare() {
epatch "${FILESDIR}/${P}-gcc4.4.patch"
# duplicates stuff into a directory we don't use
sed -i \
-e s/INSTALLS\ \+=\ desktops2//g \
-e s/INSTALLS\ \+=\ icons2//g \
"${S}"/goldendict.pro || die 'sed failed'
}
src_configure() {
PREFIX=/usr eqmake4
}
src_compile() {
if use linguas_ru ; then
einfo 'Preparing translations...'
lrelease ${PN}.pro || die 'lrelease failed'
fi
emake || die 'emake failed'
}
src_install() {
qt4-r2_src_install
for X in ${LINGUAS} ; do
for Z in ${LANGS}; do
if [[ ${X} == ${Z} ]]; then
insinto /usr/share/apps/${PN}/locale
doins locale/ru.qm || die 'doins failed'
fi
done
done
}
pkg_postinst() {
elog 'The portage tree contains various stardict and dictd dictionaries, which'
elog 'GoldenDict can use. Also, check http://goldendict.berlios.de/dictionaries.php'
elog 'for more options. The myspell packages can also be useful.'
}
|