1 |
commit: 15674585042afc82921533ba1bb1734b90beae2f |
2 |
Author: Jaco Kroon <jaco <AT> uls <DOT> co <DOT> za> |
3 |
AuthorDate: Sat Mar 21 18:30:12 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 31 08:38:59 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15674585 |
7 |
|
8 |
net-misc/asterisk-opus: initial version. |
9 |
|
10 |
This is Digium's OPUS codec implementation for asterisk. If you're |
11 |
doing WebRTC you should use this. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/655402 |
14 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
15 |
Signed-off-by: Jaco Kroon <jaco <AT> uls.co.za> |
16 |
Closes: https://github.com/gentoo/gentoo/pull/15044 |
17 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
18 |
|
19 |
net-misc/asterisk-opus/Manifest | 2 + |
20 |
.../asterisk-opus/asterisk-opus-13.0.1.3.0.ebuild | 48 ++++++++++++++++++++++ |
21 |
net-misc/asterisk-opus/metadata.xml | 16 ++++++++ |
22 |
3 files changed, 66 insertions(+) |
23 |
|
24 |
diff --git a/net-misc/asterisk-opus/Manifest b/net-misc/asterisk-opus/Manifest |
25 |
new file mode 100644 |
26 |
index 00000000000..87a613cab20 |
27 |
--- /dev/null |
28 |
+++ b/net-misc/asterisk-opus/Manifest |
29 |
@@ -0,0 +1,2 @@ |
30 |
+DIST codec_opus-13.0_1.3.0-x86_32.tar.gz 308059 BLAKE2B ec93fe29c030f2e63dffef882326c9f362e2a81c8de26eb04e96995c00acf965ea376555c0befa90bdf0f2592d40cc2e296abba720702a6cd7f6683f9784d533 SHA512 aa4aafa4c688a328eec81daafd0589fc3a25d22d374742a0500ca71763d4191a24b055e3eb6ecd9bd3a0556ef359ab9a8482b44e9c1633568136db4997284063 |
31 |
+DIST codec_opus-13.0_1.3.0-x86_64.tar.gz 343694 BLAKE2B ff43085aabbfc4f4082dc22f11b12d62ddb631b46df492baef8786a1f76cbc6b2828091867d40c77f0c268ed2ba50148fd6a1394493b595342da408d6746fe20 SHA512 0932006e8537ddee8c73b598bf04b6b552e1bf9527c65abdd6f7b8ff7ef677e251bc4fff55233e5d7e715f9ff5b928347618ed0d14a1f6bc9c6c728303593213 |
32 |
|
33 |
diff --git a/net-misc/asterisk-opus/asterisk-opus-13.0.1.3.0.ebuild b/net-misc/asterisk-opus/asterisk-opus-13.0.1.3.0.ebuild |
34 |
new file mode 100644 |
35 |
index 00000000000..43c46db99b3 |
36 |
--- /dev/null |
37 |
+++ b/net-misc/asterisk-opus/asterisk-opus-13.0.1.3.0.ebuild |
38 |
@@ -0,0 +1,48 @@ |
39 |
+# Copyright 1999-2020 Gentoo Authors |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+ |
42 |
+EAPI="7" |
43 |
+ |
44 |
+DESCRIPTION="OPUS codec and supporting files for asterisk" |
45 |
+HOMEPAGE="https://wiki.asterisk.org/wiki/display/AST/Codec+Opus" |
46 |
+ |
47 |
+AST_PV="$(ver_cut 1-2)" |
48 |
+MY_PV="$(ver_rs 2 _)" |
49 |
+ |
50 |
+SRC_URI="amd64? ( |
51 |
+ https://downloads.digium.com/pub/telephony/codec_opus/asterisk-${AST_PV}/x86-64/codec_opus-${MY_PV}-x86_64.tar.gz |
52 |
+) |
53 |
+x86? ( |
54 |
+ https://downloads.digium.com/pub/telephony/codec_opus/asterisk-${AST_PV}/x86-32/codec_opus-${MY_PV}-x86_32.tar.gz |
55 |
+)" |
56 |
+ |
57 |
+LICENSE="Digium" |
58 |
+SLOT="0" |
59 |
+KEYWORDS="-* ~amd64 ~x86" |
60 |
+ |
61 |
+RDEPEND="=net-misc/asterisk-${PV%%.*}*" |
62 |
+ |
63 |
+RESTRICT="mirror strip" |
64 |
+ |
65 |
+S="${WORKDIR}" |
66 |
+ |
67 |
+pkg_setup() { |
68 |
+ QA_FLAGS_IGNORED="/usr/$(get_libdir)/asterisk/modules/codec_opus.so" |
69 |
+} |
70 |
+ |
71 |
+src_install() { |
72 |
+ local arch |
73 |
+ |
74 |
+ if use x86; then |
75 |
+ arch=x86_32 |
76 |
+ elif use amd64; then |
77 |
+ arch=x86_64 |
78 |
+ fi |
79 |
+ |
80 |
+ dodoc codec_opus-${MY_PV}-${arch}/README |
81 |
+ insinto /usr/$(get_libdir)/asterisk/modules/ |
82 |
+ doins "codec_opus-${MY_PV}-${arch}/codec_opus.so" |
83 |
+ |
84 |
+ insinto /var/lib/asterisk/documentation/thirdparty |
85 |
+ doins "codec_opus-${MY_PV}-${arch}/codec_opus_config-en_US.xml" |
86 |
+} |
87 |
|
88 |
diff --git a/net-misc/asterisk-opus/metadata.xml b/net-misc/asterisk-opus/metadata.xml |
89 |
new file mode 100644 |
90 |
index 00000000000..e6da82c6ab9 |
91 |
--- /dev/null |
92 |
+++ b/net-misc/asterisk-opus/metadata.xml |
93 |
@@ -0,0 +1,16 @@ |
94 |
+<?xml version="1.0" encoding="UTF-8"?> |
95 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
96 |
+<pkgmetadata> |
97 |
+ <maintainer type="person"> |
98 |
+ <email>jaco@××××××.za</email> |
99 |
+ <name>Jaco Kroon</name> |
100 |
+ </maintainer> |
101 |
+ <maintainer type="project"> |
102 |
+ <email>proxy-maint@g.o</email> |
103 |
+ <name>Proxy Maintainers</name> |
104 |
+ </maintainer> |
105 |
+ <longdescription lang="en"> |
106 |
+ OPUS is one of the codecs utilized for WebRTC, this one is a binary module |
107 |
+ provided by Digium (royalty free) for use in asterisk for transcoding. |
108 |
+ </longdescription> |
109 |
+</pkgmetadata> |