commit:     41f3fc9371b2208bbcbc11f6eea80e89d4a701d7
Author:     Martin Dummer <martin.dummer <AT> gmx <DOT> net>
AuthorDate: Mon Sep 14 19:30:57 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Oct  4 21:14:41 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41f3fc93

dev-embedded/esptool: add python3.[89] + new maintainer

successfully tested with python3.8 and 3.9
remove maintainer-needed, add proxy maintainer

Package-Manager: Portage-3.0.6, Repoman-3.0.1
Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net>
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-embedded/esptool/esptool-2.8-r1.ebuild | 41 ++++++++++++++++++++++++++++++
 dev-embedded/esptool/metadata.xml          | 10 +++++++-
 2 files changed, 50 insertions(+), 1 deletion(-)

diff --git a/dev-embedded/esptool/esptool-2.8-r1.ebuild 
b/dev-embedded/esptool/esptool-2.8-r1.ebuild
new file mode 100644
index 00000000000..3c6a1359415
--- /dev/null
+++ b/dev-embedded/esptool/esptool-2.8-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8,9} ) # apps work with 3_9 but test depend is 
not fulfilled
+DISTUTILS_SINGLE_IMPL=1
+DISTUTILS_USE_SETUPTOOLS=rdepend
+
+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"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       $(python_gen_cond_dep '
+               dev-python/ecdsa[${PYTHON_MULTI_USEDEP}]
+               dev-python/pyaes[${PYTHON_MULTI_USEDEP}]
+               >=dev-python/pyserial-3.0[${PYTHON_MULTI_USEDEP}]
+       ')
+"
+BDEPEND="
+       test? ( $(python_gen_cond_dep 
'dev-python/pyelftools[${PYTHON_MULTI_USEDEP}]') )
+"
+
+src_prepare() {
+       rm -rf pyaes/ ecdsa/ || die "unable to remove bundled modules"
+       default
+}
+
+python_test() {
+       ${EPYTHON} test/test_imagegen.py || die "imagegen test failed with 
${EPYTHON}"
+       ${EPYTHON} test/test_espsecure.py || die "espsecure test failed with 
${EPYTHON}"
+}

diff --git a/dev-embedded/esptool/metadata.xml 
b/dev-embedded/esptool/metadata.xml
index c8023306d2d..5d0a40ebda0 100644
--- a/dev-embedded/esptool/metadata.xml
+++ b/dev-embedded/esptool/metadata.xml
@@ -1,7 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
-       <!--maintainer-needed-->
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Martin Dummer</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <stabilize-allarches/>
        <upstream>
                <remote-id type="github">espressif/esptool</remote-id>
        </upstream>

Reply via email to