commit:     e1c381e5f6849d1a16201e2ef19c0f02968b8877
Author:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 10 14:17:00 2025 +0000
Commit:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Mon Nov 10 14:17:00 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1c381e5

media-radio/direwolf: add 1.8

Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>

 media-radio/direwolf/Manifest                      |  1 +
 media-radio/direwolf/direwolf-1.8.ebuild           | 70 ++++++++++++++++++++++
 .../direwolf/files/direwolf-1.8-desktop.patch      | 16 +++++
 3 files changed, 87 insertions(+)

diff --git a/media-radio/direwolf/Manifest b/media-radio/direwolf/Manifest
index d33d3366bc63..61c096ebe32c 100644
--- a/media-radio/direwolf/Manifest
+++ b/media-radio/direwolf/Manifest
@@ -1 +1,2 @@
 DIST direwolf-1.7.tar.gz 20587417 BLAKE2B 
8264f1712958dcbd2888608bd032621cc4d8117ce5d6c3f4ea3e7b0a5237c4b5aab825f758538986e421debe9ba6ea5f4d75039471cf8557716867c800965efd
 SHA512 
e09b14d7a036546e042da8b536b70d07f485d6a7224b19f5626b33e43a21c48200591fd6680ca1ee4b3c9fb5909d6f1c54ae8160877d51e06278fe19516abe1e
+DIST direwolf-1.8.tar.gz 20000274 BLAKE2B 
4484aad703b04e762659ab2fb622425be2b08d6c3d189dd3b8942f17124489767aeec221020c22c247ed6c44009b386d3d62708c4759bc24ab84cec9d82119c6
 SHA512 
77f76566b138a3d2d790102c1650a27a888a6344d34523715945c40383f39aad40d0f1c54c362ebe6c66c12cbfe180a2b0d1ebca94ad2a8e28d01e69084daadc

diff --git a/media-radio/direwolf/direwolf-1.8.ebuild 
b/media-radio/direwolf/direwolf-1.8.ebuild
new file mode 100644
index 000000000000..d47d142045a3
--- /dev/null
+++ b/media-radio/direwolf/direwolf-1.8.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
+}

diff --git a/media-radio/direwolf/files/direwolf-1.8-desktop.patch 
b/media-radio/direwolf/files/direwolf-1.8-desktop.patch
new file mode 100644
index 000000000000..20305a6bbf3f
--- /dev/null
+++ b/media-radio/direwolf/files/direwolf-1.8-desktop.patch
@@ -0,0 +1,16 @@
+# Bug https://bugs.gentoo.org/954855
+diff --git a/cmake/cpack/direwolf.desktop.in b/cmake/cpack/direwolf.desktop.in
+index 79c63aa..cb2459c 100644
+--- a/cmake/cpack/direwolf.desktop.in
++++ b/cmake/cpack/direwolf.desktop.in
+@@ -2,9 +2,9 @@
+ Name=@APPLICATION_NAME@
+ Comment=APRS Soundcard TNC
+ Exec=@APPLICATION_DESKTOP_EXEC@
+-Icon=@CMAKE_PROJECT_NAME@_icon.png
++Icon=@CMAKE_PROJECT_NAME@_icon
+ StartupNotify=true
+ Terminal=false
+ Type=Application
+ Categories=Network;HamRadio
+ Keywords=Ham Radio;APRS;Soundcard TNC;KISS;AGWPE;AX.25

Reply via email to