Closes: https://bugs.gentoo.org/679146
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
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