diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-doc/csound-manual/csound-manual-6.06.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-doc/csound-manual/csound-manual-6.06.ebuild')
-rw-r--r-- | app-doc/csound-manual/csound-manual-6.06.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/app-doc/csound-manual/csound-manual-6.06.ebuild b/app-doc/csound-manual/csound-manual-6.06.ebuild new file mode 100644 index 000000000000..206f7fd6511d --- /dev/null +++ b/app-doc/csound-manual/csound-manual-6.06.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +MY_P=Csound${PV} + +DESCRIPTION="The Csound reference manual" +HOMEPAGE="http://csounds.com/" +SRC_URI=" + mirror://sourceforge/csound/${MY_P}_manual_pdf.zip + l10n_fr? ( mirror://sourceforge/csound/${MY_P}_manual-fr_pdf.zip ) + + html? ( + mirror://sourceforge/csound/${MY_P}_manual_html.zip + l10n_fr? ( mirror://sourceforge/csound/${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 + dohtml -r html-en/* + + local lang + for lang in ${LANGS} ; do + use l10n_${lang} || continue + docinto html-${lang} + dohtml -r html-${lang}/* + done + fi +} |