Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/stardict/
Date: Sat, 25 Aug 2018 14:45:34
Message-Id: 1535207666.df13b6011c2a8117b6c596d72fd944cfd14317fc.bircoph@gentoo
1 commit: df13b6011c2a8117b6c596d72fd944cfd14317fc
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 25 14:34:26 2018 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 25 14:34:26 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df13b601
7
8 app-text/stardict: remove old
9
10 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
11 Package-Manager: Portage-2.3.48, Repoman-2.3.10
12
13 app-text/stardict/Manifest | 1 -
14 .../stardict/stardict-4.0.0_pre20160518-r1.ebuild | 233 ---------------------
15 2 files changed, 234 deletions(-)
16
17 diff --git a/app-text/stardict/Manifest b/app-text/stardict/Manifest
18 index f88a0975552..6eaa470c5b0 100644
19 --- a/app-text/stardict/Manifest
20 +++ b/app-text/stardict/Manifest
21 @@ -1,5 +1,4 @@
22 DIST QQWry.Dat.bz2 4114875 BLAKE2B 3fb1a3b223b799645fcc7adc3d8158c80551bd1d35689a44d4e24978ef3535def3c8c45c37f066ea3969d141aef0c34c6040dcdaf6b3f337b178bbffaf52d86f SHA512 46fd677359a2144429eb9d16131ca6b19db1c086fa93e275aa3d702d3024a65d54064df931d1ed2ba5b0c1f7d9595a284f2a8995d9cd5aac96a45216422dc9ae
23 DIST WyabdcRealPeopleTTS.tar.bz2 84329208 BLAKE2B 1dd9c00e4e914b0d747876aa566db59a4b973b3ec61fa1ed7a55f885d7f415f573f2f8783eca46c565bc52df4ba3576b3a0f4e863b4f7ba688007f6d6b375209 SHA512 1553e62c139ecb005bb04163147d94aa58e4ba7f9ee3172b760c6e4776587c12bf816c42e0131c82195b7c738ec9ee5082f39b974790f5cacd522367919beaa0
24 DIST stardict-3.0.6.tar.bz2 9341740 BLAKE2B df0ccfbd485dfb514bdcf4edaf92b2faf3c11016b025ca09596adcc12738027395a049d9d27420427acdf5c46923cb43ba521d334f875070f5451b7ff147e36f SHA512 81d93324b6e8954af7c20ea6d2a3054bb564d786a21b1cb541c728da7a18a6e7ddb23e595055ccc77e6866bbb8c89fb4f17023e33664761dbe1ee8cd55768658
25 -DIST stardict-4.0.0_pre20160518.tar.xz 3605324 BLAKE2B bd160edddef547c72f3002e8a6c290a1538ea25335c8eb66b77d0bc261fe7666019b6e746b1a7d47d3098d5b35fdd091f47132a511cfa118dc3c44dea8361dbe SHA512 5fb04d7870019f17038e0750a2250a0dca44c427f427cd987542eea2bdfab91223e2c01bae844c43f7d8991d51c0420bd4d77ad6d3f7d86cf6f9c50dae7ca50e
26 DIST stardict-4.0.0_pre20170304.tar.xz 3603012 BLAKE2B c9ac41f1e27c013e9c20e5b5477889cb4933ebaf35629311362ec48e820b10a7492d464ac7eddded697ca49f56f65032a1af36088e8e731643e83532e0586e48 SHA512 ec27bb95069d727fd96cb30f2d7ad94992cc53e55903b373612e29265263ea5da2c8a25f6c9618db50dc38c33efebe13324c2b8eb09b198559a1ee70029f0b6a
27
28 diff --git a/app-text/stardict/stardict-4.0.0_pre20160518-r1.ebuild b/app-text/stardict/stardict-4.0.0_pre20160518-r1.ebuild
29 deleted file mode 100644
30 index 554d2eb7bce..00000000000
31 --- a/app-text/stardict/stardict-4.0.0_pre20160518-r1.ebuild
32 +++ /dev/null
33 @@ -1,233 +0,0 @@
34 -# Copyright 1999-2017 Gentoo Foundation
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=6
38 -
39 -# NOTE: Even though the *.dict.dz are the same as dictd/freedict's files,
40 -# their indexes seem to be in a different format. So we'll keep them
41 -# seperate for now.
42 -
43 -GNOME2_LA_PUNT=yes
44 -PYTHON_COMPAT=( python2_7 )
45 -
46 -inherit autotools flag-o-matic gnome2 python-single-r1
47 -
48 -DESCRIPTION="A international dictionary supporting fuzzy and glob style matching"
49 -HOMEPAGE="http://stardict-4.sourceforge.net/
50 - https://github.com/huzheng001/stardict-3"
51 -SRC_URI="https://dev.gentoo.org/~bircoph/distfiles/${P}.tar.xz
52 - pronounce? ( https://${PN}-3.googlecode.com/files/WyabdcRealPeopleTTS.tar.bz2 )
53 - qqwry? ( mirror://gentoo/QQWry.Dat.bz2 )"
54 -
55 -LICENSE="CPL-1.0 GPL-3 LGPL-2"
56 -SLOT="0"
57 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
58 -IUSE="advertisement cal debug dictdotcn espeak examples flite
59 -fortune gnome gucharmap +htmlparse info man perl +powerwordparse
60 -pronounce python qqwry spell tools updateinfo +wikiparse +wordnet
61 -+xdxfparse youdaodict"
62 -
63 -RESTRICT="test"
64 -
65 -COMMON_DEPEND="
66 - >=dev-libs/glib-2.32:2
67 - dev-libs/libsigc++:2=
68 - media-libs/libcanberra[gtk3]
69 - sys-libs/zlib:=
70 - x11-libs/gdk-pixbuf:2
71 - x11-libs/gtk+:3
72 - x11-libs/libX11
73 - x11-libs/pango
74 - espeak? ( >=app-accessibility/espeak-1.29 )
75 - flite? ( app-accessibility/flite )
76 - gnome? (
77 - gnome-base/gconf:2
78 - gnome-base/libbonobo
79 - gnome-base/libgnome
80 - gnome-base/orbit:2
81 - )
82 - gucharmap? ( gnome-extra/gucharmap:0= )
83 - spell? ( >=app-text/enchant-1.2 )
84 - tools? (
85 - dev-libs/expat
86 - dev-libs/libpcre:=
87 - dev-libs/libxml2:=
88 - virtual/mysql
89 - python? ( ${PYTHON_DEPS} )
90 - )
91 -"
92 -RDEPEND="${COMMON_DEPEND}
93 - info? ( sys-apps/texinfo )
94 - fortune? ( games-misc/fortune-mod )
95 - perl? ( dev-lang/perl )
96 -"
97 -DEPEND="${COMMON_DEPEND}
98 - app-text/docbook-xml-dtd:4.3
99 - app-text/gnome-doc-utils
100 - dev-libs/libxslt
101 - dev-util/intltool
102 - sys-devel/gettext
103 - virtual/pkgconfig
104 -"
105 -REQUIRED_USE="tools? ( python? ( ${PYTHON_REQUIRED_USE} ) )"
106 -
107 -# docs are messy, installed manually below
108 -DOCS=""
109 -
110 -PATCHES=( "${FILESDIR}/${P}-tabfile.patch" )
111 -
112 -src_prepare() {
113 - # From Fedora
114 - # Remove unneeded sigc++ header files to make it sure
115 - # that we are using system-wide libsigc++
116 - # (and these does not work on gcc43)
117 - find dict/src/sigc++* -name \*.h -or -name \*.cc | xargs rm -f || die
118 -
119 - # libsigc++ started to require c++11 support
120 - append-cxxflags "-std=c++11"
121 -
122 - if use python; then
123 - local f
124 - # force python shebangs handlable by python_doscript
125 - for f in tools/src/*.py; do
126 - [[ $(head -n1 "${f}") =~ ^#! ]] || continue
127 - sed -i '1 s|.*|#!/usr/bin/python|' tools/src/*.py || die
128 - done
129 - # script contains UTF-8 symbols, but has no ecoding set
130 - sed -i '1 a # -*- coding: utf-8 -*-' tools/src/uyghur2dict.py || die
131 - fi
132 -
133 - # bug 604318
134 - if ! use gnome; then
135 - sed -i '/AM_GCONF_SOURCE_2/d' dict/configure.ac || die
136 - fi
137 -
138 - eapply_user
139 - eautoreconf
140 - gnome2_src_prepare
141 -}
142 -
143 -src_configure() {
144 - # Hint: EXTRA_ECONF="--enable-gnome-support" and manual install of
145 - # libbonobo-2, libgnome-2, libgnomeui-2, gconf-2 and orbit-2 will
146 - # give you GNOME 2.x support, that is otherwise considered deprecated
147 - # because of the deep GNOME 2.x core library dependencies
148 -
149 - # Festival plugin crashes, bug 188684. Disable for now.
150 - gnome2_src_configure \
151 - --disable-darwin-support \
152 - --disable-festival \
153 - --disable-gpe-support \
154 - --disable-maemo-support \
155 - --disable-schemas-install \
156 - --disable-scrollkeeper \
157 - $(use_enable advertisement) \
158 - $(use_enable cal) \
159 - $(use_enable debug) \
160 - $(use_enable dictdotcn) \
161 - $(use_enable espeak) \
162 - $(use_enable flite) \
163 - $(use_enable fortune) \
164 - $(use_enable gnome gnome-support) \
165 - $(use_enable gucharmap) \
166 - $(use_enable htmlparse) \
167 - $(use_enable info) \
168 - $(use_enable man) \
169 - $(use_enable powerwordparse) \
170 - $(use_enable qqwry) \
171 - $(use_enable spell) \
172 - $(use_enable tools) \
173 - $(use_enable updateinfo) \
174 - $(use_enable wikiparse) \
175 - $(use_enable wordnet) \
176 - $(use_enable xdxfparse) \
177 - $(use_enable youdaodict)
178 -}
179 -
180 -src_install() {
181 - gnome2_src_install
182 -
183 - dodoc AUTHORS ChangeLog README
184 -
185 - docinto dict
186 - dodoc dict/{AUTHORS,ChangeLog,README,TODO}
187 - dodoc dict/doc/{Documentation,FAQ,HowToCreateDictionary,Skins,StarDictFileFormat,TextualDictionaryFileFormat,Translation}
188 - dodoc -r dict/doc/wiki
189 -
190 - docinto lib
191 - dodoc lib/{AUTHORS,ChangeLog,README}
192 -
193 - if use examples; then
194 - insinto /usr/share/doc/${PF}/dict
195 - doins dict/doc/stardict-textual-dict*
196 - fi
197 -
198 - if use qqwry; then
199 - insinto /usr/share/${PN}/data
200 - doins ../QQWry.Dat
201 - fi
202 -
203 - if use pronounce; then
204 - docinto WyabdcRealPeopleTTS
205 - dodoc ../WyabdcRealPeopleTTS/{README,readme.txt}
206 - rm -f ../WyabdcRealPeopleTTS/{README,readme.txt}
207 - insinto /usr/share
208 - doins -r ../WyabdcRealPeopleTTS
209 - fi
210 -
211 - # noinst_PROGRAMS with ${PN}_ prefix from tools/src/Makefile.am wrt #292773
212 - # and additional scripts from tools dir
213 - if use tools; then
214 - local app
215 - local apps="${PN}-editor pydict2dic olddic2newdic oxford2dic directory2dic dictd2dic
216 - wquick2dic ec50 directory2treedic treedict2dir jdictionary mova xmlinout
217 - soothill kanjidic2 powerword kdic 21tech 21shiji buddhist tabfile
218 - cedict edict duden ${PN}-dict-update degb2utf frgb2utf jpgb2utf gmx2utf
219 - rucn kingsoft kingsoft2 wikipedia wikipediaImage babylon ${PN}2txt ${PN}-verify
220 - fest2dict i2e2dict downloadwiki ooo2dict myspell2dic exc2i2e
221 - dictbuilder tabfile2sql KangXi Unihan xiaoxuetang-ja wubi ydp2dict
222 - wordnet lingvosound2resdb resdatabase2dir dir2resdatabase ${PN}-index
223 - sd2foldoc
224 - ${PN}-text2bin ${PN}-bin2text ${PN}-repair"
225 -
226 - use perl && apps+=" dicts-dump.pl ncce2stardict.pl parse-oxford.perl"
227 - use python && apps+=" hanzim2dict.py jm2stardict.py lingea-trd-decoder.py
228 - makevietdict.py uyghur2dict.py"
229 -
230 - for app in ${apps}; do
231 - if [[ "${app}" =~ ^${PN} ]]; then
232 - dobin "tools/src/${app}"
233 - else
234 - newbin "tools/src/${app}" "${PN}_${app}"
235 - fi
236 - done
237 - use python && python_doscript "${ED}"usr/bin/*.py
238 -
239 - docinto tools
240 - dodoc tools/{AUTHORS,ChangeLog,README}
241 -
242 - if use examples; then
243 - insinto /usr/share/doc/${PF}/tools
244 - doins tools/src/{dictbuilder.{example,readme},example.ifo,example_treedict.tar.bz2}
245 - fi
246 - fi
247 -}
248 -
249 -pkg_postinst() {
250 - elog
251 - elog "Note: festival text to speech (TTS) plugin is not built. To use festival"
252 - elog 'TTS plugin, please, emerge festival and enable "Use TTS program." at:'
253 - elog '"Preferences -> Dictionary -> Sound" and fill in "Commandline" with:'
254 - elog '"echo %s | festival --tts"'
255 - elog
256 - elog "You will now need to install ${PN} dictionary files. If"
257 - elog "you have not, execute the below to get a list of dictionaries:"
258 - elog " emerge -s ${PN}-"
259 - elog
260 - elog "Additionally you may install any stardict dictionary from the net"
261 - elog "by unpacking it to:"
262 - elog " /usr/share/stardict/dic"
263 - elog
264 -
265 - gnome2_pkg_postinst
266 -}