Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/esptool/
Date: Sun, 04 Oct 2020 21:15:19
Message-Id: 1601846081.41f3fc9371b2208bbcbc11f6eea80e89d4a701d7.mgorny@gentoo
1 commit: 41f3fc9371b2208bbcbc11f6eea80e89d4a701d7
2 Author: Martin Dummer <martin.dummer <AT> gmx <DOT> net>
3 AuthorDate: Mon Sep 14 19:30:57 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 4 21:14:41 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41f3fc93
7
8 dev-embedded/esptool: add python3.[89] + new maintainer
9
10 successfully tested with python3.8 and 3.9
11 remove maintainer-needed, add proxy maintainer
12
13 Package-Manager: Portage-3.0.6, Repoman-3.0.1
14 Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net>
15 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
16
17 dev-embedded/esptool/esptool-2.8-r1.ebuild | 41 ++++++++++++++++++++++++++++++
18 dev-embedded/esptool/metadata.xml | 10 +++++++-
19 2 files changed, 50 insertions(+), 1 deletion(-)
20
21 diff --git a/dev-embedded/esptool/esptool-2.8-r1.ebuild b/dev-embedded/esptool/esptool-2.8-r1.ebuild
22 new file mode 100644
23 index 00000000000..3c6a1359415
24 --- /dev/null
25 +++ b/dev-embedded/esptool/esptool-2.8-r1.ebuild
26 @@ -0,0 +1,41 @@
27 +# Copyright 2020 Gentoo Authors
28 +# Distributed under the terms of the GNU General Public License v2
29 +
30 +EAPI=7
31 +
32 +PYTHON_COMPAT=( python3_{6,7,8,9} ) # apps work with 3_9 but test depend is not fulfilled
33 +DISTUTILS_SINGLE_IMPL=1
34 +DISTUTILS_USE_SETUPTOOLS=rdepend
35 +
36 +inherit distutils-r1
37 +
38 +DESCRIPTION="Utility to communicate with the ROM bootloader in Espressif ESP8266 and ESP32"
39 +HOMEPAGE="https://github.com/espressif/esptool"
40 +SRC_URI="https://github.com/espressif/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="GPL-2+"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
45 +IUSE="test"
46 +RESTRICT="!test? ( test )"
47 +
48 +RDEPEND="
49 + $(python_gen_cond_dep '
50 + dev-python/ecdsa[${PYTHON_MULTI_USEDEP}]
51 + dev-python/pyaes[${PYTHON_MULTI_USEDEP}]
52 + >=dev-python/pyserial-3.0[${PYTHON_MULTI_USEDEP}]
53 + ')
54 +"
55 +BDEPEND="
56 + test? ( $(python_gen_cond_dep 'dev-python/pyelftools[${PYTHON_MULTI_USEDEP}]') )
57 +"
58 +
59 +src_prepare() {
60 + rm -rf pyaes/ ecdsa/ || die "unable to remove bundled modules"
61 + default
62 +}
63 +
64 +python_test() {
65 + ${EPYTHON} test/test_imagegen.py || die "imagegen test failed with ${EPYTHON}"
66 + ${EPYTHON} test/test_espsecure.py || die "espsecure test failed with ${EPYTHON}"
67 +}
68
69 diff --git a/dev-embedded/esptool/metadata.xml b/dev-embedded/esptool/metadata.xml
70 index c8023306d2d..5d0a40ebda0 100644
71 --- a/dev-embedded/esptool/metadata.xml
72 +++ b/dev-embedded/esptool/metadata.xml
73 @@ -1,7 +1,15 @@
74 <?xml version="1.0" encoding="UTF-8"?>
75 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
76 <pkgmetadata>
77 - <!--maintainer-needed-->
78 + <maintainer type="person">
79 + <email>martin.dummer@×××.net</email>
80 + <name>Martin Dummer</name>
81 + </maintainer>
82 + <maintainer type="project">
83 + <email>proxy-maint@g.o</email>
84 + <name>Proxy Maintainers</name>
85 + </maintainer>
86 + <stabilize-allarches/>
87 <upstream>
88 <remote-id type="github">espressif/esptool</remote-id>
89 </upstream>