Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/esptool/
Date: Sun, 31 Oct 2021 02:55:14
Message-Id: 1635648828.311504115ac30a057d230a2f1173e7119af3363e.sam@gentoo
1 commit: 311504115ac30a057d230a2f1173e7119af3363e
2 Author: Martin Dummer <martin.dummer <AT> gmx <DOT> net>
3 AuthorDate: Wed Oct 27 21:22:51 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 31 02:53:48 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31150411
7
8 dev-embedded/esptool: version bump to 3.2
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net>
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 dev-embedded/esptool/Manifest | 1 +
15 dev-embedded/esptool/esptool-3.2.ebuild | 46 +++++++++++++++++++++++++++++++++
16 2 files changed, 47 insertions(+)
17
18 diff --git a/dev-embedded/esptool/Manifest b/dev-embedded/esptool/Manifest
19 index c028c17b742..3221ea38777 100644
20 --- a/dev-embedded/esptool/Manifest
21 +++ b/dev-embedded/esptool/Manifest
22 @@ -1,2 +1,3 @@
23 DIST esptool-3.0.tar.gz 6628258 BLAKE2B 613bdc4c4d0df633c25c83d51a84ff9ca34d5c345f010d2e3e99bc126530d484bb1fb4818b3a10b10a6b9879b161817d5bc6288dab55368f1250a27e2418d641 SHA512 b522d30b11e9ab4e426009116bf1872e587116b7a3b517f841d34d3e860f6454345be89a2e28b8eef5aa5e59318e991504697644a3f4f90d7e63c037025716eb
24 DIST esptool-3.1.tar.gz 6897273 BLAKE2B dcbba13e8775afd3cf10cdeafeee5e9e3c0d2e9722a95076a868b669ea3a11a56b48a053e1b19787c6da330af6d01f9f256a92c0be527d4a7d9848f646f194c3 SHA512 5edaaa376932acc9e7ba717fe931ec1e14b80d1eee415fcef4c69b30b375cd61887ac52a20dd1001d215b8d739019d6b9f624d294d8d76ff112e630d52f7f15b
25 +DIST esptool-3.2.tar.gz 7155428 BLAKE2B f81a8b77f1994599c3302915915e225249a5e735accbe47c8936de47564e47a33ae711df47c57e599d980b450dc4d710f819087a97d086b9d0f15a98622c0da4 SHA512 5e67b3a17190e051d7706ee2dbbe855488765a7bfed15b15f5a04022c3fbf19112905ba6a672c37b1bac5501d45d477cfff07c004cd83b2d1a111430992cefc1
26
27 diff --git a/dev-embedded/esptool/esptool-3.2.ebuild b/dev-embedded/esptool/esptool-3.2.ebuild
28 new file mode 100644
29 index 00000000000..7bbcbc5535a
30 --- /dev/null
31 +++ b/dev-embedded/esptool/esptool-3.2.ebuild
32 @@ -0,0 +1,46 @@
33 +# Copyright 2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +PYTHON_COMPAT=( python3_{8..9} )
39 +DISTUTILS_SINGLE_IMPL=1
40 +
41 +inherit distutils-r1
42 +
43 +DESCRIPTION="Utility to communicate with the ROM bootloader in Espressif ESP8266 and ESP32"
44 +HOMEPAGE="https://github.com/espressif/esptool"
45 +SRC_URI="https://github.com/espressif/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="GPL-2+"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
50 +IUSE="test"
51 +RESTRICT="!test? ( test )"
52 +
53 +RDEPEND="
54 + $(python_gen_cond_dep '
55 + dev-python/bitstring[${PYTHON_USEDEP}]
56 + dev-python/cryptography[${PYTHON_USEDEP}]
57 + >=dev-python/ecdsa-0.16.0[${PYTHON_USEDEP}]
58 + dev-python/pyserial[${PYTHON_USEDEP}]
59 + dev-python/reedsolomon[${PYTHON_USEDEP}]
60 + ')
61 +"
62 +BDEPEND="
63 + $(python_gen_cond_dep '
64 + dev-python/wheel[${PYTHON_USEDEP}]
65 + ')
66 + test? ( $(python_gen_cond_dep '
67 + dev-python/coverage[${PYTHON_USEDEP}]
68 + dev-python/pyelftools[${PYTHON_USEDEP}]
69 + ') )
70 +"
71 +
72 +python_test() {
73 + ${EPYTHON} test/test_imagegen.py || die "imagegen test failed with ${EPYTHON}"
74 + ${EPYTHON} test/test_espsecure.py || die "espsecure test failed with ${EPYTHON}"
75 + ${EPYTHON} test/test_espefuse_host.py || die "espefuse_host test failed with ${EPYTHON}"
76 + ${EPYTHON} test/test_merge_bin.py || die "espefuse_host test failed with ${EPYTHON}"
77 + # test/test_rfc2217.py test/test_esptool.py and test/test_espefuse.py need real hardware connected
78 +}