Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/asterisk-moh-opsound/
Date: Wed, 27 Nov 2019 15:18:53
Message-Id: 1574867909.48f026861983fbd3001c7515f87828b13c581e7a.juippis@gentoo
1 commit: 48f026861983fbd3001c7515f87828b13c581e7a
2 Author: Jaco Kroon <jaco <AT> uls <DOT> co <DOT> za>
3 AuthorDate: Thu Jun 13 10:39:05 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 27 15:18:29 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48f02686
7
8 net-misc/asterisk-moh-opsound: revbump + maintainership
9
10 Take maintainership.
11
12 Implement file permissions as per https://bugs.gentoo.org/507894 (but
13 does not close).
14
15 Package-Manager: Portage-2.3.76, Repoman-2.3.16
16 Signed-off-by: Jaco Kroon <jaco <AT> uls.co.za>
17 Closes: https://github.com/gentoo/gentoo/pull/13587
18 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
19
20 .../asterisk-moh-opsound-2.03-r1.ebuild | 42 ++++++++++++++++++++++
21 net-misc/asterisk-moh-opsound/metadata.xml | 10 ++++--
22 2 files changed, 49 insertions(+), 3 deletions(-)
23
24 diff --git a/net-misc/asterisk-moh-opsound/asterisk-moh-opsound-2.03-r1.ebuild b/net-misc/asterisk-moh-opsound/asterisk-moh-opsound-2.03-r1.ebuild
25 new file mode 100644
26 index 00000000000..010127bad37
27 --- /dev/null
28 +++ b/net-misc/asterisk-moh-opsound/asterisk-moh-opsound-2.03-r1.ebuild
29 @@ -0,0 +1,42 @@
30 +# Copyright 1999-2019 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="7"
34 +
35 +DESCRIPTION="asterisk moh music"
36 +HOMEPAGE="http://www.asterisk.org/"
37 +CODECS="alaw g722 g729 +gsm siren7 siren14 sln16 ulaw wav"
38 +
39 +SRC_URI=""
40 +for c in ${CODECS}; do
41 + SRC_URI+=" ${c#+}? ( http://downloads.asterisk.org/pub/telephony/sounds/releases/${PN}-${c#+}-${PV}.tar.gz )"
42 +done
43 +
44 +IUSE="${CODECS}"
45 +REQUIRED_USE="|| ( ${CODECS//+/} )"
46 +
47 +LICENSE="CC-BY-SA-3.0"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~ppc ~x86"
50 +
51 +S="${WORKDIR}"
52 +
53 +src_install() {
54 + local c
55 +
56 + for c in ${CODECS}; do
57 + if use ${c#+}; then
58 + for pf in CREDITS LICENSE CHANGES; do
59 + dodoc "$pf-$PN-${c#+}"
60 + rm "$pf-$PN-${c#+}"
61 + done
62 + fi
63 + done
64 +
65 + diropts -m 0755 -o root -g root
66 + insopts -m 0644 -o root -g root
67 +
68 + dodir /var/lib/asterisk/moh
69 + insinto /var/lib/asterisk/moh
70 + doins -r .
71 +}
72
73 diff --git a/net-misc/asterisk-moh-opsound/metadata.xml b/net-misc/asterisk-moh-opsound/metadata.xml
74 index 7413756723d..71b32add35e 100644
75 --- a/net-misc/asterisk-moh-opsound/metadata.xml
76 +++ b/net-misc/asterisk-moh-opsound/metadata.xml
77 @@ -2,14 +2,18 @@
78 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
79 <pkgmetadata>
80 <maintainer type="person">
81 - <email>chainsaw@g.o</email>
82 - <name>Tony Vroon</name>
83 + <email>jaco@××××××.za</email>
84 + <name>Jaco Kroon</name>
85 + </maintainer>
86 + <maintainer type="project">
87 + <email>proxy-maint@g.o</email>
88 + <name>Proxy Maintainers</name>
89 </maintainer>
90 <use>
91 <flag name="alaw">Install the sounds files for the alaw codec.</flag>
92 <flag name="g722">Install the sounds files for the g722 codec.</flag>
93 <flag name="g729">Install the sounds files for the g729 codec.</flag>
94 - <flag name="gsm">Install the sounds files for the +gsm codec.</flag>
95 + <flag name="gsm">Install the sounds files for the gsm codec.</flag>
96 <flag name="siren7">Install the sounds files for the siren7 codec.</flag>
97 <flag name="siren14">Install the sounds files for the siren14 codec.</flag>
98 <flag name="sln16">Install the sounds files for the sln16 codec.</flag>