summaryrefslogtreecommitdiff
path: root/net-wireless/qdmr
diff options
context:
space:
mode:
Diffstat (limited to 'net-wireless/qdmr')
-rw-r--r--net-wireless/qdmr/Manifest4
-rw-r--r--net-wireless/qdmr/qdmr-0.11.0-r1.ebuild67
-rw-r--r--net-wireless/qdmr/qdmr-9999.ebuild28
3 files changed, 92 insertions, 7 deletions
diff --git a/net-wireless/qdmr/Manifest b/net-wireless/qdmr/Manifest
index d2897e0366b5..3f2cc881a654 100644
--- a/net-wireless/qdmr/Manifest
+++ b/net-wireless/qdmr/Manifest
@@ -1,7 +1,9 @@
AUX qdmr-0.10.2-musl.patch 1192 BLAKE2B 8426b283ca468f16af35a36efe9dd5a73fff1caa4d3fa14ebfbce03c611f9c02400eb3c00374ee358fc9892d5a907f1de3c8770736c2b7806c3c607b38457a3b SHA512 773f6788c570cf60eabcb1b04b69be71f9ad875a59baa05b06892b690d1b01ca0390fc4618a7fe534d186e676be54b50f3b86342f208f9b75fb285f47a1af0b0
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
EBUILD qdmr-0.10.2.ebuild 1410 BLAKE2B d7ea821a6b73d7b67d35fa73d3e25ac43d3e9501cd1deedf16544db9235d48f0ed98cd5af5e12866f2007445be504713d2d089fb6cd65217897525cc4ce8e353 SHA512 96dc6791dc21540ce432361a5b5f854c2d0f9339ea8c7eada3338e2e232ee6c741bbb221beddc4f7f4e0eae055b0303c42ecc83522fd6a12018c42f43be2cb24
EBUILD qdmr-0.10.4.ebuild 1400 BLAKE2B 85bac426629654ef0498dc55a8ccc1ecd83ab62add86d8ba491cd9f3b1e5b00e6ab5b9b0312e3759100ddcf466ea0d261053c97ad8e7b90fd7342af774269729 SHA512 33b1b94975b754435485ec336eb66f55a9a85663645d9d476f26bdbb9057b72760419f9f772c2a8355d29201caf6133760709013e3baaab7651507e16bbcdc8c
-EBUILD qdmr-9999.ebuild 1336 BLAKE2B 69435baf8f03160e9dfbfd33b047af8af473f3f9606e8d128feeff6dd83443f81b806544a643db6281eab7655653727082253a4bb1b9e131d9af02a95ebae007 SHA512 c4339cd235e2167785c6e00a7b04204dd19001e51725aa63cd4060eb4bd4989cdaf198ffa9c0adbf29ee473278e2392ebc01430902b7028ab7ba3197e886b77b
+EBUILD qdmr-0.11.0-r1.ebuild 1490 BLAKE2B ed47bcbebe070e66e34fe07d73449f1244d437a73b49b0963a8a28ba8eefd704d1197a960641105ef62d086e0f4701b1801dbd9045828f2a4a24448caa9f3618 SHA512 dfaa8102e2d7e288d4d74f2ea2b63c2aab3f59bbd37d8f99549b3319a8ebeea0e358c862f734deeb07408302370f34e50df3357090f2fa0edbc71a140331d765
+EBUILD qdmr-9999.ebuild 1490 BLAKE2B ed47bcbebe070e66e34fe07d73449f1244d437a73b49b0963a8a28ba8eefd704d1197a960641105ef62d086e0f4701b1801dbd9045828f2a4a24448caa9f3618 SHA512 dfaa8102e2d7e288d4d74f2ea2b63c2aab3f59bbd37d8f99549b3319a8ebeea0e358c862f734deeb07408302370f34e50df3357090f2fa0edbc71a140331d765
MISC metadata.xml 427 BLAKE2B 0435094250074437ba1f88146a4a0b7d109b473311316840f498c5c7e0f7386b17e6f2bddcda187e586bb766b81374296d27c8cf273e3baeb7d2c1d65dfd359e SHA512 9a6aa1424549762fab24407eace1ebac36564e46dbcdf17dbe7ba3853a552763dbf765c67ce20e6a536ce1ee063ac1932bc1426a1061f697c6f0bc462a017125
diff --git a/net-wireless/qdmr/qdmr-0.11.0-r1.ebuild b/net-wireless/qdmr/qdmr-0.11.0-r1.ebuild
new file mode 100644
index 000000000000..1ba9c2ff8c36
--- /dev/null
+++ b/net-wireless/qdmr/qdmr-0.11.0-r1.ebuild
@@ -0,0 +1,67 @@
+# 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
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+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
+ test? ( 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
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TESTS="$(usex test)"
+ )
+ cmake_src_configure
+}
+
+pkg_postinst() {
+ udev_reload
+}
+
+pkg_postrm() {
+ udev_reload
+}
diff --git a/net-wireless/qdmr/qdmr-9999.ebuild b/net-wireless/qdmr/qdmr-9999.ebuild
index 013022e942de..1ba9c2ff8c36 100644
--- a/net-wireless/qdmr/qdmr-9999.ebuild
+++ b/net-wireless/qdmr/qdmr-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2021-2022 Gentoo Authors
+# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -16,14 +16,14 @@ else
S="${WORKDIR}/${PN}-${MY_PV}"
KEYWORDS="~amd64 ~x86"
fi
+IUSE="test"
+RESTRICT="!test? ( test )"
LICENSE="GPL-3+"
SLOT="0"
RDEPEND="
dev-cpp/yaml-cpp:=
- dev-qt/designer:5
- dev-qt/qttest:5
dev-qt/qtwidgets:5
dev-qt/qtgui:5
dev-qt/qtcore:5
@@ -32,7 +32,10 @@ RDEPEND="
dev-qt/qtserialport:5
virtual/libusb:1
"
-DEPEND="${RDEPEND}"
+DEPEND="${RDEPEND}
+ dev-qt/designer:5
+ test? ( dev-qt/qttest:5 )
+"
BDEPEND="dev-qt/linguist-tools:5"
pkg_setup() {
@@ -44,8 +47,21 @@ pkg_setup() {
}
src_prepare() {
- #no devil perms
- sed -i 's#666#660#' dist/99-qdmr.rules
sed -i "s#/etc/udev/rules.d/#$(get_udevdir)/rules.d#" lib/CMakeLists.txt
cmake_src_prepare
}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TESTS="$(usex test)"
+ )
+ cmake_src_configure
+}
+
+pkg_postinst() {
+ udev_reload
+}
+
+pkg_postrm() {
+ udev_reload
+}