/[gentoo-x86]/app-dicts/opendict/opendict-0.6.3-r1.ebuild
Gentoo

Contents of /app-dicts/opendict/opendict-0.6.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Mar 2 09:20:14 2015 UTC (3 years, 9 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stable for ppc, wrt bug #531460

(Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --include-arches="ppc", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-dicts/opendict/opendict-0.6.3-r1.ebuild,v 1.2 2015/01/29 10:32:44 pacho Exp $
4
5 EAPI=5
6 GCONF_DEBUG="no" # We skip gnome2_src_configure entirely
7 PYTHON_COMPAT=( python2_7 )
8
9 inherit eutils gnome2 python-single-r1 readme.gentoo
10
11 DESCRIPTION="OpenDict is a free cross-platform dictionary program"
12 HOMEPAGE="http://opendict.sourceforge.net/"
13 SRC_URI="http://opendict.idiles.com/files/${P}.tar.gz"
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 ppc x86"
17
18 IUSE=""
19 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
20
21 RDEPEND="${PYTHON_DEPS}
22 dev-python/wxpython:2.8[${PYTHON_USEDEP}]
23 "
24 DEPEND="${RDEPEND}"
25
26 DISABLE_AUTOFORMATTING="yes"
27 DOC_CONTENTS="If you want system-wide plugins, unzip them into
28 ${ROOT}usr/share/${PN}/dictionaries/plugins
29
30 Some are available from http://opendict.sourceforge.net/?cid=3"
31
32 src_prepare() {
33 epatch "${FILESDIR}"/${P}-pyxml.patch
34
35 sed -e "s:), '..')):), '../../../../..', 'share', 'opendict')):g" \
36 -i "${S}/lib/info.py"
37
38 gnome2_src_prepare
39 }
40
41 src_configure() {
42 # override gnome2_src_configure
43 default
44 }
45
46 src_compile() {
47 # evil makefile
48 :
49 }
50
51 src_install() {
52 # makefile is broken, do it manually
53
54 dodir /usr/share/${PN}/dictionaries/plugins # global dictionary plugins folder
55
56 # Needed by GUI
57 insinto /usr/share/${PN}
58 doins "${S}"/copying.html
59
60 insinto /usr/share/${PN}/pixmaps
61 doins "${S}"/pixmaps/*
62
63 DHOME="$(python_get_sitedir)/opendict"
64 insinto "${DHOME}/lib"
65 doins -r "${S}"/lib/*
66 exeinto "${DHOME}"
67 python_fix_shebang opendict.py
68 doexe opendict.py
69
70 dosym "${DHOME}/opendict.py" /usr/bin/opendict
71
72 domenu misc/${PN}.desktop
73
74 insinto /usr/share/icons/hicolor/24x24/apps/
75 newins "${S}/pixmaps/icon-24x24.png" opendict.png
76 insinto /usr/share/icons/hicolor/32x32/apps/
77 newins "${S}/pixmaps/icon-32x32.png" opendict.png
78 insinto /usr/share/icons/hicolor/48x48/apps/
79 newins "${S}/pixmaps/icon-48x48.png" opendict.png
80 insinto /usr/share/icons/hicolor/scalable/apps/
81 newins "${S}/pixmaps/SVG/icon-rune.svg" opendict.svg
82
83 doman opendict.1
84 dodoc README.txt TODO.txt doc/Plugin-HOWTO.html
85
86 readme.gentoo_create_doc
87 }
88
89 pkg_postinst() {
90 gnome2_pkg_postinst
91 readme.gentoo_print_elog
92 }

  ViewVC Help
Powered by ViewVC 1.1.20