Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-dicts/opendict/
Date: Mon, 05 Jun 2017 09:50:24
Message-Id: 1496656188.2c6765dcb5d7f66054d0d2a04219df35faf4c607.pacho@gentoo
1 commit: 2c6765dcb5d7f66054d0d2a04219df35faf4c607
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 5 09:49:48 2017 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 5 09:49:48 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c6765dc
7
8 app-dicts/opendict: Version bump
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 app-dicts/opendict/Manifest | 1 +
13 app-dicts/opendict/opendict-0.6.7.ebuild | 89 ++++++++++++++++++++++++++++++++
14 2 files changed, 90 insertions(+)
15
16 diff --git a/app-dicts/opendict/Manifest b/app-dicts/opendict/Manifest
17 index c953cafe80c..15a8892d430 100644
18 --- a/app-dicts/opendict/Manifest
19 +++ b/app-dicts/opendict/Manifest
20 @@ -1 +1,2 @@
21 DIST opendict-0.6.3.tar.gz 132515 SHA256 dad7723512768aeae65fead0f06a3c973b161a86658b94a66c4945beb12f45dc SHA512 687afba45f9fd271acee9f72fd3971fbc624588fe0f4194ad4499e2e64259a59c516854a7b0b1c02b3e214bf6e77e52b5b0713430e3cd5e0127c5b3c8fc02f5c WHIRLPOOL 06a48141bb1da7557d616deda3c4c18500171d4c158cb5f5cc83ca9f1f8037584ade85a742c88a4b6ab667bd6586492fed075e6a4e69fa51c8e37ece75880a62
22 +DIST opendict-0.6.7.tar.gz 169580 SHA256 d376c8a81e5747e40775214177df9d0f04d6441acaea7435e0cb7e770b6c460f SHA512 ef97ec84591bda4d8d4746fa4532de109cf03d89dfd5aa20e1775224c687b503759c020b2286e5cedd395ebce5db3b2a10495adc31fcc31dbd4fddfca6fee1f8 WHIRLPOOL 215a3f9ec80bf07c662f5cc35f1e698cfabbb74edd8c641681b562bc6a4a47b4b2fe1e889288abb8e5f213441cd501cf9c6d2ad4581501a5c90bb0048623c3d7
23
24 diff --git a/app-dicts/opendict/opendict-0.6.7.ebuild b/app-dicts/opendict/opendict-0.6.7.ebuild
25 new file mode 100644
26 index 00000000000..026546d1524
27 --- /dev/null
28 +++ b/app-dicts/opendict/opendict-0.6.7.ebuild
29 @@ -0,0 +1,89 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +PYTHON_COMPAT=( python2_7 )
35 +
36 +inherit gnome2 python-single-r1 readme.gentoo-r1
37 +
38 +DESCRIPTION="OpenDict is a free cross-platform dictionary program"
39 +HOMEPAGE="http://opendict.sourceforge.net/"
40 +SRC_URI="mirror://sourceforge/opendict/files/${P}.tar.gz"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~ppc ~x86"
45 +
46 +IUSE=""
47 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
48 +
49 +RDEPEND="${PYTHON_DEPS}
50 + dev-python/wxpython:3.0[${PYTHON_USEDEP}]
51 +"
52 +DEPEND="${RDEPEND}"
53 +
54 +DISABLE_AUTOFORMATTING="yes"
55 +DOC_CONTENTS="If you want system-wide plugins, unzip them into
56 +${ROOT}usr/share/${PN}/dictionaries/plugins
57 +
58 +Some are available from http://opendict.sourceforge.net/?cid=3"
59 +
60 +src_prepare() {
61 + sed -e "s:), '..')):), '../../../../..', 'share', 'opendict')):g" \
62 + -i "${S}/lib/info.py"
63 +
64 + gnome2_src_prepare
65 +}
66 +
67 +src_configure() {
68 + # override gnome2_src_configure
69 + default
70 +}
71 +
72 +src_compile() {
73 + # evil makefile
74 + :
75 +}
76 +
77 +src_install() {
78 + # makefile is broken, do it manually
79 +
80 + dodir /usr/share/${PN}/dictionaries/plugins # global dictionary plugins folder
81 +
82 + # Needed by GUI
83 + insinto /usr/share/${PN}
84 + doins "${S}"/copying.html
85 +
86 + insinto /usr/share/${PN}/pixmaps
87 + doins "${S}"/pixmaps/*
88 +
89 + DHOME="$(python_get_sitedir)/opendict"
90 + insinto "${DHOME}/lib"
91 + doins -r "${S}"/lib/*
92 + exeinto "${DHOME}"
93 + python_fix_shebang opendict.py
94 + doexe opendict.py
95 +
96 + dosym "${DHOME}/opendict.py" /usr/bin/opendict
97 +
98 + domenu misc/${PN}.desktop
99 +
100 + insinto /usr/share/icons/hicolor/24x24/apps/
101 + newins "${S}/pixmaps/icon-24x24.png" opendict.png
102 + insinto /usr/share/icons/hicolor/32x32/apps/
103 + newins "${S}/pixmaps/icon-32x32.png" opendict.png
104 + insinto /usr/share/icons/hicolor/48x48/apps/
105 + newins "${S}/pixmaps/icon-48x48.png" opendict.png
106 + insinto /usr/share/icons/hicolor/scalable/apps/
107 + newins "${S}/pixmaps/SVG/icon-rune.svg" opendict.svg
108 +
109 + doman opendict.1
110 + dodoc README.txt TODO.txt doc/Plugin-HOWTO.html
111 +
112 + readme.gentoo_create_doc
113 +}
114 +
115 +pkg_postinst() {
116 + gnome2_pkg_postinst
117 + readme.gentoo_print_elog
118 +}