Diff stardict-3.0.6-r3 with a stardict-4.0.0_pre20170304

/usr/portage/app-text/stardict/stardict-4.0.0_pre20170304.ebuild 2020-02-02 22:39:00.000000000 +0300
10 10
GNOME2_LA_PUNT=yes
11 11
PYTHON_COMPAT=( python2_7 )
12 12

  
13
inherit flag-o-matic gnome2 python-single-r1
13
inherit autotools flag-o-matic gnome2 python-single-r1
14 14

  
15 15
DESCRIPTION="A international dictionary supporting fuzzy and glob style matching"
16
HOMEPAGE="http://stardict-4.sourceforge.net/"
17
SRC_URI="mirror://sourceforge/${PN}-4/${P}.tar.bz2
16
HOMEPAGE="http://stardict-4.sourceforge.net/
17
	https://github.com/huzheng001/stardict-3"
18
SRC_URI="https://dev.gentoo.org/~bircoph/distfiles/${P}.tar.xz
18 19
	pronounce? ( https://${PN}-3.googlecode.com/files/WyabdcRealPeopleTTS.tar.bz2 )
19 20
	qqwry? ( mirror://gentoo/QQWry.Dat.bz2 )"
20 21

  
21 22
LICENSE="CPL-1.0 GPL-3 LGPL-2"
22 23
SLOT="0"
23
KEYWORDS="amd64 ~arm ~arm64 ppc ppc64 sparc x86"
24
IUSE="advertisement debug dictdotcn espeak examples +gucharmap
25
+htmlparse man perl +powerwordparse pronounce python qqwry spell
26
tools updateinfo +wikiparse +wordnet +xdxfparse"
24
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
25
IUSE="advertisement cal debug dictdotcn espeak examples flite
26
fortune gucharmap +htmlparse info man perl +powerwordparse
27
pronounce python qqwry spell tools updateinfo +wikiparse +wordnet
28
+xdxfparse youdaodict"
27 29

  
28 30
RESTRICT="test"
29 31

  
30 32
COMMON_DEPEND="
31
	>=dev-libs/glib-2.16:2
33
	>=dev-libs/glib-2.32:2
32 34
	dev-libs/libsigc++:2=
35
	media-libs/libcanberra[gtk3]
33 36
	sys-libs/zlib:=
34 37
	x11-libs/gdk-pixbuf:2
35
	>=x11-libs/gtk+-2.20:2
38
	x11-libs/gtk+:3
36 39
	x11-libs/libX11
37 40
	x11-libs/pango
38
	gucharmap? ( gnome-extra/gucharmap:0= )
41
	espeak? ( >=app-accessibility/espeak-1.29 )
42
	flite? ( app-accessibility/flite )
43
	gucharmap? ( gnome-extra/gucharmap:2.90= )
39 44
	spell? ( >=app-text/enchant-1.2:0 )
40 45
	tools? (
41 46
		dev-db/mysql-connector-c
47
		dev-libs/expat
42 48
		dev-libs/libpcre:=
43 49
		dev-libs/libxml2:=
44 50
		python? ( ${PYTHON_DEPS} )
45 51
	)
46 52
"
47 53
RDEPEND="${COMMON_DEPEND}
48
	espeak? ( >=app-accessibility/espeak-1.29 )
54
	info? ( sys-apps/texinfo )
55
	fortune? ( games-misc/fortune-mod )
49 56
	perl? ( dev-lang/perl )
50 57
"
51 58
DEPEND="${COMMON_DEPEND}
......
61 68
# docs are messy, installed manually below
62 69
DOCS=""
63 70

  
71
PATCHES=( "${FILESDIR}/${PN}-4.0.0_pre20160518-tabfile.patch" )
72

  
64 73
src_prepare() {
65 74
	# From Fedora
66 75
	# Remove unneeded sigc++ header files to make it sure
......
82 91
		sed -i '1 a # -*- coding: utf-8 -*-' tools/src/uyghur2dict.py || die
83 92
	fi
84 93

  
94
	# bug 604318
95
	sed -i '/AM_GCONF_SOURCE_2/d' dict/configure.ac || die
96

  
85 97
	eapply_user
98
	eautoreconf
86 99
	gnome2_src_prepare
87 100
}
88 101

  
89 102
src_configure() {
90
	# Hint: EXTRA_ECONF="--enable-gnome-support" and manual install of
91
	# libbonobo-2, libgnome-2, libgnomeui-2, gconf-2 and orbit-2 will
92
	# give you GNOME 2.x support, that is otherwise considered deprecated
93
	# because of the deep GNOME 2.x core library dependencies
94

  
95 103
	# Festival plugin crashes, bug 188684. Disable for now.
104
	# Gnome2 support is disabled due to deprecation request, bug 644346
96 105
	gnome2_src_configure \
106
		--disable-darwin-support \
97 107
		--disable-festival \
98 108
		--disable-gnome-support \
99 109
		--disable-gpe-support \
110
		--disable-maemo-support \
100 111
		--disable-schemas-install \
101 112
		--disable-scrollkeeper \
102 113
		$(use_enable advertisement) \
114
		$(use_enable cal) \
103 115
		$(use_enable debug) \
104 116
		$(use_enable dictdotcn) \
105 117
		$(use_enable espeak) \
118
		$(use_enable flite) \
119
		$(use_enable fortune) \
106 120
		$(use_enable gucharmap) \
107 121
		$(use_enable htmlparse) \
122
		$(use_enable info) \
108 123
		$(use_enable man) \
109 124
		$(use_enable powerwordparse) \
110 125
		$(use_enable qqwry) \
......
113 128
		$(use_enable updateinfo) \
114 129
		$(use_enable wikiparse) \
115 130
		$(use_enable wordnet) \
116
		$(use_enable xdxfparse)
131
		$(use_enable xdxfparse) \
132
		$(use_enable youdaodict)
117 133
}
118 134

  
119 135
src_install() {
......
124 140
	docinto dict
125 141
	dodoc dict/{AUTHORS,ChangeLog,README,TODO}
126 142
	dodoc dict/doc/{Documentation,FAQ,HowToCreateDictionary,Skins,StarDictFileFormat,TextualDictionaryFileFormat,Translation}
143
	dodoc -r dict/doc/wiki
127 144

  
128 145
	docinto lib
129 146
	dodoc lib/{AUTHORS,ChangeLog,README}
......
150 167
	# and additional scripts from tools dir
151 168
	if use tools; then
152 169
		local app
153
		local apps="${PN}-editor pydict2dic olddic2newdic oxford2dic directory2dic
154
			dictd2dic wquick2dic ec50 directory2treedic treedict2dir jdictionary mova
155
			xmlinout soothill kanjidic2 powerword kdic 21tech 21shiji buddhist
156
			tabfile cedict edict duden ${PN}-dict-update degb2utf frgb2utf
157
			jpgb2utf gmx2utf rucn kingsoft wikipedia wikipediaImage babylon
158
			${PN}2txt ${PN}-verify fest2dict i2e2dict downloadwiki
159
			ooo2dict myspell2dic exc2i2e dictbuilder tabfile2sql KangXi Unihan
160
			xiaoxuetang-ja wubi ydp2dict wordnet lingvosound2resdb
161
			resdatabase2dir dir2resdatabase ${PN}-index sd2foldoc ${PN}-text2bin
162
			${PN}-bin2text ${PN}-repair"
170
		local apps="${PN}-editor pydict2dic olddic2newdic oxford2dic directory2dic dictd2dic
171
			wquick2dic ec50 directory2treedic treedict2dir jdictionary mova xmlinout
172
			soothill kanjidic2 powerword kdic 21tech 21shiji buddhist tabfile
173
			cedict edict duden ${PN}-dict-update degb2utf frgb2utf jpgb2utf gmx2utf
174
			rucn kingsoft kingsoft2 wikipedia wikipediaImage babylon ${PN}2txt ${PN}-verify
175
			fest2dict i2e2dict downloadwiki ooo2dict myspell2dic exc2i2e
176
			dictbuilder tabfile2sql KangXi Unihan xiaoxuetang-ja wubi ydp2dict
177
			wordnet lingvosound2resdb resdatabase2dir dir2resdatabase ${PN}-index
178
			sd2foldoc
179
			${PN}-text2bin ${PN}-bin2text ${PN}-repair"
163 180

  
164 181
		use perl && apps+=" dicts-dump.pl ncce2stardict.pl parse-oxford.perl"
165 182
		use python && apps+=" hanzim2dict.py jm2stardict.py lingea-trd-decoder.py
Thank you!