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, 03 Dec 2016 16:47:43
Message-Id: 1480783654.0199fbe7d6a4830259302f243a53b428e2a7099f.bircoph@gentoo
1 commit: 0199fbe7d6a4830259302f243a53b428e2a7099f
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 3 06:51:22 2016 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 3 16:47:34 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0199fbe7
7
8 app-text/stardict: documentation fixes
9
10 - install all docs, but omit zero or dummy files;
11 - install tools docs on demand;
12 - install examples on demand.
13
14 Package-Manager: portage-2.3.2
15 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
16
17 app-text/stardict/stardict-3.0.6-r3.ebuild | 33 +++++++++++++++++++++++++-----
18 1 file changed, 28 insertions(+), 5 deletions(-)
19
20 diff --git a/app-text/stardict/stardict-3.0.6-r3.ebuild b/app-text/stardict/stardict-3.0.6-r3.ebuild
21 index 2ee16b3..03ccdc0 100644
22 --- a/app-text/stardict/stardict-3.0.6-r3.ebuild
23 +++ b/app-text/stardict/stardict-3.0.6-r3.ebuild
24 @@ -21,9 +21,9 @@ SRC_URI="mirror://sourceforge/${PN}-4/${P}.tar.bz2
25 LICENSE="CPL-1.0 GPL-3 LGPL-2"
26 SLOT="0"
27 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
28 -IUSE="advertisement debug dictdotcn espeak +gucharmap +htmlparse
29 -man +powerwordparse pronounce qqwry spell tools updateinfo
30 -+wikiparse +wordnet +xdxfparse"
31 +IUSE="advertisement debug dictdotcn espeak examples +gucharmap
32 ++htmlparse man +powerwordparse pronounce qqwry spell tools
33 +updateinfo +wikiparse +wordnet +xdxfparse"
34
35 RESTRICT="test"
36
37 @@ -55,6 +55,9 @@ DEPEND="${COMMON_DEPEND}
38 virtual/pkgconfig
39 "
40
41 +# docs are messy, installed manually below
42 +DOCS=""
43 +
44 src_prepare() {
45 # From Fedora
46 # Remove unneeded sigc++ header files to make it sure
47 @@ -101,7 +104,19 @@ src_configure() {
48 src_install() {
49 gnome2_src_install
50
51 - dodoc dict/doc/{Documentation,FAQ,HACKING,HowToCreateDictionary,Skins,StarDictFileFormat,Translation}
52 + dodoc AUTHORS ChangeLog README
53 +
54 + docinto dict
55 + dodoc dict/{AUTHORS,ChangeLog,README,TODO}
56 + dodoc dict/doc/{Documentation,FAQ,HowToCreateDictionary,Skins,StarDictFileFormat,TextualDictionaryFileFormat,Translation}
57 +
58 + docinto lib
59 + dodoc lib/{AUTHORS,ChangeLog,README}
60 +
61 + if use examples; then
62 + insinto /usr/share/doc/${PF}/dict
63 + doins dict/doc/stardict-textual-dict*
64 + fi
65
66 if use qqwry; then
67 insinto /usr/share/${PN}/data
68 @@ -133,10 +148,14 @@ src_install() {
69 for app in ${apps}; do
70 newbin tools/src/${app} ${PN}_${app}
71 done
72 +
73 + docinto tools
74 + dodoc tools/{AUTHORS,ChangeLog,README}
75 fi
76 }
77
78 pkg_postinst() {
79 + elog
80 elog "Note: festival text to speech (TTS) plugin is not built. To use festival"
81 elog 'TTS plugin, please, emerge festival and enable "Use TTS program." at:'
82 elog '"Preferences -> Dictionary -> Sound" and fill in "Commandline" with:'
83 @@ -144,8 +163,12 @@ pkg_postinst() {
84 elog
85 elog "You will now need to install ${PN} dictionary files. If"
86 elog "you have not, execute the below to get a list of dictionaries:"
87 - elog
88 elog " emerge -s ${PN}-"
89 + elog
90 + elog "Additionally you may install any stardict dictionary from the net"
91 + elog "by unpacking it to:"
92 + elog " /usr/share/stardict/dic"
93 + elog
94
95 gnome2_pkg_postinst
96 }