1 |
commit: 087a79f51d9ff452de9f3ac6d7d98bdc4e18c1aa |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 15 13:46:43 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 15 13:48:32 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=087a79f5 |
7 |
|
8 |
net-wireless/liblms7002m: enable py3.{9,10}, ebuild cleanup |
9 |
|
10 |
python is used during compilation only, for running a code |
11 |
generation script. Therefore we can use python-any-r1. |
12 |
|
13 |
Works for python 3.9 and python 3.10. |
14 |
|
15 |
Update DESCRIPTION, HOMEPAGE, LICENSE for github repo |
16 |
|
17 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
18 |
|
19 |
....ebuild => liblms7002m-0.0_p20200518-r1.ebuild} | 27 ++++++++++++---------- |
20 |
net-wireless/liblms7002m/liblms7002m-9999.ebuild | 21 +++++++++-------- |
21 |
2 files changed, 27 insertions(+), 21 deletions(-) |
22 |
|
23 |
diff --git a/net-wireless/liblms7002m/liblms7002m-0.0_p20200518.ebuild b/net-wireless/liblms7002m/liblms7002m-0.0_p20200518-r1.ebuild |
24 |
similarity index 52% |
25 |
rename from net-wireless/liblms7002m/liblms7002m-0.0_p20200518.ebuild |
26 |
rename to net-wireless/liblms7002m/liblms7002m-0.0_p20200518-r1.ebuild |
27 |
index 06521a3518a2..d8e16b9374a8 100644 |
28 |
--- a/net-wireless/liblms7002m/liblms7002m-0.0_p20200518.ebuild |
29 |
+++ b/net-wireless/liblms7002m/liblms7002m-0.0_p20200518-r1.ebuild |
30 |
@@ -1,17 +1,17 @@ |
31 |
-# Copyright 1999-2021 Gentoo Authors |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
# Distributed under the terms of the GNU General Public License v2 |
34 |
|
35 |
EAPI=7 |
36 |
-PYTHON_COMPAT=( python3_{7,8} ) |
37 |
|
38 |
-inherit cmake python-single-r1 |
39 |
+PYTHON_COMPAT=( python3_{8..10} ) |
40 |
+inherit cmake python-any-r1 |
41 |
|
42 |
-DESCRIPTION="Toolkit that provides signal processing blocks to implement software radios" |
43 |
-HOMEPAGE="https://www.gnuradio.org/" |
44 |
-LICENSE="GPL-3" |
45 |
+DESCRIPTION="Compact LMS7002M library suitable for resource-limited MCUs" |
46 |
+HOMEPAGE="https://github.com/xtrx-sdr/liblms7002m" |
47 |
+LICENSE="LGPL-2.1" |
48 |
SLOT="0/${PV}" |
49 |
|
50 |
-if [[ ${PV} =~ "9999" ]]; then |
51 |
+if [[ ${PV} == *9999 ]]; then |
52 |
EGIT_REPO_URI="https://github.com/xtrx-sdr/liblms7002m.git" |
53 |
inherit git-r3 |
54 |
else |
55 |
@@ -21,12 +21,15 @@ else |
56 |
KEYWORDS="~amd64 ~x86" |
57 |
fi |
58 |
|
59 |
-IUSE="" |
60 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
61 |
+BDEPEND=" |
62 |
+ $(python_gen_any_dep ' |
63 |
+ dev-python/cheetah3[${PYTHON_USEDEP}] |
64 |
+ ') |
65 |
+" |
66 |
|
67 |
-RDEPEND="${PYTHON_DEPS} |
68 |
- $(python_gen_cond_dep 'dev-python/cheetah3[${PYTHON_USEDEP}]')" |
69 |
-DEPEND="${RDEPEND}" |
70 |
+python_check_deps() { |
71 |
+ has_version "dev-python/cheetah3[${PYTHON_USEDEP}]" |
72 |
+} |
73 |
|
74 |
src_configure() { |
75 |
mycmakeargs=( |
76 |
|
77 |
diff --git a/net-wireless/liblms7002m/liblms7002m-9999.ebuild b/net-wireless/liblms7002m/liblms7002m-9999.ebuild |
78 |
index edd808aede06..d8e16b9374a8 100644 |
79 |
--- a/net-wireless/liblms7002m/liblms7002m-9999.ebuild |
80 |
+++ b/net-wireless/liblms7002m/liblms7002m-9999.ebuild |
81 |
@@ -1,17 +1,17 @@ |
82 |
-# Copyright 1999-2021 Gentoo Authors |
83 |
+# Copyright 1999-2022 Gentoo Authors |
84 |
# Distributed under the terms of the GNU General Public License v2 |
85 |
|
86 |
EAPI=7 |
87 |
-PYTHON_COMPAT=( python3_{7,8} ) |
88 |
|
89 |
-inherit cmake python-single-r1 |
90 |
+PYTHON_COMPAT=( python3_{8..10} ) |
91 |
+inherit cmake python-any-r1 |
92 |
|
93 |
DESCRIPTION="Compact LMS7002M library suitable for resource-limited MCUs" |
94 |
HOMEPAGE="https://github.com/xtrx-sdr/liblms7002m" |
95 |
LICENSE="LGPL-2.1" |
96 |
SLOT="0/${PV}" |
97 |
|
98 |
-if [[ ${PV} =~ "9999" ]]; then |
99 |
+if [[ ${PV} == *9999 ]]; then |
100 |
EGIT_REPO_URI="https://github.com/xtrx-sdr/liblms7002m.git" |
101 |
inherit git-r3 |
102 |
else |
103 |
@@ -21,12 +21,15 @@ else |
104 |
KEYWORDS="~amd64 ~x86" |
105 |
fi |
106 |
|
107 |
-IUSE="" |
108 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
109 |
+BDEPEND=" |
110 |
+ $(python_gen_any_dep ' |
111 |
+ dev-python/cheetah3[${PYTHON_USEDEP}] |
112 |
+ ') |
113 |
+" |
114 |
|
115 |
-RDEPEND="${PYTHON_DEPS} |
116 |
- $(python_gen_cond_dep 'dev-python/cheetah3[${PYTHON_USEDEP}]')" |
117 |
-DEPEND="${RDEPEND}" |
118 |
+python_check_deps() { |
119 |
+ has_version "dev-python/cheetah3[${PYTHON_USEDEP}]" |
120 |
+} |
121 |
|
122 |
src_configure() { |
123 |
mycmakeargs=( |