diff options
author | Rick Farina <zerochaos@gentoo.org> | 2024-01-30 14:11:28 -0500 |
---|---|---|
committer | Rick Farina <zerochaos@gentoo.org> | 2024-01-30 14:15:20 -0500 |
commit | ac50783f3bb87e5c63c8610f75d54e248eecd607 (patch) | |
tree | baa94da1eef176c95b5df3eb32601b85a054c771 /media-radio/direwolf | |
parent | dev-db/mariadb: add 10.6.16, 10.11.6 (diff) | |
download | gentoo-ac50783f3bb87e5c63c8610f75d54e248eecd607.tar.gz gentoo-ac50783f3bb87e5c63c8610f75d54e248eecd607.tar.bz2 gentoo-ac50783f3bb87e5c63c8610f75d54e248eecd607.zip |
media-radio/direwolf: add 1.7
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Closes: https://bugs.gentoo.org/847652
Closes: https://bugs.gentoo.org/716708
Diffstat (limited to 'media-radio/direwolf')
-rw-r--r-- | media-radio/direwolf/Manifest | 1 | ||||
-rw-r--r-- | media-radio/direwolf/direwolf-1.7.ebuild | 72 |
2 files changed, 73 insertions, 0 deletions
diff --git a/media-radio/direwolf/Manifest b/media-radio/direwolf/Manifest index 2fd9f36b0d21..e59d517342c4 100644 --- a/media-radio/direwolf/Manifest +++ b/media-radio/direwolf/Manifest @@ -1,2 +1,3 @@ DIST direwolf-1.5.tar.gz 17996557 BLAKE2B 6860075b764248f1e0ff06e2a533e2e31f65851ea45d74fb0aca11827940c6df0a8bab4b6b78aa98847ee54b2b344d3c5fc8da6947f9113d2fac6d3ea427d68b SHA512 c23e2ccebd47235f76a9583e14cf8e8df299b8f7456a6388534536e7b1114b3d9b9efee43da2c1708e01a0b9534db0ed93314368e20e9002bfcd5b3a2855d8a5 DIST direwolf-1.6.tar.gz 22298168 BLAKE2B d0bffe78ecfdd7b41e4e2d458416e30e9151870d6890c3e4f65e44472699f0c1e1016fcbab5c30209978594ccaf567a8d53ae62194649e9df5cca4d4ea4689af SHA512 f29805dfea01ed5a81b133ac0a98455c2edfb6d18e0764db23c398475b11cc0e57c1c7c35c44cdaa5cf73129e8c18b836ad17dd3e9811e84277db0ef7b10bcd5 +DIST direwolf-1.7.tar.gz 20587417 BLAKE2B 8264f1712958dcbd2888608bd032621cc4d8117ce5d6c3f4ea3e7b0a5237c4b5aab825f758538986e421debe9ba6ea5f4d75039471cf8557716867c800965efd SHA512 e09b14d7a036546e042da8b536b70d07f485d6a7224b19f5626b33e43a21c48200591fd6680ca1ee4b3c9fb5909d6f1c54ae8160877d51e06278fe19516abe1e diff --git a/media-radio/direwolf/direwolf-1.7.ebuild b/media-radio/direwolf/direwolf-1.7.ebuild new file mode 100644 index 000000000000..f60c6c1ec98d --- /dev/null +++ b/media-radio/direwolf/direwolf-1.7.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2024 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=" + 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 +) + +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 + + # Fix udev rule installation path + udev_dorules "${ED}"/etc/udev/rules.d/99-direwolf-cmedia.rules + rm "${ED}"/etc/udev/rules.d/99-direwolf-cmedia.rules || die + + 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 +} |