summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2023-01-11 14:50:02 -0500
committerRick Farina <zerochaos@gentoo.org>2023-01-11 14:52:50 -0500
commit480da4fbdedafb55e7f37b45bd167d35a581ba78 (patch)
tree99c56e831bfbac3096e5095d750e2d7b626bc47a /net-wireless/qdmr
parentnet-wireless/qdmr: sync live, qa fixes (diff)
downloadgentoo-480da4fbdedafb55e7f37b45bd167d35a581ba78.tar.gz
gentoo-480da4fbdedafb55e7f37b45bd167d35a581ba78.tar.bz2
gentoo-480da4fbdedafb55e7f37b45bd167d35a581ba78.zip
net-wireless/qdmr: add 0.11.0
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'net-wireless/qdmr')
-rw-r--r--net-wireless/qdmr/Manifest1
-rw-r--r--net-wireless/qdmr/qdmr-0.11.0.ebuild58
2 files changed, 59 insertions, 0 deletions
diff --git a/net-wireless/qdmr/Manifest b/net-wireless/qdmr/Manifest
index 9b4be89b4621..8780f0305994 100644
--- a/net-wireless/qdmr/Manifest
+++ b/net-wireless/qdmr/Manifest
@@ -1,2 +1,3 @@
DIST qdmr-0.10.2.tar.gz 5903169 BLAKE2B 1ef4e9846dd4206d1eae3cfb5562fccec24b156bfd77a82e801e8d1194b969bbda0f14e99c1b6505d18abba4a79d87c5eee2232110969faf4c078c1fe781a8ee SHA512 96a3fd22be2b8f77a4925cfb426de12a55b29ee73eaf78869091fd0ecd36d2df51195f2ca70689857e190767c4651d3d4915a0b7aa9f5c6e429f46a53edb991c
DIST qdmr-0.10.4.tar.gz 6013877 BLAKE2B 32da2984620e162e049f4017e29bff7d500f293fa6125246fdd2e7640ed9dd1e0e066c03297c365b9b5dc2e76dee1e1511fed327690c9a611fd7aa1abc26f988 SHA512 4ba75274bcaa4a7b8887edf7a1725863ee4dc00730d9386673b5c149e7ac30a32f06b7341ebd327cae337eac7a445999a17606cbbb22734216df2c14cb03c322
+DIST qdmr-0.11.0.tar.gz 6394782 BLAKE2B a96ec292ce8d3848849d6b8536dbcb18c7232d74d70e9aadf003e507a5e4a3dbdc6c2bd3df8e653b98954ca67373dcd31a573cdab027155d90d059124a2ff7db SHA512 bfe1016aa056545bd5d5c0f8302a9c3cb84290d4bcf1a340a5594e31778e389877d1fcb274e0c276b08a077971c37f7c45fa8953ea4566b956175209c41af272
diff --git a/net-wireless/qdmr/qdmr-0.11.0.ebuild b/net-wireless/qdmr/qdmr-0.11.0.ebuild
new file mode 100644
index 000000000000..808caea3cb4c
--- /dev/null
+++ b/net-wireless/qdmr/qdmr-0.11.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 2021-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake udev linux-info
+
+DESCRIPTION="GUI application for configuring and programming cheap DMR radios"
+HOMEPAGE="https://dm3mat.darc.de/qdmr/"
+if [ "${PV}" = "9999" ]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/hmatuschek/qdmr.git"
+else
+ MY_PV="${PV/_/-}"
+ SRC_URI="https://github.com/hmatuschek/qdmr/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/${PN}-${MY_PV}"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+
+RDEPEND="
+ dev-cpp/yaml-cpp:=
+ dev-qt/qtwidgets:5
+ dev-qt/qtgui:5
+ dev-qt/qtcore:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtpositioning:5
+ dev-qt/qtserialport:5
+ virtual/libusb:1
+"
+DEPEND="${RDEPEND}
+ dev-qt/designer:5
+ dev-qt/qttest:5
+"
+BDEPEND="dev-qt/linguist-tools:5"
+
+pkg_setup() {
+ CONFIG_CHECK="~USB_ACM"
+ WARNING_USB_ACM="Some radios require CONFIG_USB_ACM to work, you may need to enable this driver to talk to your radio"
+ CONFIG_CHECK="~USB_SERIAL"
+ WARNING_USB_SERIAL="Some radios require CONFIG_USB_SERIAL to work, you may need to enable this driver to talk to your radio"
+ check_extra_config
+}
+
+src_prepare() {
+ sed -i "s#/etc/udev/rules.d/#$(get_udevdir)/rules.d#" lib/CMakeLists.txt
+ cmake_src_prepare
+}
+
+pkg_postinst() {
+ udev_reload
+}
+
+pkg_postrm() {
+ udev_reload
+}