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-g729/
Date: Sat, 05 Nov 2022 13:41:38
Message-Id: 1667655408.f4e40979d27e365caeaefae75dd68c3ff136ab1f.juippis@gentoo
1 commit: f4e40979d27e365caeaefae75dd68c3ff136ab1f
2 Author: Jaco Kroon <jaco <AT> uls <DOT> co <DOT> za>
3 AuthorDate: Sat Oct 22 10:59:32 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 5 13:36:48 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4e40979
7
8 net-misc/asterisk-g729: add 20.0.3.1.10
9
10 Signed-off-by: Jaco Kroon <jaco <AT> uls.co.za>
11 Closes: https://github.com/gentoo/gentoo/pull/27895
12 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
13
14 net-misc/asterisk-g729/Manifest | 2 +
15 .../asterisk-g729/asterisk-g729-20.0.3.1.10.ebuild | 68 ++++++++++++++++++++++
16 2 files changed, 70 insertions(+)
17
18 diff --git a/net-misc/asterisk-g729/Manifest b/net-misc/asterisk-g729/Manifest
19 index 26b0114aaff7..58409a983684 100644
20 --- a/net-misc/asterisk-g729/Manifest
21 +++ b/net-misc/asterisk-g729/Manifest
22 @@ -10,3 +10,5 @@ DIST codec_g729a-18.0_3.1.10-x86_32.tar.gz 475393 BLAKE2B ad7b2c7699f82f27bce00a
23 DIST codec_g729a-18.0_3.1.10-x86_64.tar.gz 476294 BLAKE2B 21fe46bdd544627dbe018730676091f9882ef25a02e6ce436f25757e46b91a6670c410da94c96fb9bc30e5e1976f3803d290049da319a2ad6230612e7805ebc6 SHA512 c7aaa72e7744309971e8abc71da8217ba181f85c163e24ca82bc0ac1276cb4e6e8107edf9f896fee941c8680188f931a14de3d2fbc5cdadfd3c9ecef53c15618
24 DIST codec_g729a-18.0_3.1.9-x86_32.tar.gz 476626 BLAKE2B 7a8a0a763fcae579ac4be2891c691e7e540881cfd723a2c25af0c0f67499fde24a3d786d9ec9dddb6ee70e77973d71af6538d52963ff33b41d1940c8b506266d SHA512 bb223c03185d33107dc3cfa9393fe07950ae3a5825e1a347e26d06e9ffb8bfbc7ba350cb1e072dd52eaa6ded5a98e53dec9be8d8c55d89f0c816058a2f6bb247
25 DIST codec_g729a-18.0_3.1.9-x86_64.tar.gz 475817 BLAKE2B ef45f1edab67b1fdb57d11340d2b3885c72d9f09f00fdccfdaa8674d61cf95ddf8ace223f29049e1e700f0bdcabd824ffbfa5382e492a1e0d0a47e1ab030d606 SHA512 12bbd2bcef0b7138d0ef261b6b1265f803526ce3c4ec371be830267e01e0e674150f17169742fe72737291b162136ea5224b320b655112cbc10fa207733c7f54
26 +DIST codec_g729a-20.0_3.1.10-x86_32.tar.gz 476843 BLAKE2B 8d014823184f17c158de9720bc903f841f290f1171344bc7a54ad7cf40627b7fcac697e642c35feef4e6eccff58b7fc85775e5d5a31c518b35a3b6c7bf258b19 SHA512 81d7d0921c9f17b31d9d3a3dd7e81844ee17bc9afd58418c2add40409c3eda932330e93411f32b5af67a42877f6abfba5d9b599812cc0655b2cc9851f1257c3c
27 +DIST codec_g729a-20.0_3.1.10-x86_64.tar.gz 476178 BLAKE2B f27787c17929deecf048c0b79f38bd3630375d1e09afe142052ff7b4f9ef3d5577a09b11a11aa551ae6d82f44cf40931550fa5612ec132befa3c9e3776b7dd58 SHA512 91df558f4c88af703bde270d0e360ebba074ab5ff917f163f8a525b7fa0e4a2e7480884effafb1253d6a67a72e640d1cdaba75c10c24283655136d8a356dec56
28
29 diff --git a/net-misc/asterisk-g729/asterisk-g729-20.0.3.1.10.ebuild b/net-misc/asterisk-g729/asterisk-g729-20.0.3.1.10.ebuild
30 new file mode 100644
31 index 000000000000..c62b6daea016
32 --- /dev/null
33 +++ b/net-misc/asterisk-g729/asterisk-g729-20.0.3.1.10.ebuild
34 @@ -0,0 +1,68 @@
35 +# Copyright 1999-2022 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI="7"
39 +
40 +DESCRIPTION="G.729 codec and supporting files for asterisk"
41 +HOMEPAGE="https://www.sangoma.com/asterisk/software/g729-codec/"
42 +
43 +AST_PV="$(ver_cut 1-2)"
44 +MY_PV="$(ver_rs 2 _)"
45 +
46 +SRC_URI="x86? (
47 + https://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-x86_32.tar.gz
48 + https://downloads.digium.com/pub/register/x86-32/register -> astregister-x86_32
49 + https://downloads.digium.com/pub/register/x86-32/asthostid -> asthostid-x86_32
50 +)
51 +amd64? (
52 + https://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-64/codec_g729a-${MY_PV}-x86_64.tar.gz
53 + https://downloads.digium.com/pub/register/x86-64/register -> astregister-x86_64
54 + https://downloads.digium.com/pub/register/x86-64/asthostid -> asthostid-x86_64
55 +)"
56 +
57 +LICENSE="Digium"
58 +SLOT="0/${AST_PV}"
59 +KEYWORDS="-* ~amd64 ~x86"
60 +
61 +RDEPEND="=net-misc/asterisk-$(ver_cut 1)*"
62 +
63 +RESTRICT="mirror strip"
64 +
65 +S="${WORKDIR}"
66 +
67 +pkg_setup() {
68 + QA_FLAGS_IGNORED="/usr/$(get_libdir)/asterisk/modules/codec_g729a.so"
69 + QA_PREBUILT="${QA_FLAGS_IGNORED}
70 + /usr/sbin/asthostid
71 + /usr/sbin/astregister"
72 +}
73 +
74 +src_unpack() {
75 + local dfile
76 +
77 + for dfile in ${A}; do
78 + [[ "${dfile}" = *.tar.gz ]] && unpack "${dfile}"
79 + cp "${DISTDIR}/${dfile}" "${WORKDIR}/" || die "Error copying ${dfile} to ${WORKDIR}"
80 + done
81 +}
82 +
83 +src_install() {
84 + local binsuffix
85 +
86 + if use x86; then
87 + binsuffix=x86_32
88 + elif use amd64; then
89 + binsuffix=x86_64
90 + fi
91 +
92 + newsbin astregister-${binsuffix} astregister
93 + newsbin asthostid-${binsuffix} asthostid
94 +
95 + dodoc codec_g729a-${MY_PV}-${binsuffix}/README
96 + insinto usr/$(get_libdir)/asterisk/modules/
97 + doins "codec_g729a-${MY_PV}-${binsuffix}/codec_g729a.so"
98 +}
99 +
100 +pkg_postinst() {
101 + einfo "Please note that Digium's register utility has been installed as astregister"
102 +}