From c8fd228fd5d9f74faa8e5cf907072fbef4bc4ee1 Mon Sep 17 00:00:00 2001 From: Anton Bolshakov Date: Tue, 3 Jun 2025 19:24:06 +0800 Subject: [PATCH] icad-tone-detection-2.4.ebuild --- media-radio/icad-tone-detection/Manifest | 2 +- ...4.ebuild => icad-tone-detection-2.4.ebuild} | 18 +++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) rename media-radio/icad-tone-detection/{icad-tone-detection-1.4.ebuild => icad-tone-detection-2.4.ebuild} (58%) diff --git a/media-radio/icad-tone-detection/Manifest b/media-radio/icad-tone-detection/Manifest index ce30a09ac..14fe5882d 100644 --- a/media-radio/icad-tone-detection/Manifest +++ b/media-radio/icad-tone-detection/Manifest @@ -1 +1 @@ -DIST icad-tone-detection-1.4.gh.tar.gz 1578924 BLAKE2B e26b72d1440cf4c50d21af1c9299670828ef848aa70532894156ec77bb8a2f80bb4016fbf0620349f1c8e17235468b0f82de5dbcc90586f8239918f7411cf14a SHA512 b40af1f5e1ea9f1c24af95f7b458a3c294bb1609202de954e8e2f2f51d6351abebff11ba4fffc5c8c9526d51e95087acaf39e498cb685c4d51700b77e20a4767 +DIST icad-tone-detection-2.4.gh.tar.gz 2355048 BLAKE2B 3adcfd66776987328017a5870cc84f8ffe06cc075e95827afd121190f3d1c498510710598a5ed493a9e998ccc55f7818098f6ca91c777f9e271ad4863944c350 SHA512 6fff552ceaa1a8c915fbb36a3694e07e89b5af35b9c570bf44d046c4b5eca3b98766ec2b644910616188432bdcc8df2e2f89ce7e9ca4f542f27547c932bc31ca diff --git a/media-radio/icad-tone-detection/icad-tone-detection-1.4.ebuild b/media-radio/icad-tone-detection/icad-tone-detection-2.4.ebuild similarity index 58% rename from media-radio/icad-tone-detection/icad-tone-detection-1.4.ebuild rename to media-radio/icad-tone-detection/icad-tone-detection-2.4.ebuild index 9568d9dde..ba4dc80fd 100644 --- a/media-radio/icad-tone-detection/icad-tone-detection-1.4.ebuild +++ b/media-radio/icad-tone-detection/icad-tone-detection-2.4.ebuild @@ -1,18 +1,22 @@ -# Copyright 2024 Gentoo Authors +# Copyright 2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{11..13} ) DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 +inherit distutils-r1 pypi DESCRIPTION="library for extracting scanner radio tones from scanner audio" HOMEPAGE="https://github.com/thegreatcodeholio/icad_tone_detection" -SRC_URI="https://github.com/TheGreatCodeholio/icad_tone_detection/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" -MY_PN="${PN//-/_}" -S="${WORKDIR}/${MY_PN}-${PV}" +#SRC_URI="https://github.com/TheGreatCodeholio/icad_tone_detection/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +HASH_COMMIT="07201f9dc1ab096b371a12c8c5b4805091e3fd05" +SRC_URI="https://github.com/TheGreatCodeholio/icad_tone_detection/archive/${HASH_COMMIT}.tar.gz -> ${P}.gh.tar.gz" + +MY_PN="${PN//-/_}" +S="${WORKDIR}/${MY_PN}-${HASH_COMMIT}" LICENSE="MIT" SLOT="0" @@ -26,11 +30,11 @@ RDEPEND=" media-video/ffmpeg" src_prepare() { - sed -i 's/debug=True/debug=False/' examples/detect_test.py || die + 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 examples/detect_test.py icad-tone-detection + python_newexe src/icad_tone_detection/examples/detect_test.py icad-tone-detection }