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