1 |
commit: 76461b2e2da7f475d97c9a2862adf34bf2339f95 |
2 |
Author: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 28 13:06:23 2022 +0000 |
4 |
Commit: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 28 13:06:36 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76461b2e |
7 |
|
8 |
net-wireless/sdrplay: Bump + Several fixes |
9 |
|
10 |
Bump re bug 815496 |
11 |
Fixes bug 832610, 832611 and 832613 that were caused by the lib32/lib migration |
12 |
Also fixes bug 699474 |
13 |
|
14 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
15 |
Signed-off-by: Christian Ruppert <idl0r <AT> gentoo.org> |
16 |
|
17 |
net-wireless/sdrplay/Manifest | 1 + |
18 |
net-wireless/sdrplay/files/sdrplay.initd | 7 ++++ |
19 |
net-wireless/sdrplay/sdrplay-3.07.1.ebuild | 66 ++++++++++++++++++++++++++++++ |
20 |
3 files changed, 74 insertions(+) |
21 |
|
22 |
diff --git a/net-wireless/sdrplay/Manifest b/net-wireless/sdrplay/Manifest |
23 |
index c4b3064aa0bc..6c94971fa862 100644 |
24 |
--- a/net-wireless/sdrplay/Manifest |
25 |
+++ b/net-wireless/sdrplay/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
DIST SDRplay_RSP_API-Linux-2.13.1.run 326016 BLAKE2B 7eff1aa35190db1ead5b1d96994d24ae2301e3a765d6701756c6304a1719aa32125fedacf6a6859d89b89db5dd6956ec0e8c7e814dbd6242db5614a53e89efb3 SHA512 576be63e18084cf3e74bfb20592a44836f22fd9efe74ba9e27e5865a9ab755b26b3f2894cd8331ff876ab664d4e533d2bdbc629d552e75fcfbb3e9814dd140ce |
28 |
+DIST SDRplay_RSP_API-Linux-3.07.1.run 388847 BLAKE2B 059d9a5fbd14c0e7ecb969cd3e5afe8e3f42896175b443bdaa9f9108302a1c9ef5ad9769e62f824465611d74f67191fff71cc6dbe297e399e5b2f6824c650112 SHA512 428b191db522ca332acd280ac80081852a4ac68117dfdcf48e196f1c28c40a44a8e0907efa56e7f50915af8d53bfa864d437db1692867e15fb653b86fe4b549a |
29 |
|
30 |
diff --git a/net-wireless/sdrplay/files/sdrplay.initd b/net-wireless/sdrplay/files/sdrplay.initd |
31 |
new file mode 100644 |
32 |
index 000000000000..7611306a3e53 |
33 |
--- /dev/null |
34 |
+++ b/net-wireless/sdrplay/files/sdrplay.initd |
35 |
@@ -0,0 +1,7 @@ |
36 |
+#!/sbin/openrc-run |
37 |
+# Copyright 1999-2022 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+pidfile="/run/sdrplay.pid" |
41 |
+command="/usr/bin/sdrplay_apiService" |
42 |
+command_background=true |
43 |
|
44 |
diff --git a/net-wireless/sdrplay/sdrplay-3.07.1.ebuild b/net-wireless/sdrplay/sdrplay-3.07.1.ebuild |
45 |
new file mode 100644 |
46 |
index 000000000000..b43792e02f2a |
47 |
--- /dev/null |
48 |
+++ b/net-wireless/sdrplay/sdrplay-3.07.1.ebuild |
49 |
@@ -0,0 +1,66 @@ |
50 |
+# Copyright 1999-2022 Gentoo Authors |
51 |
+# Distributed under the terms of the GNU General Public License v2 |
52 |
+ |
53 |
+EAPI=8 |
54 |
+ |
55 |
+MULTILIB_COMPAT=( abi_x86_{32,64} ) |
56 |
+ |
57 |
+inherit unpacker udev multilib-minimal systemd |
58 |
+ |
59 |
+MY_PV_1=$(ver_cut 1) |
60 |
+MY_PV_12=$(ver_cut 1-2) |
61 |
+ |
62 |
+DESCRIPTION="SDRplay API/HW driver for all RSPs" |
63 |
+HOMEPAGE="https://www.sdrplay.com" |
64 |
+SRC_URI="http://www.sdrplay.com/software/SDRplay_RSP_API-Linux-${PV}.run" |
65 |
+ |
66 |
+LICENSE="SDRplay" |
67 |
+SLOT="0" |
68 |
+KEYWORDS="~amd64 ~x86" |
69 |
+IUSE="systemd" |
70 |
+ |
71 |
+DEPEND="virtual/libusb:1 |
72 |
+ virtual/udev |
73 |
+ systemd? ( sys-apps/systemd )" |
74 |
+ |
75 |
+RDEPEND="${DEPEND}" |
76 |
+ |
77 |
+S="${WORKDIR}" |
78 |
+ |
79 |
+QA_PREBUILT="usr/lib64/libsdrplay_api.so.${MY_PV_12} |
80 |
+usr/lib/libsdrplay_api.so.${MY_PV_12} |
81 |
+usr/bin/sdrplay_apiService" |
82 |
+ |
83 |
+multilib_src_install_all() { |
84 |
+ doheader -r inc/*.h |
85 |
+ |
86 |
+ udev_dorules 66-mirics.rules |
87 |
+ udev_reload |
88 |
+ |
89 |
+ if use systemd; then |
90 |
+ systemd_newunit scripts/sdrplay.service.usr sdrplay.service |
91 |
+ fi |
92 |
+ |
93 |
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} |
94 |
+} |
95 |
+ |
96 |
+multilib_src_install() { |
97 |
+ if [ "${MULTILIB_ABI_FLAG}" = "abi_x86_32" ]; then |
98 |
+ dolib.so "${S}/i686/libsdrplay_api.so.${MY_PV_12}" |
99 |
+ fi |
100 |
+ |
101 |
+ if [ "${MULTILIB_ABI_FLAG}" = "abi_x86_64" ]; then |
102 |
+ dolib.so "${S}/x86_64/libsdrplay_api.so.${MY_PV_12}" |
103 |
+ fi |
104 |
+ |
105 |
+ if multilib_is_native_abi; then |
106 |
+ if [ "${MULTILIB_ABI_FLAG}" = "abi_x86_32" ]; then |
107 |
+ dobin "${S}/i686/sdrplay_apiService" |
108 |
+ elif [ "${MULTILIB_ABI_FLAG}" = "abi_x86_64" ]; then |
109 |
+ dobin "${S}/x86_64/sdrplay_apiService" |
110 |
+ fi |
111 |
+ fi |
112 |
+ |
113 |
+ dosym libsdrplay_api.so.${MY_PV_12} "/usr/$(get_libdir)/libsdrplay_api.so.${MY_PV_1}" |
114 |
+ dosym libsdrplay_api.so.${MY_PV_1} "/usr/$(get_libdir)/libsdrplay_api.so" |
115 |
+} |