1 |
commit: bdfbde2775df19de4dbe17de259d64757c64eeea |
2 |
Author: Martin Dummer <martin.dummer <AT> gmx <DOT> net> |
3 |
AuthorDate: Mon Oct 5 20:35:58 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 11 09:29:59 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdfbde27 |
7 |
|
8 |
dev-embedded/esptool: fix incorrect DISTUTILS_USE_SETUPTOOLS value |
9 |
|
10 |
Closes: https://bugs.gentoo.org/746614 |
11 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
12 |
Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/17807 |
14 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
15 |
|
16 |
dev-embedded/esptool/esptool-2.8-r2.ebuild | 40 ++++++++++++++++++++++++++++++ |
17 |
1 file changed, 40 insertions(+) |
18 |
|
19 |
diff --git a/dev-embedded/esptool/esptool-2.8-r2.ebuild b/dev-embedded/esptool/esptool-2.8-r2.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..e24cd7f15a7 |
22 |
--- /dev/null |
23 |
+++ b/dev-embedded/esptool/esptool-2.8-r2.ebuild |
24 |
@@ -0,0 +1,40 @@ |
25 |
+# Copyright 2020 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+PYTHON_COMPAT=( python3_{6,7,8,9} ) |
31 |
+DISTUTILS_SINGLE_IMPL=1 |
32 |
+ |
33 |
+inherit distutils-r1 |
34 |
+ |
35 |
+DESCRIPTION="Utility to communicate with the ROM bootloader in Espressif ESP8266 and ESP32" |
36 |
+HOMEPAGE="https://github.com/espressif/esptool" |
37 |
+SRC_URI="https://github.com/espressif/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
38 |
+ |
39 |
+LICENSE="GPL-2+" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
42 |
+IUSE="test" |
43 |
+RESTRICT="!test? ( test )" |
44 |
+ |
45 |
+RDEPEND=" |
46 |
+ $(python_gen_cond_dep ' |
47 |
+ dev-python/ecdsa[${PYTHON_MULTI_USEDEP}] |
48 |
+ dev-python/pyaes[${PYTHON_MULTI_USEDEP}] |
49 |
+ >=dev-python/pyserial-3.0[${PYTHON_MULTI_USEDEP}] |
50 |
+ ') |
51 |
+" |
52 |
+BDEPEND=" |
53 |
+ test? ( $(python_gen_cond_dep 'dev-python/pyelftools[${PYTHON_MULTI_USEDEP}]') ) |
54 |
+" |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ rm -rf pyaes/ ecdsa/ || die "unable to remove bundled modules" |
58 |
+ default |
59 |
+} |
60 |
+ |
61 |
+python_test() { |
62 |
+ ${EPYTHON} test/test_imagegen.py || die "imagegen test failed with ${EPYTHON}" |
63 |
+ ${EPYTHON} test/test_espsecure.py || die "espsecure test failed with ${EPYTHON}" |
64 |
+} |