Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 655402 | Differences between
and this patch

Collapse All | Expand All

(-)a/net-misc/asterisk-opus/0001-asterisk-opus-13.0.1.3.0-ebuild.patch (+101 lines)
Line 0 Link Here
1
From 443cb57cd1f07a18fba6c11fdef45f11f0d4f689 Mon Sep 17 00:00:00 2001
2
From: Jaco Kroon <jaco@iewc.co.za>
3
Date: Thu, 10 May 2018 17:53:47 +0200
4
Subject: [PATCH] asterisk-opus-13.0.1.3.0 ebuild
5
6
This adds the opus codec provided by Digium for asterisk 13 to the tree.
7
---
8
 net-misc/asterisk-opus/Manifest                    |  2 +
9
 .../asterisk-opus/asterisk-opus-13.0.1.3.0.ebuild  | 47 ++++++++++++++++++++++
10
 net-misc/asterisk-opus/metadata.xml                | 16 ++++++++
11
 3 files changed, 65 insertions(+)
12
 create mode 100644 net-misc/asterisk-opus/Manifest
13
 create mode 100644 net-misc/asterisk-opus/asterisk-opus-13.0.1.3.0.ebuild
14
 create mode 100644 net-misc/asterisk-opus/metadata.xml
15
16
diff --git a/net-misc/asterisk-opus/Manifest b/net-misc/asterisk-opus/Manifest
17
new file mode 100644
18
index 00000000000..87a613cab20
19
--- /dev/null
20
+++ b/net-misc/asterisk-opus/Manifest
21
@@ -0,0 +1,2 @@
22
+DIST codec_opus-13.0_1.3.0-x86_32.tar.gz 308059 BLAKE2B ec93fe29c030f2e63dffef882326c9f362e2a81c8de26eb04e96995c00acf965ea376555c0befa90bdf0f2592d40cc2e296abba720702a6cd7f6683f9784d533 SHA512 aa4aafa4c688a328eec81daafd0589fc3a25d22d374742a0500ca71763d4191a24b055e3eb6ecd9bd3a0556ef359ab9a8482b44e9c1633568136db4997284063
23
+DIST codec_opus-13.0_1.3.0-x86_64.tar.gz 343694 BLAKE2B ff43085aabbfc4f4082dc22f11b12d62ddb631b46df492baef8786a1f76cbc6b2828091867d40c77f0c268ed2ba50148fd6a1394493b595342da408d6746fe20 SHA512 0932006e8537ddee8c73b598bf04b6b552e1bf9527c65abdd6f7b8ff7ef677e251bc4fff55233e5d7e715f9ff5b928347618ed0d14a1f6bc9c6c728303593213
24
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
25
new file mode 100644
26
index 00000000000..6106bd1b946
27
--- /dev/null
28
+++ b/net-misc/asterisk-opus/asterisk-opus-13.0.1.3.0.ebuild
29
@@ -0,0 +1,47 @@
30
+# Copyright 1999-2018 Gentoo Foundation
31
+# Distributed under the terms of the GNU General Public License v2
32
+
33
+EAPI="6"
34
+
35
+inherit versionator multilib
36
+
37
+DESCRIPTION="OPUS codec and supporting files for asterisk"
38
+HOMEPAGE="https://wiki.asterisk.org/wiki/display/AST/Codec+Opus"
39
+
40
+MY_PV=$(replace_version_separator 2 _)
41
+AST_PV=${MY_PV%%_*}
42
+
43
+SRC_URI="x86? ( http://downloads.digium.com/pub/telephony/codec_opus/asterisk-${AST_PV}/x86-32/codec_opus-${MY_PV}-x86_32.tar.gz )
44
+amd64? ( http://downloads.digium.com/pub/telephony/codec_opus/asterisk-${AST_PV}/x86-64/codec_opus-${MY_PV}-x86_64.tar.gz )"
45
+
46
+LICENSE="Digium"
47
+SLOT="0"
48
+KEYWORDS="~amd64 ~x86"
49
+IUSE=""
50
+
51
+DEPEND=""
52
+RDEPEND="${DEPEND} =net-misc/asterisk-${PV%%.*}*"
53
+
54
+RESTRICT="mirror strip"
55
+
56
+S="${WORKDIR}"
57
+
58
+src_install() {
59
+	local arch
60
+
61
+	if use x86; then
62
+		arch=x86_32
63
+	elif use amd64; then
64
+		arch=x86_64
65
+	else
66
+		die "Ebuild only functions for x86 and amd64."
67
+	fi
68
+
69
+	dodoc codec_opus-${MY_PV}-${arch}/LICENSE
70
+	dodoc codec_opus-${MY_PV}-${arch}/README
71
+	insinto /usr/$(get_libdir)/asterisk/modules/
72
+	doins "codec_opus-${MY_PV}-${arch}/codec_opus.so"
73
+
74
+	insinto /var/lib/asterisk/documentation/thirdparty
75
+	doins "codec_opus-${MY_PV}-${arch}/codec_opus_config-en_US.xml"
76
+}
77
diff --git a/net-misc/asterisk-opus/metadata.xml b/net-misc/asterisk-opus/metadata.xml
78
new file mode 100644
79
index 00000000000..e6da82c6ab9
80
--- /dev/null
81
+++ b/net-misc/asterisk-opus/metadata.xml
82
@@ -0,0 +1,16 @@
83
+<?xml version="1.0" encoding="UTF-8"?>
84
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
85
+<pkgmetadata>
86
+	<maintainer type="person">
87
+		<email>jaco@uls.co.za</email>
88
+		<name>Jaco Kroon</name>
89
+	</maintainer>
90
+	<maintainer type="project">
91
+		<email>proxy-maint@gentoo.org</email>
92
+		<name>Proxy Maintainers</name>
93
+	</maintainer>
94
+	<longdescription lang="en">
95
+		OPUS is one of the codecs utilized for WebRTC, this one is a binary module
96
+		provided by Digium (royalty free) for use in asterisk for transcoding.
97
+	</longdescription>
98
+</pkgmetadata>
99
-- 
100
2.15.1
101
(-)a/net-misc/asterisk-opus/Manifest (+2 lines)
Line 0 Link Here
1
DIST codec_opus-13.0_1.3.0-x86_32.tar.gz 308059 BLAKE2B ec93fe29c030f2e63dffef882326c9f362e2a81c8de26eb04e96995c00acf965ea376555c0befa90bdf0f2592d40cc2e296abba720702a6cd7f6683f9784d533 SHA512 aa4aafa4c688a328eec81daafd0589fc3a25d22d374742a0500ca71763d4191a24b055e3eb6ecd9bd3a0556ef359ab9a8482b44e9c1633568136db4997284063
2
DIST codec_opus-13.0_1.3.0-x86_64.tar.gz 343694 BLAKE2B ff43085aabbfc4f4082dc22f11b12d62ddb631b46df492baef8786a1f76cbc6b2828091867d40c77f0c268ed2ba50148fd6a1394493b595342da408d6746fe20 SHA512 0932006e8537ddee8c73b598bf04b6b552e1bf9527c65abdd6f7b8ff7ef677e251bc4fff55233e5d7e715f9ff5b928347618ed0d14a1f6bc9c6c728303593213
(-)a/net-misc/asterisk-opus/asterisk-opus-13.0.1.3.0.ebuild (+47 lines)
Line 0 Link Here
1
# Copyright 1999-2018 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI="6"
5
6
inherit versionator multilib
7
8
DESCRIPTION="OPUS codec and supporting files for asterisk"
9
HOMEPAGE="https://wiki.asterisk.org/wiki/display/AST/Codec+Opus"
10
11
MY_PV=$(replace_version_separator 2 _)
12
AST_PV=${MY_PV%%_*}
13
14
SRC_URI="x86? ( http://downloads.digium.com/pub/telephony/codec_opus/asterisk-${AST_PV}/x86-32/codec_opus-${MY_PV}-x86_32.tar.gz )
15
amd64? ( http://downloads.digium.com/pub/telephony/codec_opus/asterisk-${AST_PV}/x86-64/codec_opus-${MY_PV}-x86_64.tar.gz )"
16
17
LICENSE="Digium"
18
SLOT="0"
19
KEYWORDS="-* ~amd64 ~x86"
20
IUSE=""
21
22
DEPEND=""
23
RDEPEND="${DEPEND} =net-misc/asterisk-${PV%%.*}*"
24
25
RESTRICT="mirror strip"
26
27
S="${WORKDIR}"
28
29
src_install() {
30
	local arch
31
32
	if use x86; then
33
		arch=x86_32
34
	elif use amd64; then
35
		arch=x86_64
36
	else
37
		die "Ebuild only functions for x86 and amd64."
38
	fi
39
40
	dodoc codec_opus-${MY_PV}-${arch}/LICENSE
41
	dodoc codec_opus-${MY_PV}-${arch}/README
42
	insinto /usr/$(get_libdir)/asterisk/modules/
43
	doins "codec_opus-${MY_PV}-${arch}/codec_opus.so"
44
45
	insinto /var/lib/asterisk/documentation/thirdparty
46
	doins "codec_opus-${MY_PV}-${arch}/codec_opus_config-en_US.xml"
47
}
(-)a/net-misc/asterisk-opus/metadata.xml (-1 / +16 lines)
Line 0 Link Here
0
- 
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3
<pkgmetadata>
4
	<maintainer type="person">
5
		<email>jaco@uls.co.za</email>
6
		<name>Jaco Kroon</name>
7
	</maintainer>
8
	<maintainer type="project">
9
		<email>proxy-maint@gentoo.org</email>
10
		<name>Proxy Maintainers</name>
11
	</maintainer>
12
	<longdescription lang="en">
13
		OPUS is one of the codecs utilized for WebRTC, this one is a binary module
14
		provided by Digium (royalty free) for use in asterisk for transcoding.
15
	</longdescription>
16
</pkgmetadata>

Return to bug 655402