You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.3 KiB
65 lines
1.3 KiB
8 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
8 years ago
|
EAPI=6
|
||
9 years ago
|
|
||
|
MY_P=Csound${PV}
|
||
|
|
||
|
DESCRIPTION="The Csound reference manual"
|
||
|
HOMEPAGE="http://csounds.com/"
|
||
|
SRC_URI="
|
||
8 years ago
|
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 )
|
||
9 years ago
|
|
||
|
html? (
|
||
8 years ago
|
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 )
|
||
9 years ago
|
)"
|
||
|
|
||
8 years ago
|
LICENSE="FDL-1.2+"
|
||
9 years ago
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE="html"
|
||
|
|
||
|
LANGS=" fr"
|
||
8 years ago
|
IUSE+="${LANGS// / l10n_}"
|
||
9 years ago
|
|
||
|
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
|
||
8 years ago
|
use l10n_${lang} || continue
|
||
9 years ago
|
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
|
||
8 years ago
|
docinto html
|
||
|
dodoc -r html-en/*
|
||
9 years ago
|
|
||
|
local lang
|
||
|
for lang in ${LANGS} ; do
|
||
8 years ago
|
use l10n_${lang} || continue
|
||
9 years ago
|
docinto html-${lang}
|
||
8 years ago
|
dodoc -r html-${lang}/*
|
||
9 years ago
|
done
|
||
|
fi
|
||
|
}
|