summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Savchenko <bircoph@gentoo.org>2016-12-03 17:16:25 +0300
committerAndrew Savchenko <bircoph@gentoo.org>2016-12-03 19:47:35 +0300
commit423ab92ca20594d5974fc04cc7d9ed841512f0a3 (patch)
tree379b612a6053e8fd003fe574ca6c89b79c53e26d /app-text/stardict
parentapp-text/stardict: documentation fixes (diff)
downloadgentoo-423ab92ca20594d5974fc04cc7d9ed841512f0a3.tar.gz
gentoo-423ab92ca20594d5974fc04cc7d9ed841512f0a3.tar.bz2
gentoo-423ab92ca20594d5974fc04cc7d9ed841512f0a3.zip
app-text/stardict: fix tools installation
- install perl tools on demand; - do not rename tools with names already stared with "stardict"; - install tools-related examples. Package-Manager: portage-2.3.2 Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
Diffstat (limited to 'app-text/stardict')
-rw-r--r--app-text/stardict/stardict-3.0.6-r3.ebuild17
1 files changed, 15 insertions, 2 deletions
diff --git a/app-text/stardict/stardict-3.0.6-r3.ebuild b/app-text/stardict/stardict-3.0.6-r3.ebuild
index 03ccdc0868d..e793103ecf2 100644
--- a/app-text/stardict/stardict-3.0.6-r3.ebuild
+++ b/app-text/stardict/stardict-3.0.6-r3.ebuild
@@ -22,7 +22,7 @@ LICENSE="CPL-1.0 GPL-3 LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="advertisement debug dictdotcn espeak examples +gucharmap
-+htmlparse man +powerwordparse pronounce qqwry spell tools
++htmlparse man perl +powerwordparse pronounce qqwry spell tools
updateinfo +wikiparse +wordnet +xdxfparse"
RESTRICT="test"
@@ -132,6 +132,7 @@ src_install() {
fi
# noinst_PROGRAMS with ${PN}_ prefix from tools/src/Makefile.am wrt #292773
+ # and additional scripts from tools dir
if use tools; then
local app
local apps="${PN}-editor pydict2dic olddic2newdic oxford2dic directory2dic
@@ -145,12 +146,24 @@ src_install() {
resdatabase2dir dir2resdatabase ${PN}-index sd2foldoc ${PN}-text2bin
${PN}-bin2text ${PN}-repair"
+ use perl && apps+=" dicts-dump.pl ncce2stardict.pl parse-oxford.perl"
+
for app in ${apps}; do
- newbin tools/src/${app} ${PN}_${app}
+ if [[ "${app}" =~ ^${PN} ]]; then
+ dobin "tools/src/${app}"
+ else
+ newbin "tools/src/${app}" "${PN}_${app}"
+ fi
done
docinto tools
dodoc tools/{AUTHORS,ChangeLog,README}
+
+ if use examples; then
+ insinto tools
+ insinto /usr/share/doc/${PF}/tools
+ doins tools/src/{dictbuilder.{example,readme},example.ifo,example_treedict.tar.bz2}
+ fi
fi
}