blob: 5f9abd552358ada0b7fca78b31911aee5cd663e3 (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-dicts/opendict/opendict-0.6.1.ebuild,v 1.8 2010/05/31 16:13:33 arfrever Exp $
inherit eutils python gnome2
DESCRIPTION="OpenDict is a free cross-platform dictionary program."
HOMEPAGE="http://opendict.sourceforge.net/"
SRC_URI="mirror://sourceforge/opendict/OpenDict-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="ppc x86"
IUSE=""
# DEPEND=">=sys-devel/gettext-0.14" # currently no xgettext run
RDEPEND=">=virtual/python-2.3
=dev-python/wxpython-2.6*
dev-python/pyxml"
S="${WORKDIR}/OpenDict-${PV}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PN}-0.6.1-desktop.patch"
sed -e "s:), '..')):), '../../../../..', 'share', 'opendict')):g" \
-i "${S}/lib/info.py"
}
src_compile() {
:
}
src_install() {
DHOME="$(python_get_sitedir)/opendict"
#dodir /usr/share/locale/lt/LC_MESSAGES
dodir /usr/share/${PN}
dodir /usr/share/${PN}/dictionaries # global dictionary folder
dodir /usr/share/${PN}/dictionaries/plugins # global dictionary plugins folder
# Needed by GUI
insinto /usr/share/${PN}
doins "${S}"/copying.html
insinto "${DHOME}/lib"
doins -r "${S}"/lib/*
insinto /usr/share/${PN}/pixmaps
doins "${S}"/pixmaps/*
exeinto "${DHOME}"
doexe opendict.py
dodir /usr/bin
dosym "${DHOME}/opendict.py" /usr/bin/opendict
domenu misc/${PN}.desktop
insinto /usr/share/icons/hicolor/24x24/apps/
newins "${S}/pixmaps/icon-24x24.png" opendict.png
insinto /usr/share/icons/hicolor/32x32/apps/
newins "${S}/pixmaps/icon-32x32.png" opendict.png
insinto /usr/share/icons/hicolor/48x48/apps/
newins "${S}/pixmaps/icon-48x48.png" opendict.png
insinto /usr/share/icons/hicolor/scalable/apps/
newins "${S}/pixmaps/SVG/icon-rune.svg" opendict.svg
doman opendict.1
dodoc ChangeLog README.txt TODO.txt doc/Plugin-HOWTO.html
}
pkg_postinst() {
python_mod_optimize $(python_get_sitedir)/opendict
gnome2_icon_cache_update
elog "If you want system-wide plugins, unzip them into"
elog "${ROOT}usr/share/${PN}/dictionaries/plugins"
elog "Some are available from http://opendict.sourceforge.net/?cid=3"
}
pkg_postrm() {
python_mod_cleanup $(python_get_sitedir)/opendict
gnome2_icon_cache_update
}
|