Skip to content

Commit

Permalink
dev-qt/qt-docs: Fix broken png file
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/679146
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Apr 30, 2020
1 parent 6339329 commit bec730f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion dev-qt/qt-docs/qt-docs-5.14.2_p202003291239.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bec730f

Please sign in to comment.