icad-tone-detection: 2.4->2.8.6, set binary to executable

This commit is contained in:
Rick Farina (Zero_Chaos) 2025-09-04 08:13:07 -04:00
parent 488932d367
commit 1d62c8f9d9
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
2 changed files with 13 additions and 2 deletions

View file

@ -1 +1 @@
DIST icad-tone-detection-2.4.gh.tar.gz 2355048 BLAKE2B 3adcfd66776987328017a5870cc84f8ffe06cc075e95827afd121190f3d1c498510710598a5ed493a9e998ccc55f7818098f6ca91c777f9e271ad4863944c350 SHA512 6fff552ceaa1a8c915fbb36a3694e07e89b5af35b9c570bf44d046c4b5eca3b98766ec2b644910616188432bdcc8df2e2f89ce7e9ca4f542f27547c932bc31ca
DIST icad-tone-detection-2.8.6.gh.tar.gz 2355048 BLAKE2B 3adcfd66776987328017a5870cc84f8ffe06cc075e95827afd121190f3d1c498510710598a5ed493a9e998ccc55f7818098f6ca91c777f9e271ad4863944c350 SHA512 6fff552ceaa1a8c915fbb36a3694e07e89b5af35b9c570bf44d046c4b5eca3b98766ec2b644910616188432bdcc8df2e2f89ce7e9ca4f542f27547c932bc31ca

View file

@ -30,11 +30,22 @@ RDEPEND="
media-video/ffmpeg"
src_prepare() {
sed -i 's/debug=True/debug=False/' src/icad_tone_detection/examples/detect_test.py || die
distutils-r1_src_prepare
}
python_install() {
distutils-r1_python_install
python_newexe src/icad_tone_detection/examples/detect_test.py icad-tone-detection
if use arm64; then
fperms +x /usr/lib/python*/site-packages/icad_tone_detection/bin/linux_arm64/icad_decode
else
rm "${ED}"/usr/lib/python*/site-packages/icad_tone_detection/bin/linux_arm64/icad_decode
fi
if use amd64; then
fperms +x /usr/lib/python*/site-packages/icad_tone_detection/bin/linux_x86_64/icad_decode
else
rm "${ED}"/usr/lib/python*/site-packages/icad_tone_detection/bin/linux_x86_64/icad_decode
fi
rm "${ED}"/usr/lib/python*/site-packages/icad_tone_detection/bin/macos_arm64/icad_decode
rm "${ED}"/usr/lib/python*/site-packages/icad_tone_detection/bin/windows_x86_64/icad_decode.exe
}