From 3b44502978f1322cfd15702e91da9ff0c226949a Mon Sep 17 00:00:00 2001 From: Miroslav Šulc Date: Fri, 14 Aug 2020 15:56:51 +0200 Subject: app-doc/csound-manual: fixed broken png in 6.15 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/737130 Package-Manager: Portage-3.0.2, Repoman-2.3.23 Signed-off-by: Miroslav Šulc --- app-doc/csound-manual/csound-manual-6.15-r1.ebuild | 79 ++++++++++++++++++++++ app-doc/csound-manual/csound-manual-6.15.ebuild | 64 ------------------ 2 files changed, 79 insertions(+), 64 deletions(-) create mode 100644 app-doc/csound-manual/csound-manual-6.15-r1.ebuild delete mode 100644 app-doc/csound-manual/csound-manual-6.15.ebuild (limited to 'app-doc') diff --git a/app-doc/csound-manual/csound-manual-6.15-r1.ebuild b/app-doc/csound-manual/csound-manual-6.15-r1.ebuild new file mode 100644 index 000000000000..57b53d8d76a5 --- /dev/null +++ b/app-doc/csound-manual/csound-manual-6.15-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_P=Csound${PV}.0 + +DESCRIPTION="The Csound reference manual" +HOMEPAGE="http://csounds.com/" +SRC_URI=" + https://github.com/csound/csound/releases/download/${PV}.0/${MY_P}_manual_pdf.zip + l10n_fr? ( https://github.com/csound/csound/releases/download/${PV}.0/${MY_P}_manual-fr_pdf.zip ) + + html? ( + https://github.com/csound/csound/releases/download/${PV}.0/${MY_P}_manual_html.zip + l10n_fr? ( https://github.com/csound/csound/releases/download/${PV}.0/${MY_P}_manual-fr_html.zip ) + )" + +LICENSE="FDL-1.2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="html" + +LANGS=" fr" +IUSE+="${LANGS// / l10n_}" + +BDEPEND=" + media-libs/libpng:0 +" +DEPEND="app-arch/unzip" + +S=${WORKDIR} + +src_unpack() { + unpack ${MY_P}_manual_pdf.zip + + if use html ; then + unpack ${MY_P}_manual_html.zip + mv html html-en + fi + + local lang + for lang in ${LANGS} ; do + use l10n_${lang} || continue + unpack ${MY_P}_manual-${lang}_pdf.zip + if use html ; then + unpack ${MY_P}_manual-${lang}_html.zip + mv html html-${lang} + fi + 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 + + if use html ; then + docinto html + dodoc -r html-en/* + + local lang + for lang in ${LANGS} ; do + use l10n_${lang} || continue + docinto html-${lang} + dodoc -r html-${lang}/* + done + fi +} diff --git a/app-doc/csound-manual/csound-manual-6.15.ebuild b/app-doc/csound-manual/csound-manual-6.15.ebuild deleted file mode 100644 index aed36a01f91d..000000000000 --- a/app-doc/csound-manual/csound-manual-6.15.ebuild +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -MY_P=Csound${PV}.0 - -DESCRIPTION="The Csound reference manual" -HOMEPAGE="http://csounds.com/" -SRC_URI=" - https://github.com/csound/csound/releases/download/${PV}.0/${MY_P}_manual_pdf.zip - l10n_fr? ( https://github.com/csound/csound/releases/download/${PV}.0/${MY_P}_manual-fr_pdf.zip ) - - html? ( - https://github.com/csound/csound/releases/download/${PV}.0/${MY_P}_manual_html.zip - l10n_fr? ( https://github.com/csound/csound/releases/download/${PV}.0/${MY_P}_manual-fr_html.zip ) - )" - -LICENSE="FDL-1.2+" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="html" - -LANGS=" fr" -IUSE+="${LANGS// / l10n_}" - -DEPEND="app-arch/unzip" - -S=${WORKDIR} - -src_unpack() { - unpack ${MY_P}_manual_pdf.zip - - if use html ; then - unpack ${MY_P}_manual_html.zip - mv html html-en - fi - - local lang - for lang in ${LANGS} ; do - use l10n_${lang} || continue - unpack ${MY_P}_manual-${lang}_pdf.zip - if use html ; then - unpack ${MY_P}_manual-${lang}_html.zip - mv html html-${lang} - fi - done -} - -src_install() { - dodoc *.pdf - - if use html ; then - docinto html - dodoc -r html-en/* - - local lang - for lang in ${LANGS} ; do - use l10n_${lang} || continue - docinto html-${lang} - dodoc -r html-${lang}/* - done - fi -} -- cgit v1.2.3-65-gdbad