1 |
commit: 5187815560bf0cfb2e55b6194723deb5522d7937 |
2 |
Author: Martin Dummer <martin.dummer <AT> gmx <DOT> net> |
3 |
AuthorDate: Sun Feb 19 20:01:26 2023 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 27 13:12:53 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51878155 |
7 |
|
8 |
dev-embedded/esptool: add 4.5 |
9 |
|
10 |
Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/29671 |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
dev-embedded/esptool/Manifest | 1 + |
15 |
dev-embedded/esptool/esptool-4.5.ebuild | 64 +++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 65 insertions(+) |
17 |
|
18 |
diff --git a/dev-embedded/esptool/Manifest b/dev-embedded/esptool/Manifest |
19 |
index 81d3eb92e110..510db381b482 100644 |
20 |
--- a/dev-embedded/esptool/Manifest |
21 |
+++ b/dev-embedded/esptool/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST esptool-3.3.2.tar.gz 7263375 BLAKE2B 8a24a94c5d8acaa9647a5057cbacb57bdf292651529572d7084dbee1013b6174a383bebacccd75bb08e6de94054f28303d5a9b182f0d30dad9081fd8d61d1c4d SHA512 9f31ab5b702c8aede2062a27943fa655d7fbb07fb4c4c377f2ab5552e5453e7c8126bacc5b8e1e859ee6b81e21a75ed1343639815e395b974cc1aaa005367d84 |
24 |
DIST esptool-4.4.tar.gz 7213588 BLAKE2B a88269ff1bfe2e865dab73cafe2bb567fab027f0679c078a9b7c03b8705763390e3e774ff20ebec0d3dbee5a29d1b1e3d2c1931a3a18ff59b82321a6d0ee0da7 SHA512 97d44a5553be380a2d26469bea42b6995c0d97fa3d50e0f6c1673548801983243d204d140ecfc17ee6c9f9c6580e6c6c42a6e953655a06053fa56064af650cf8 |
25 |
+DIST esptool-4.5.tar.gz 7263652 BLAKE2B 7d77a61159e2fbd7abd4897202c1a1c6622a12ac30e453e74258cf1151f2ae2e2332c79abb81fbc9a2ee897db01006afa86ce4f9ef9a700f12a04a13ef932597 SHA512 b55cb334ee82048195c60afe0a86e1a9952e3e91aa3c5c97b1b44709cf24c793ed0da4607b1ecefc87ed5f5f16951f9e4db68bc33a8f96d193479e7f73964763 |
26 |
|
27 |
diff --git a/dev-embedded/esptool/esptool-4.5.ebuild b/dev-embedded/esptool/esptool-4.5.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..68ef41735cdc |
30 |
--- /dev/null |
31 |
+++ b/dev-embedded/esptool/esptool-4.5.ebuild |
32 |
@@ -0,0 +1,64 @@ |
33 |
+# Copyright 2021-2023 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{9..11} ) |
39 |
+DISTUTILS_USE_PEP517=setuptools |
40 |
+DISTUTILS_SINGLE_IMPL=1 |
41 |
+ |
42 |
+inherit distutils-r1 |
43 |
+ |
44 |
+DESCRIPTION="Utility to communicate with the ROM bootloader in Espressif ESP8266 and ESP32" |
45 |
+HOMEPAGE="https://github.com/espressif/esptool" |
46 |
+SRC_URI="https://github.com/espressif/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="GPL-2+" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ $(python_gen_cond_dep ' |
54 |
+ dev-python/bitstring[${PYTHON_USEDEP}] |
55 |
+ dev-python/cryptography[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/ecdsa-0.16.0[${PYTHON_USEDEP}] |
57 |
+ dev-python/pyserial[${PYTHON_USEDEP}] |
58 |
+ dev-python/reedsolomon[${PYTHON_USEDEP}] |
59 |
+ ') |
60 |
+" |
61 |
+BDEPEND=" |
62 |
+ $(python_gen_cond_dep ' |
63 |
+ dev-python/wheel[${PYTHON_USEDEP}] |
64 |
+ ') |
65 |
+ test? ( $(python_gen_cond_dep ' |
66 |
+ dev-python/cffi[${PYTHON_USEDEP}] |
67 |
+ dev-python/pyelftools[${PYTHON_USEDEP}] |
68 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
69 |
+ ') ) |
70 |
+" |
71 |
+ |
72 |
+distutils_enable_tests pytest |
73 |
+ |
74 |
+EPYTEST_DESELECT=( |
75 |
+ # test/test_esptool.py and test/test_espefuse.py need real hardware connected |
76 |
+ test/test_esptool.py |
77 |
+ test/test_espefuse.py |
78 |
+) |
79 |
+ |
80 |
+src_prepare() { |
81 |
+ default |
82 |
+ |
83 |
+ # test_espsecure_hsm.py calls unavailable python modules and is broken anyway |
84 |
+ rm test/test_espsecure_hsm.py || die |
85 |
+} |
86 |
+ |
87 |
+pkg_postinst() { |
88 |
+ if ver_test ${REPLACING_VERSIONS} -lt 4; then |
89 |
+ ewarn "${P} - new 4.x release with breaking changes:" |
90 |
+ ewarn " - Public API has been defined by limiting access to internals that have been refactored into multiple source files" |
91 |
+ ewarn " - If active security features are detected, the default behavior changes to prevent unintentional bricking" |
92 |
+ ewarn " - Flash parameters in an image header can now be changed only when no SHA256 digest is appended" |
93 |
+ ewarn " - The ESP8684 alias has been removed, ESP32-C2 has to be used" |
94 |
+ ewarn " - Megabit flash sizes have been deprecated, use megabyte units from now on" |
95 |
+ fi |
96 |
+} |