summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2018-11-09 21:07:42 +0700
committerAndrey Grozin <grozin@gentoo.org>2018-11-09 21:07:42 +0700
commit37baed5e82bada2d220e641ebf3f06c65a5bd44b (patch)
tree62afa00c11895b86fae9d7a609fd405f6a10b4d1 /app-text/coolreader/coolreader-3.2.2.1-r2.ebuild
parentdev-python/logutils: eapi7 + py3_7 (diff)
downloadgentoo-37baed5e82bada2d220e641ebf3f06c65a5bd44b.tar.gz
gentoo-37baed5e82bada2d220e641ebf3f06c65a5bd44b.tar.bz2
gentoo-37baed5e82bada2d220e641ebf3f06c65a5bd44b.zip
app-text/coolreader: fix building with USE=wxwidgets
Fixes: https://bugs.gentoo.org/670206 Signed-off-by: Andrey Grozin <grozin@gentoo.org> Package-Manager: Portage-2.3.41, Repoman-2.3.9
Diffstat (limited to 'app-text/coolreader/coolreader-3.2.2.1-r2.ebuild')
-rw-r--r--app-text/coolreader/coolreader-3.2.2.1-r2.ebuild10
1 files changed, 6 insertions, 4 deletions
diff --git a/app-text/coolreader/coolreader-3.2.2.1-r2.ebuild b/app-text/coolreader/coolreader-3.2.2.1-r2.ebuild
index 71c68d68f32..db5d2760de9 100644
--- a/app-text/coolreader/coolreader-3.2.2.1-r2.ebuild
+++ b/app-text/coolreader/coolreader-3.2.2.1-r2.ebuild
@@ -76,10 +76,12 @@ src_configure() {
src_install() {
cmake-utils_src_install
- mv "${D}"usr/share/doc/cr3/changelog.gz "${D}"usr/share/doc/${PF}/ || die "mv changelog.gz failed"
- rmdir "${D}"usr/share/doc/cr3 || die "rmdir doc/cr3 failed"
- gunzip "${D}"usr/share/doc/${PF}/changelog.gz || die "gunzip changelog.gz failed"
- gunzip "${D}"usr/share/man/man1/cr3.1.gz || die "gunzip cr3.1.gz failed"
+ if ! use wxwidgets; then
+ mv "${D}"usr/share/doc/cr3/changelog.gz "${D}"usr/share/doc/${PF}/ || die "mv changelog.gz failed"
+ rmdir "${D}"usr/share/doc/cr3 || die "rmdir doc/cr3 failed"
+ gunzip "${D}"usr/share/doc/${PF}/changelog.gz || die "gunzip changelog.gz failed"
+ gunzip "${D}"usr/share/man/man1/cr3.1.gz || die "gunzip cr3.1.gz failed"
+ fi
}
pkg_postinst() {