commit:     8d70d1289c400498a75c364b1078b9ed12fc6861
Author:     Jaco Kroon <jaco <AT> uls <DOT> co <DOT> za>
AuthorDate: Sat Mar 21 17:53:38 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Mar 26 07:22:00 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d70d128

net-misc/asterisk-extra-sounds: enforce at least one codec.

REQUIRED_USE was misspelt, resulting in the enforcement not happening.

http => https where possible.

Closes: https://bugs.gentoo.org/713642
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Jaco Kroon <jaco <AT> uls.co.za>
Closes: https://github.com/gentoo/gentoo/pull/15042
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 .../asterisk-extra-sounds/asterisk-extra-sounds-1.5.2.ebuild     | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/net-misc/asterisk-extra-sounds/asterisk-extra-sounds-1.5.2.ebuild 
b/net-misc/asterisk-extra-sounds/asterisk-extra-sounds-1.5.2.ebuild
index 6f762733bdc..84c1aca7e5e 100644
--- a/net-misc/asterisk-extra-sounds/asterisk-extra-sounds-1.5.2.ebuild
+++ b/net-misc/asterisk-extra-sounds/asterisk-extra-sounds-1.5.2.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
 
 DESCRIPTION="Extra sounds for asterisk"
-HOMEPAGE="http://www.asterisk.org/";
+HOMEPAGE="https://www.asterisk.org/";
 MY_L10N="^en en_GB 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"
 
@@ -13,12 +13,12 @@ IUSE="${CODECS}"
 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
 )"
+               SRC_URI+=" ${c#+}? ( 
https://downloads.asterisk.org/pub/telephony/sounds/releases/${PN}-${l#^}-${c#+}-${PV}.tar.gz
 )"
        done
        [[ "${l}" = ^* ]] || SRC_URI+=" )"
 done
 
-REQUIRE_USE="|| ( ${CODECS//+/} )"
+REQUIRED_USE="|| ( ${CODECS//+/} )"
 
 LICENSE="CC-BY-SA-3.0"
 SLOT="0"
@@ -66,7 +66,6 @@ src_install() {
        diropts -m 0755 -o root -g root
        insopts -m 0644 -o root -g root
 
-       dodir /var/lib/asterisk/sounds
        insinto /var/lib/asterisk/sounds
        doins -r .
 }

Reply via email to