diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-04-30 12:02:07 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-04-30 12:14:17 +0200 |
commit | bec730fc1c01e47bfe6805183f009973d94aca6b (patch) | |
tree | 302f85b1956fc0b1fd9f52a022c5d0d49c89a2ab /dev-qt/qt-docs | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.6.8 (diff) | |
download | gentoo-bec730fc1c01e47bfe6805183f009973d94aca6b.tar.gz gentoo-bec730fc1c01e47bfe6805183f009973d94aca6b.tar.bz2 gentoo-bec730fc1c01e47bfe6805183f009973d94aca6b.zip |
dev-qt/qt-docs: Fix broken png file
Closes: https://bugs.gentoo.org/679146
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-qt/qt-docs')
-rw-r--r-- | dev-qt/qt-docs/qt-docs-5.14.2_p202003291239.ebuild | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/dev-qt/qt-docs/qt-docs-5.14.2_p202003291239.ebuild b/dev-qt/qt-docs/qt-docs-5.14.2_p202003291239.ebuild index 8beec6556c99..466a8de3c9dc 100644 --- a/dev-qt/qt-docs/qt-docs-5.14.2_p202003291239.ebuild +++ b/dev-qt/qt-docs/qt-docs-5.14.2_p202003291239.ebuild @@ -77,10 +77,23 @@ for DOCUSE in ${!QT5_DOCS[@]}; do done unset DOCTAR DOCUSE -BDEPEND="app-arch/p7zip" +BDEPEND=" + app-arch/p7zip + media-libs/libpng:0 +" S=${WORKDIR}/Docs/Qt-${PV%_p*} +src_prepare() { + default + + # Fix broken png file, bug 679146 + local png=qtdoc/images/used-in-examples/demos/tweetsearch/content/resources/anonymous.png + pngfix -q --out=${png/.png/fixed.png} ${png} # see pngfix help for exit codes + [[ $? -gt 15 ]] && die "Failed to fix ${png}" + mv -f ${png/.png/fixed.png} ${png} || die +} + src_install() { # must be the same as QT5_DOCDIR insinto /usr/share/qt5-doc |