summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2017-08-22 12:41:47 +0200
committerMike Gilbert <floppym@gentoo.org>2017-08-22 10:20:13 -0400
commit2826aa59327c2b17f2aec6321c5e6279a4a959e6 (patch)
tree5770a8bc9a81bea746969b5980bb6e82680d1d1b /app-i18n/opencc
parentapp-i18n/librime: Use := operator for dependency on app-i18n/opencc. (diff)
downloadgentoo-2826aa59327c2b17f2aec6321c5e6279a4a959e6.tar.gz
gentoo-2826aa59327c2b17f2aec6321c5e6279a4a959e6.tar.bz2
gentoo-2826aa59327c2b17f2aec6321c5e6279a4a959e6.zip
app-i18n/opencc: Install HTML documentation in Gentoo-preferred location.
Diffstat (limited to 'app-i18n/opencc')
-rw-r--r--app-i18n/opencc/opencc-1.0.5.ebuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/app-i18n/opencc/opencc-1.0.5.ebuild b/app-i18n/opencc/opencc-1.0.5.ebuild
index 318fb49f04b..bd885053aae 100644
--- a/app-i18n/opencc/opencc-1.0.5.ebuild
+++ b/app-i18n/opencc/opencc-1.0.5.ebuild
@@ -37,5 +37,10 @@ src_configure() {
src_install() {
cmake-utils_src_install
+ if use doc; then
+ mv "${ED}usr/share/opencc/doc/html" "${ED}usr/share/doc/${P}/html" || die
+ rmdir "${ED}usr/share/opencc/doc" || die
+ fi
+
use static-libs || find "${ED}" -name '*.la' -o -name '*.a' -exec rm {} +
}