From 41f3fc9371b2208bbcbc11f6eea80e89d4a701d7 Mon Sep 17 00:00:00 2001 From: Martin Dummer Date: Mon, 14 Sep 2020 21:30:57 +0200 Subject: dev-embedded/esptool: add python3.[89] + new maintainer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Michał Górny --- dev-embedded/esptool/esptool-2.8-r1.ebuild | 41 ++++++++++++++++++++++++++++++ dev-embedded/esptool/metadata.xml | 10 +++++++- 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 dev-embedded/esptool/esptool-2.8-r1.ebuild (limited to 'dev-embedded/esptool') 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 @@ - + + martin.dummer@gmx.net + Martin Dummer + + + proxy-maint@gentoo.org + Proxy Maintainers + + espressif/esptool -- cgit v1.2.3-65-gdbad