Skip to content

Commit

Permalink
app-text/coolreader: fix building with USE=wxwidgets
Browse files Browse the repository at this point in the history
Fixes: https://bugs.gentoo.org/670206
Signed-off-by: Andrey Grozin <[email protected]>
Package-Manager: Portage-2.3.41, Repoman-2.3.9
  • Loading branch information
Andrey Grozin committed Nov 9, 2018
1 parent fc7dbc8 commit 37baed5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app-text/coolreader/coolreader-3.2.2.1-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 37baed5

Please sign in to comment.