diff options
author | Ulrich Müller <ulm@gentoo.org> | 2018-01-07 13:02:16 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2018-01-07 13:03:34 +0100 |
commit | 358a51718a528645a890dbed23e37f3e8c8de4f0 (patch) | |
tree | 60ef3844311e875504a5981311fae039c2904251 /net-misc/asterisk-extra-sounds | |
parent | net-misc/asterisk-core-sounds: Migrate from LINGUAS to L10N. (diff) | |
download | gentoo-358a51718a528645a890dbed23e37f3e8c8de4f0.tar.gz gentoo-358a51718a528645a890dbed23e37f3e8c8de4f0.tar.bz2 gentoo-358a51718a528645a890dbed23e37f3e8c8de4f0.zip |
net-misc/asterisk-extra-sounds: Migrate from LINGUAS to L10N.
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'net-misc/asterisk-extra-sounds')
-rw-r--r-- | net-misc/asterisk-extra-sounds/asterisk-extra-sounds-1.4.11.ebuild | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net-misc/asterisk-extra-sounds/asterisk-extra-sounds-1.4.11.ebuild b/net-misc/asterisk-extra-sounds/asterisk-extra-sounds-1.4.11.ebuild index 8ca668e30853..7f2584c7fa43 100644 --- a/net-misc/asterisk-extra-sounds/asterisk-extra-sounds-1.4.11.ebuild +++ b/net-misc/asterisk-extra-sounds/asterisk-extra-sounds-1.4.11.ebuild @@ -1,17 +1,17 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI="2" DESCRIPTION="Extra sounds for asterisk" HOMEPAGE="http://www.asterisk.org/" -LINGUAS="^en fr" # ^ is used to indicate to the loops below to NOT set this as an optional +MY_L10N="^en fr" # ^ is used to indicate to the loops below to NOT set this as an optional CODECS="alaw g722 g729 +gsm siren7 siren14 sln16 ulaw wav" SRC_URI="" IUSE="${CODECS}" -for l in ${LINGUAS}; do - [[ "${l}" != ^* ]] && IUSE+=" linguas_${l}" && SRC_URI+=" linguas_${l}? (" +for l in ${MY_L10N}; do + [[ "${l}" != ^* ]] && IUSE+=" l10n_${l}" && SRC_URI+=" l10n_${l}? (" for c in ${CODECS}; do SRC_URI+=" ${c#+}? ( http://downloads.asterisk.org/pub/telephony/sounds/releases/${PN}-${l#^}-${c#+}-${PV}.tar.gz )" done @@ -39,8 +39,8 @@ src_unpack() { } src_install() { - for l in ${LINGUAS}; do - if [[ "${l}" = ^* ]] || use linguas_${l}; then + for l in ${MY_L10N}; do + if [[ "${l}" = ^* ]] || use l10n_${l}; then l="${l#^}" dodoc ${l}/CHANGES-${PN%-sounds}-${l}-${PV} ${l}/${PN#asterisk-}-${l}.txt rm ${l}/CHANGES-${PN%-sounds}-${l}-${PV} ${l}/${PN#asterisk-}-${l}.txt |