net-misc/asterisk-g729: handle QA_PREBUILT with 13.0
authorJoonas Niilola <juippis@gentoo.org>
Thu, 23 Jan 2020 17:26:28 +0000 (19:26 +0200)
committerJoonas Niilola <juippis@gentoo.org>
Thu, 23 Jan 2020 17:27:02 +0000 (19:27 +0200)
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
net-misc/asterisk-g729/asterisk-g729-13.0.3.1.9.ebuild

index 8bd7baccb9d6086a8d5b75407aa601c788d58c2a..56e63d3355f5436837dfde5293e74881ee2ba7ed 100644 (file)
@@ -30,11 +30,14 @@ RDEPEND="=net-misc/asterisk-$(ver_cut 1)*"
 
 RESTRICT="mirror strip"
 
-QA_FLAGS_IGNORED_amd64="usr/lib64/asterisk/modules/codec_g729a.so"
-QA_FLAGS_IGNORED_x86="usr/lib/asterisk/modules/codec_g729a.so"
-
 S="${WORKDIR}"
 
+pkg_setup() {
+       QA_FLAGS_IGNORED="/usr/$(get_libdir)/asterisk/modules/codec_g729a.so"
+       QA_PREBUILT="/usr/sbin/asthostid
+               /usr/sbin/astregister"
+}
+
 src_unpack() {
        local dfile