summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Dummer <martin.dummer@gmx.net>2020-09-14 21:30:57 +0200
committerMichał Górny <mgorny@gentoo.org>2020-10-04 23:14:41 +0200
commit41f3fc9371b2208bbcbc11f6eea80e89d4a701d7 (patch)
tree1e96f7e8fa117ded5ce3b3167591661ce39280a4 /dev-embedded
parentdev-python/pypy3-exe: Backport sethostname() fix (diff)
downloadgentoo-41f3fc9371b2208bbcbc11f6eea80e89d4a701d7.tar.gz
gentoo-41f3fc9371b2208bbcbc11f6eea80e89d4a701d7.tar.bz2
gentoo-41f3fc9371b2208bbcbc11f6eea80e89d4a701d7.zip
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@gmx.net> Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/esptool/esptool-2.8-r1.ebuild41
-rw-r--r--dev-embedded/esptool/metadata.xml10
2 files changed, 50 insertions, 1 deletions
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 000000000000..3c6a1359415f
--- /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 c8023306d2d5..5d0a40ebda0b 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>martin.dummer@gmx.net</email>
+ <name>Martin Dummer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <stabilize-allarches/>
<upstream>
<remote-id type="github">espressif/esptool</remote-id>
</upstream>