commit: 3b44502978f1322cfd15702e91da9ff0c226949a Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> AuthorDate: Fri Aug 14 13:56:51 2020 +0000 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> CommitDate: Fri Aug 14 13:57:04 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b445029
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 <AT> gentoo.org> ...nd-manual-6.15.ebuild => csound-manual-6.15-r1.ebuild} | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app-doc/csound-manual/csound-manual-6.15.ebuild b/app-doc/csound-manual/csound-manual-6.15-r1.ebuild similarity index 79% rename from app-doc/csound-manual/csound-manual-6.15.ebuild rename to app-doc/csound-manual/csound-manual-6.15-r1.ebuild index aed36a01f91..57b53d8d76a 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
