media-radio/icad-tone-detection - 2.8.6 (pentoo)

Search

Install

Install this version:

emerge -a =media-radio/icad-tone-detection-2.8.6

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =media-radio/icad-tone-detection-2.8.6

Or alternatively:

emerge --autounmask-write -a =media-radio/icad-tone-detection-2.8.6

Package Information

Description:
library for extracting scanner radio tones from scanner audio
Homepage:
https://github.com/thegreatcodeholio/icad_tone_detection
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
2.8.6 8 ~amd64 0
View Raw Ebuild
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{12..14} )
DISTUTILS_USE_PEP517=setuptools
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"

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="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	dev-python/numpy[${PYTHON_USEDEP}]
	dev-python/pydub[${PYTHON_USEDEP}]
	dev-python/requests[${PYTHON_USEDEP}]
	dev-python/scipy[${PYTHON_USEDEP}]
	media-video/ffmpeg"

src_prepare() {
	chmod 755 src/icad_tone_detection/bin/macos_arm64/icad_decode
	chmod 755 src/icad_tone_detection/bin/linux_x86_64/icad_decode
	chmod 755 src/icad_tone_detection/bin/linux_arm64/icad_decode
	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
		rm "${ED}"/usr/lib/python*/site-packages/icad_tone_detection/bin/linux_arm64/icad_decode
	fi
	if ! use amd64; then
		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
}

Inherited Eclasses

Dependencies

RDEPEND

	dev-python/numpy[]
	dev-python/pydub[]
	dev-python/requests[]
	dev-python/scipy[]
	media-video/ffmpeg

Manifest for 2.8.6

Type File Size Source URLs
DIST icad-tone-detection-2.8.6.gh.tar.gz 2355048 bytes https://github.com/TheGreatCodeholio/icad_tone_detection/archive/07201f9dc1ab096b371a12c8c5b4805091e3fd05.tar.gz