commit: 307be21377b950759e1c6646b893ac5b9becd9dd Author: Jaco Kroon <jaco <AT> uls <DOT> co <DOT> za> AuthorDate: Wed Sep 3 12:32:28 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Sep 6 15:12:46 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=307be213
net-misc/asterisk-g729: update EAPI 7 -> 8 Signed-off-by: Jaco Kroon <jaco <AT> uls.co.za> Part-of: https://github.com/gentoo/gentoo/pull/43655 Signed-off-by: Sam James <sam <AT> gentoo.org> .../asterisk-g729-18.0.3.1.10-r2.ebuild | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/net-misc/asterisk-g729/asterisk-g729-18.0.3.1.10-r2.ebuild b/net-misc/asterisk-g729/asterisk-g729-18.0.3.1.10-r2.ebuild new file mode 100644 index 000000000000..df75c767899e --- /dev/null +++ b/net-misc/asterisk-g729/asterisk-g729-18.0.3.1.10-r2.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +DESCRIPTION="G.729 codec and supporting files for asterisk" +HOMEPAGE="https://www.asterisk.org/products/add-ons/g729-codec/" + +AST_PV="$(ver_cut 1-2)" +MY_PV="$(ver_rs 2 _)" + +MY_TOOLS_VERSION=20250903 + +SRC_URI="x86? ( + https://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-x86_32.tar.gz + https://downloads.digium.com/pub/register/x86-32/register -> astregister-x86_32-${MY_TOOLS_VERSION} + https://downloads.digium.com/pub/register/x86-32/asthostid -> asthostid-x86_32-${MY_TOOLS_VERSION} +) +amd64? ( + https://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-64/codec_g729a-${MY_PV}-x86_64.tar.gz + https://downloads.digium.com/pub/register/x86-64/register -> astregister-x86_64-${MY_TOOLS_VERSION} + https://downloads.digium.com/pub/register/x86-64/asthostid -> asthostid-x86_64-${MY_TOOLS_VERSION} +)" + +S="${WORKDIR}" + +LICENSE="Digium" +SLOT="0/${AST_PV}" +KEYWORDS="-* ~amd64 ~x86" +RESTRICT="mirror strip" + +RDEPEND="=net-misc/asterisk-$(ver_cut 1)*" + +pkg_setup() { + QA_FLAGS_IGNORED="/usr/$(get_libdir)/asterisk/modules/codec_g729a.so" + QA_PREBUILT="${QA_FLAGS_IGNORED} + /usr/sbin/asthostid + /usr/sbin/astregister" +} + +src_unpack() { + local dfile + + for dfile in ${A}; do + [[ "${dfile}" = *.tar.gz ]] && unpack "${dfile}" + cp "${DISTDIR}/${dfile}" "${WORKDIR}/" || die "Error copying ${dfile} to ${WORKDIR}" + done +} + +src_install() { + local binsuffix + + if use x86; then + binsuffix=x86_32 + elif use amd64; then + binsuffix=x86_64 + fi + + newsbin astregister-${binsuffix}-${MY_TOOLS_VERSION} astregister + newsbin asthostid-${binsuffix}-${MY_TOOLS_VERSION} asthostid + + dodoc codec_g729a-${MY_PV}-${binsuffix}/README + insinto usr/$(get_libdir)/asterisk/modules/ + doins "codec_g729a-${MY_PV}-${binsuffix}/codec_g729a.so" +} + +pkg_postinst() { + einfo "Please note that Digium's register utility has been installed as astregister" +}
