commit:     53ffdcae8ba2959b6bd92715bba040292e6363a7
Author:     Martin Dummer <martin.dummer <AT> gmx <DOT> net>
AuthorDate: Sun Jan 28 22:42:42 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Feb 28 06:55:11 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53ffdcae

dev-embedded/esptool: add 4.7.0

Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net>
Closes: https://github.com/gentoo/gentoo/pull/35059
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-embedded/esptool/Manifest             |  1 +
 dev-embedded/esptool/esptool-4.7.0.ebuild | 66 +++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)

diff --git a/dev-embedded/esptool/Manifest b/dev-embedded/esptool/Manifest
index 019eb7d41ed6..558ae5bb4b79 100644
--- a/dev-embedded/esptool/Manifest
+++ b/dev-embedded/esptool/Manifest
@@ -1 +1,2 @@
 DIST esptool-4.6.2.tar.gz 7003860 BLAKE2B 
051689dbc2194e1ed08467f9ec82e3a48e31cf62c25b83f97e3b05a1d203c9dda120cbb11a40bb61efe076ae8449d0b9b4742b19d59efef205132f05d16130a5
 SHA512 
97cc9f4d92b479351089fac59aed08f9519ff76d994ddae601da8e39b988f4bb90dc3885bf30b7998e2575a0365a5f0eef85f16a28b12eb944eec1e9f5265c6c
+DIST esptool-4.7.0.tar.gz 7045501 BLAKE2B 
468d83db541e632296e9b465d54764dc5e966f54709b66b0af2675d8fbd6d0bcd70fb18584887f3dc4d45bd0550b65a0da58d0c6bc318962b8798017b4ab0b63
 SHA512 
dda2af5d9b2f8a4ec5706eaf58021e95094c152380c732074809c370a5d1bfaeb424cb27f69a3b980dec83ae9c4c9ee1eddfeb0a7990c3b1f1494160a2d369cc

diff --git a/dev-embedded/esptool/esptool-4.7.0.ebuild 
b/dev-embedded/esptool/esptool-4.7.0.ebuild
new file mode 100644
index 000000000000..2aa2656d5e97
--- /dev/null
+++ b/dev-embedded/esptool/esptool-4.7.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+DISTUTILS_USE_PEP517=setuptools
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1
+
+DESCRIPTION="Utility to communicate with the ROM bootloader in Espressif 
ESP8266 and ESP32"
+HOMEPAGE="https://github.com/espressif/esptool";
+SRC_URI="https://github.com/espressif/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+RDEPEND="
+       $(python_gen_cond_dep '
+               dev-python/bitstring[${PYTHON_USEDEP}]
+               dev-python/cryptography[${PYTHON_USEDEP}]
+               >=dev-python/ecdsa-0.16.0[${PYTHON_USEDEP}]
+               dev-python/pyserial[${PYTHON_USEDEP}]
+               dev-python/pyyaml[${PYTHON_USEDEP}]
+               dev-python/reedsolo[${PYTHON_USEDEP}]
+       ')
+"
+BDEPEND="
+       $(python_gen_cond_dep '
+               dev-python/wheel[${PYTHON_USEDEP}]
+       ')
+       test? ( $(python_gen_cond_dep '
+               dev-python/cffi[${PYTHON_USEDEP}]
+               dev-python/intelhex[${PYTHON_USEDEP}]
+               dev-python/pyelftools[${PYTHON_USEDEP}]
+               dev-python/pytest[${PYTHON_USEDEP}]
+       ') )
+"
+
+distutils_enable_tests pytest
+
+EPYTEST_DESELECT=(
+       # test/test_esptool.py and test/test_espefuse.py need real hardware 
connected
+       test/test_esptool.py
+       test/test_espefuse.py
+)
+
+src_prepare() {
+       default
+
+       # test_espsecure_hsm.py needs setup of a "Soft HSM" or real hardware. 
remove.
+       rm test/test_espsecure_hsm.py || die
+}
+
+pkg_postinst() {
+       if ver_test ${REPLACING_VERSIONS} -lt 4; then
+               ewarn "${P} - new 4.x release with breaking changes:"
+               ewarn "  - Public API has been defined by limiting access to 
internals that have been refactored into multiple source files"
+               ewarn "  - If active security features are detected, the 
default behavior changes to prevent unintentional bricking"
+               ewarn "  - Flash parameters in an image header can now be 
changed only when no SHA256 digest is appended"
+               ewarn "  - The ESP8684 alias has been removed, ESP32-C2 has to 
be used"
+               ewarn "  - Megabit flash sizes have been deprecated, use 
megabyte units from now on"
+       fi
+}

Reply via email to