diff options
| author | Thomas Beierlein <tomjbe@gentoo.org> | 2025-11-17 09:12:22 +0100 |
|---|---|---|
| committer | Thomas Beierlein <tomjbe@gentoo.org> | 2025-11-17 09:12:53 +0100 |
| commit | 267f4f6fa819bacc2da2a11d8a4f308d2ee5be70 (patch) | |
| tree | 634c17f4d8c419d8912d88459e5529f992cc7c99 | |
| parent | a797d71cba48ec4805d53dac130bfb249fb70023 (diff) | |
| download | gentoo-267f4f6fa819bacc2da2a11d8a4f308d2ee5be70.tar.gz gentoo-267f4f6fa819bacc2da2a11d8a4f308d2ee5be70.tar.bz2 gentoo-267f4f6fa819bacc2da2a11d8a4f308d2ee5be70.zip | |
media-radio/direwolf: add 1.8.1
Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
| -rw-r--r-- | media-radio/direwolf/Manifest | 1 | ||||
| -rw-r--r-- | media-radio/direwolf/direwolf-1.8.1.ebuild | 70 |
2 files changed, 71 insertions, 0 deletions
diff --git a/media-radio/direwolf/Manifest b/media-radio/direwolf/Manifest index 61c096ebe32c..ff65a4adb98f 100644 --- a/media-radio/direwolf/Manifest +++ b/media-radio/direwolf/Manifest @@ -1,2 +1,3 @@ DIST direwolf-1.7.tar.gz 20587417 BLAKE2B 8264f1712958dcbd2888608bd032621cc4d8117ce5d6c3f4ea3e7b0a5237c4b5aab825f758538986e421debe9ba6ea5f4d75039471cf8557716867c800965efd SHA512 e09b14d7a036546e042da8b536b70d07f485d6a7224b19f5626b33e43a21c48200591fd6680ca1ee4b3c9fb5909d6f1c54ae8160877d51e06278fe19516abe1e +DIST direwolf-1.8.1.tar.gz 20000479 BLAKE2B 272fc871dc6a21f74886504f0781e47ebee4047931d4ca2ac22799efabce5ac6c3a9670e9ea19a5b0ed9c5e91eb5309eff66d5ff8b7d6c7206148baca54102d4 SHA512 cb9249de99e410bd533891af7308c7f428e119c162a282262e6947cd8163d209f13c7655444d5e7bde00c3740e585f109458548b061cb2410d536de89c43dae9 DIST direwolf-1.8.tar.gz 20000274 BLAKE2B 4484aad703b04e762659ab2fb622425be2b08d6c3d189dd3b8942f17124489767aeec221020c22c247ed6c44009b386d3d62708c4759bc24ab84cec9d82119c6 SHA512 77f76566b138a3d2d790102c1650a27a888a6344d34523715945c40383f39aad40d0f1c54c362ebe6c66c12cbfe180a2b0d1ebca94ad2a8e28d01e69084daadc diff --git a/media-radio/direwolf/direwolf-1.8.1.ebuild b/media-radio/direwolf/direwolf-1.8.1.ebuild new file mode 100644 index 000000000000..d47d142045a3 --- /dev/null +++ b/media-radio/direwolf/direwolf-1.8.1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake systemd udev + +DESCRIPTION="Decoded Information from Radio Emissions for Windows Or Linux Fans" +HOMEPAGE="https://github.com/wb2osz/direwolf/blob/master/README.md" +SRC_URI="https://github.com/wb2osz/direwolf/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2 BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" +IUSE="gps hamlib test udev" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/libgpiod:= + net-dns/avahi + media-libs/alsa-lib + gps? ( sci-geosciences/gpsd:= ) + hamlib? ( media-libs/hamlib:= ) + udev? ( virtual/libudev:= ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-1.6-use-standard-doc-dir.patch + "${FILESDIR}"/${PN}-1.8-desktop.patch +) + +src_configure() { + local mycmakeargs=( + -DCMAKE_DISABLE_FIND_PACKAGE_GPSD=$(usex !gps) + -DCMAKE_DISABLE_FIND_PACKAGE_hamlib=$(usex !hamlib) + -DCMAKE_DISABLE_FIND_PACKAGE_udev=$(usex !udev) + -DUNITTEST=$(usex test) + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + keepdir /var/log/direwolf + + # Pre-CMake, we installed a default config to /etc/direwolf. + # Should we do that now? + #insinto /etc/direwolf/ + #doins direwolf.conf + + systemd_dounit "${FILESDIR}"/direwolf.service + systemd_dounit "${FILESDIR}"/direwolf-kiss.service +} + +pkg_postinst() { + udev_reload + if [[ -z "${REPLACING_VERSIONS}" ]] ; then + einfo "The default configuration files are at:" + einfo " - ${EROOT}/usr/share/doc/${PF}/conf/direwolf.conf" + einfo " - ${EROOT}/usr/share/doc/${PF}/conf/sdr.conf" + einfo "Copy these to the /etc/direwolf/ directory to modify them." + fi +} + +pkg_postrm() { + udev_reload +} |
