media-radio/chirp - 20260417 (gentoo)

Search

Install

Install this version:

emerge -a =media-radio/chirp-20260417

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

autounmask =media-radio/chirp-20260417

Or alternatively:

emerge --autounmask-write -a =media-radio/chirp-20260417

Package Information

Description:
A free, open-source tool for programming your radio
Homepage:
https://chirpmyradio.com/
License:
GPL-3+

Ebuild Details

Version EAPI Keywords Slot
20260417 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{11..14} )
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_PEP517=setuptools

inherit distutils-r1

DESCRIPTION="A free, open-source tool for programming your radio"
HOMEPAGE="https://chirpmyradio.com/"
SRC_URI="${P}.tar.gz"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+gui"
RESTRICT="fetch"

RDEPEND="$(python_gen_cond_dep '
	dev-python/pyserial[${PYTHON_USEDEP}]
	dev-python/requests[${PYTHON_USEDEP}]
	dev-python/six[${PYTHON_USEDEP}]
	dev-python/suds-community[${PYTHON_USEDEP}]
	gui? (
		dev-python/wxpython:4.0[${PYTHON_USEDEP}]
		dev-python/yattag[${PYTHON_USEDEP}]
	)
')"
BDEPEND="test? ( $(python_gen_cond_dep '
	dev-python/ddt[${PYTHON_USEDEP}]
	dev-python/lark[${PYTHON_USEDEP}]
	dev-python/pyyaml[${PYTHON_USEDEP}]
') )"

EPYTEST_XDIST=1
distutils_enable_tests pytest

# The alias map is an internal developer file not included in release tarballs.
# Other disabled tests require Internet access.
EPYTEST_DESELECT=(
	tests/unit/test_directory.py::TestAliasMap
	tests/unit/test_network_sources.py
	tests/unit/test_repeaterbook.py
)

pkg_nofetch() {
	einfo "Please download ${A} from https://archive.chirpmyradio.com/${PN}_next/next-${PV}/"
	einfo "place it into your DISTDIR directory."
}

python_test() {
	# From the contents of tests/ upstream currently only runs unit and driver
	# tests, and the latter can take so long that they have even got a special
	# script for only running them on drivers whose code has changed
	# with respect to origin/master.
	epytest tests/unit/
}

src_install() {
	distutils-r1_src_install
	if ! use gui; then
		rm "${ED}"/usr/bin/${PN} || die
	fi
}

USE Flags

Manage flags for this package: euse -i <flag> -p media-radio/chirp | euse -E <flag> -p media-radio/chirp | euse -D <flag> -p media-radio/chirp

Global/Standard Flags

gui
Default: Enabled (+)

Inherited Eclasses

Dependencies

RDEPEND

$(python_gen_cond_dep '
	dev-python/pyserial[${PYTHON_USEDEP}]
	dev-python/requests[${PYTHON_USEDEP}]
	dev-python/six[${PYTHON_USEDEP}]
	dev-python/suds-community[${PYTHON_USEDEP}]
	gui? (
		dev-python/wxpython:4.0[${PYTHON_USEDEP}]
		dev-python/yattag[${PYTHON_USEDEP}]
	)
')

BDEPEND

test? ( $(python_gen_cond_dep '
	dev-python/ddt[${PYTHON_USEDEP}]
	dev-python/lark[${PYTHON_USEDEP}]
	dev-python/pyyaml[${PYTHON_USEDEP}]
') )