summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2020-08-14 15:56:51 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2020-08-14 15:57:04 +0200
commit3b44502978f1322cfd15702e91da9ff0c226949a (patch)
treed8a2ef3a5462b463a77c1c15bea10e0d28365748 /app-doc
parentdev-libs/roct-thunk-interface: 3.7.0 version bump (diff)
downloadgentoo-3b44502978f1322cfd15702e91da9ff0c226949a.tar.gz
gentoo-3b44502978f1322cfd15702e91da9ff0c226949a.tar.bz2
gentoo-3b44502978f1322cfd15702e91da9ff0c226949a.zip
app-doc/csound-manual: fixed broken png in 6.15
Closes: https://bugs.gentoo.org/737130 Package-Manager: Portage-3.0.2, Repoman-2.3.23 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'app-doc')
-rw-r--r--app-doc/csound-manual/csound-manual-6.15-r1.ebuild (renamed from app-doc/csound-manual/csound-manual-6.15.ebuild)15
1 files changed, 15 insertions, 0 deletions
diff --git a/app-doc/csound-manual/csound-manual-6.15.ebuild b/app-doc/csound-manual/csound-manual-6.15-r1.ebuild
index aed36a01f91d..57b53d8d76a5 100644
--- a/app-doc/csound-manual/csound-manual-6.15.ebuild
+++ b/app-doc/csound-manual/csound-manual-6.15-r1.ebuild
@@ -24,6 +24,9 @@ IUSE="html"
LANGS=" fr"
IUSE+="${LANGS// / l10n_}"
+BDEPEND="
+ media-libs/libpng:0
+"
DEPEND="app-arch/unzip"
S=${WORKDIR}
@@ -47,6 +50,18 @@ src_unpack() {
done
}
+src_prepare() {
+ default
+
+ # Fix broken png file, bug 737130
+ if use html; then
+ local png=html-en/images/delayk.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
+ fi
+}
+
src_install() {
dodoc *.pdf