Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-qt/qt-docs/
Date: Thu, 30 Apr 2020 10:14:40
Message-Id: 1588241657.bec730fc1c01e47bfe6805183f009973d94aca6b.asturm@gentoo
1 commit: bec730fc1c01e47bfe6805183f009973d94aca6b
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 30 10:02:07 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 30 10:14:17 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bec730fc
7
8 dev-qt/qt-docs: Fix broken png file
9
10 Closes: https://bugs.gentoo.org/679146
11 Package-Manager: Portage-2.3.99, Repoman-2.3.22
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 dev-qt/qt-docs/qt-docs-5.14.2_p202003291239.ebuild | 15 ++++++++++++++-
15 1 file changed, 14 insertions(+), 1 deletion(-)
16
17 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
18 index 8beec6556c9..466a8de3c9d 100644
19 --- a/dev-qt/qt-docs/qt-docs-5.14.2_p202003291239.ebuild
20 +++ b/dev-qt/qt-docs/qt-docs-5.14.2_p202003291239.ebuild
21 @@ -77,10 +77,23 @@ for DOCUSE in ${!QT5_DOCS[@]}; do
22 done
23 unset DOCTAR DOCUSE
24
25 -BDEPEND="app-arch/p7zip"
26 +BDEPEND="
27 + app-arch/p7zip
28 + media-libs/libpng:0
29 +"
30
31 S=${WORKDIR}/Docs/Qt-${PV%_p*}
32
33 +src_prepare() {
34 + default
35 +
36 + # Fix broken png file, bug 679146
37 + local png=qtdoc/images/used-in-examples/demos/tweetsearch/content/resources/anonymous.png
38 + pngfix -q --out=${png/.png/fixed.png} ${png} # see pngfix help for exit codes
39 + [[ $? -gt 15 ]] && die "Failed to fix ${png}"
40 + mv -f ${png/.png/fixed.png} ${png} || die
41 +}
42 +
43 src_install() {
44 # must be the same as QT5_DOCDIR
45 insinto /usr/share/qt5-doc