Skip to content

Commit 4f6bcbd

Browse files
committed
dev-embedded/esptool: add 4.7.0-r2 (WIP)
dev-embedded/esphome: add 2024.3.2 Signed-off-by: Andreas Billmeier <[email protected]>
1 parent 06cc09a commit 4f6bcbd

File tree

6 files changed

+199
-2
lines changed

6 files changed

+199
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,12 +617,12 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
617617

618618
## Licenses
619619
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
620-
There are 1786 Ebuilds in total, 1775 of them have in total 1795 (42 different) licenses assigned.
620+
There are 1788 Ebuilds in total, 1777 of them have in total 1797 (42 different) licenses assigned.
621621

622622
|License| Ebuilds using it|
623623
|-------|-----|
624624
|MIT|1013|
625-
|Apache-2.0|401|
625+
|Apache-2.0|403|
626626
|GPL-3|106|
627627
|BSD|105|
628628
|LGPL-3|25|

dev-embedded/esphome/Manifest

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ DIST esphome-2023.11.6.tar.gz 1986566 BLAKE2B b43642e0bec333729bcd2cd738c65816b7
77
DIST esphome-2023.12.9.tar.gz 2064985 BLAKE2B 38d7a842a461aebed8352f54093259f8c5a845c2a7f487216a77ecc4179dbe2e6848e2255428711f67a54e598c7c97709a23458d6092d37995031f86069b9157 SHA512 5065ea80fc3296612427a365dfdb98d6f7befa6b0e5f7abd22e82b1617c247245c780ec6c0303b8c7f0a9e3334bd90be84d97e0fb768dfcc09032966cbec830b
88
DIST esphome-2024.2.2.tar.gz 2127565 BLAKE2B 52aa760c3c9050640aaabe51ea9f01ed146b76c2ff0a48de855f027c9c92c2df3fb05eb81a4dda27f51cef061116c8b7088864db68756bd918a113807ef693fb SHA512 0f1e4277a0bd12adff8e4cfec702e9e00c6023fa8682d1f247d0153739153cc14956a94044a634afaf3d0a311543a5a4a8c04dd7c791c5c61c994625118b300c
99
DIST esphome-2024.3.0.tar.gz 2236732 BLAKE2B 349223e4e06c811925e2fbb7974954f43a9af9fa6b84d4e5b1751bc955afbed1d6b7682fc1471cbeab3142245576161f57e4ea0769ae061a65ff53739650ef36 SHA512 c54184c85b11a0ea331b6d751acf24c72548ad446c3d226266c1223829671cf78cb2f14e4a577873c08c82d8150ba61f02114308dcfebabed89fbf718eb52641
10+
DIST esphome-2024.3.2.tar.gz 2236891 BLAKE2B 8d3d5845a0735c0c3c60163a4709265d6ecb2326a0cba969897a794cc4154f4538c49bdcbcb32236e1053389b647c3bb9fdad55844aa1af3d888acaeb465db2b SHA512 8d3273a886987118865e9bbffe7edfe5922fab670387f093b111b07497b5165040fa1f452c7687b322704446fc0c61df08bc06987e43ab46d62d5e10b08abd14
1011
EBUILD esphome-2023.10.6.ebuild 3003 BLAKE2B 4daeb36a1081b6608dee0a50836812abe9bca242a06b59223f7c8ed97a0e10c95d059264e1519123f24cdafe2e3d73e28629d13144b4d1ab180ba0d5da9e354d SHA512 c804ce991fada5225e0303cecb44e31b567ce0ed5f0f39550715051a0976afd9c8ab542c8df3b19819827d8e981ad205a1a36a2fa7419748248e3a33853000b8
1112
EBUILD esphome-2023.11.6.ebuild 3063 BLAKE2B 2389d0dc3fd36d89041b632227b5d0e06d68e88075263fa6b60848625dff3f3098dda8c557e28952ecf48f11656170700e3246859861e6500ea8f65adb34f4cc SHA512 594a88da89f265d7278bc8df8cab5567beb20f0d3ae65c3993c473886afb7a078ad7d8da36469f1663269be54a5c132aaf01b828d1446c9c45ba24cc5b5aede3
1213
EBUILD esphome-2023.12.9.ebuild 3114 BLAKE2B e6ba9c1299d960c69dba6d1b5ffebb71bfa708d21b3bdec867d4e73107d3f78255322229f5f9651fd8522cf97f35f7d95cdeb5a8c1c17cda0e20386de6b037c4 SHA512 ceee6bb8e5d67fa5cece7ada37e1580f48351f068583ef757f988915d3c3c07149259b713bdd2b759d5c312b08f4853f5a800237769edaf5c6568449131d6e43
1314
EBUILD esphome-2024.2.2.ebuild 3181 BLAKE2B 66739de0635c499a4cba796999f6177cb42264a87ddc41a9f0cfc4e8d333b353da9f2f1f0b6fe95b7363a02a6a5bbe7f25d3ca14f5eced83671836eff099a606 SHA512 3a8157f256da934d01183425957ddcd6849bd78928a6e6d4e5268a1ad2018b5c1487b4a573f326c2f16843bdfab6339380ee34fe126c54c6f86a4cc2045cc628
1415
EBUILD esphome-2024.3.0.ebuild 3383 BLAKE2B 53277fbdc0f7b64ec51d138ab4689f9ff4c41876aeab139009244b04aa55a558878a40123376fd9b332fb88e30acb7b3cad95b58ad80782a343586768958e252 SHA512 7639e4a4a827c5e745ac570dbd139f34ecf404f6758443709e9bd77f32b4fe224cfb60a117875df3a367ca40716eb552ce4435b53960a00c392db8f4e5f5894a
16+
EBUILD esphome-2024.3.2.ebuild 3383 BLAKE2B 53277fbdc0f7b64ec51d138ab4689f9ff4c41876aeab139009244b04aa55a558878a40123376fd9b332fb88e30acb7b3cad95b58ad80782a343586768958e252 SHA512 7639e4a4a827c5e745ac570dbd139f34ecf404f6758443709e9bd77f32b4fe224cfb60a117875df3a367ca40716eb552ce4435b53960a00c392db8f4e5f5894a
1517
EBUILD esphome-9999.ebuild 3219 BLAKE2B df2d86fc84e7ac2baeb1c36dd21931cb353b74e340eed316a606db8d96fc4df0ea48bb25cb9615dbeac0b72f766205bb5ae98abfc305c71049e8faac327b512c SHA512 6f678afd7ed7fbba3e76b4accd0d873db286ec3d97abac3bb1414eb6dde76a22931eaa48909786b5e0e6b6f434ba36b685a8417f6bc93991aada4e9cc55dd620
1618
MISC metadata.xml 585 BLAKE2B 07113af8bf33f8ab4a457387804b65e5927bd40dc42de4931df0e78405ba49e2e9b695de6f3d919070b11e3edca32015f069217624b00549c38e608ffe680cf9 SHA512 fbd6544cfe0826fc63567c55f7882e4c6f61a2ebd337421353ae9afb8c2c66961f6328746fdfbe68ee47e5002193914c809c53a663d4a9a58f64166ba1346f20
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# Copyright 1999-2024 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
DISTUTILS_USE_PEP517=setuptools
6+
DISTUTILS_SINGLE_IMPL=1
7+
PYTHON_COMPAT=( python3_{11..12} )
8+
9+
inherit readme.gentoo-r1 distutils-r1
10+
11+
if [[ ${PV} == *9999* ]]; then
12+
inherit git-r3
13+
EGIT_REPO_URI="https://github.com/esphome/esphome.git"
14+
EGIT_BRANCH="dev"
15+
S="${WORKDIR}/${P}/"
16+
else
17+
inherit pypi
18+
MY_P=${P/_beta/b}
19+
MY_PV=${PV/_beta/b}
20+
S="${WORKDIR}/${MY_P}/"
21+
fi
22+
23+
DESCRIPTION="Make creating custom firmwares for ESP32/ESP8266 super easy."
24+
HOMEPAGE="https://github.com/esphome/esphome https://pypi.org/project/esphome/"
25+
26+
LICENSE="MIT"
27+
SLOT="0"
28+
KEYWORDS="amd64 arm arm64 x86"
29+
IUSE="+server test"
30+
RESTRICT="!test? ( test )"
31+
32+
DOCS="README.md"
33+
34+
RDEPEND="
35+
server? ( acct-group/${PN} acct-user/${PN} )
36+
$(python_gen_cond_dep '
37+
~dev-python/cryptography-42.0.5[${PYTHON_USEDEP}]
38+
dev-python/voluptuous[${PYTHON_USEDEP}]
39+
~dev-python/pyyaml-6.0.1[${PYTHON_USEDEP}]
40+
~dev-python/paho-mqtt-1.6.1[${PYTHON_USEDEP}]
41+
~dev-python/colorama-0.4.6[${PYTHON_USEDEP}]
42+
dev-python/icmplib[${PYTHON_USEDEP}]
43+
server? ( ~dev-python/tornado-6.4[${PYTHON_USEDEP}] )
44+
~dev-python/tzlocal-5.2[${PYTHON_USEDEP}]
45+
>=dev-python/tzdata-2021.1[${PYTHON_USEDEP}]
46+
~dev-python/pyserial-3.5[${PYTHON_USEDEP}]
47+
~dev-embedded/platformio-6.1.13[${PYTHON_SINGLE_USEDEP}]
48+
~dev-embedded/esptool-4.7.0[${PYTHON_SINGLE_USEDEP}]
49+
~dev-python/click-8.1.7[${PYTHON_USEDEP}]
50+
~dev-embedded/esphome-dashboard-20240319.0[${PYTHON_USEDEP}]
51+
dev-python/aioesphomeapi[${PYTHON_USEDEP}]
52+
dev-python/zeroconf[${PYTHON_USEDEP}]
53+
~dev-python/python-magic-0.4.27[${PYTHON_USEDEP}]
54+
~dev-python/ruamel-yaml-0.18.6[${PYTHON_USEDEP}]
55+
~dev-python/kconfiglib-13.7.1[${PYTHON_USEDEP}]
56+
>=dev-python/pyparsing-3.0[${PYTHON_USEDEP}]
57+
>=dev-python/argcomplete-2.0.0[${PYTHON_USEDEP}]
58+
')"
59+
60+
BDEPEND="$(python_gen_cond_dep '
61+
test? (
62+
dev-python/pytest[${PYTHON_USEDEP}]
63+
dev-python/pytest-cov[${PYTHON_USEDEP}]
64+
dev-python/pytest-mock[${PYTHON_USEDEP}]
65+
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
66+
dev-python/asyncmock[${PYTHON_USEDEP}]
67+
dev-python/hypothesis[${PYTHON_USEDEP}]
68+
)
69+
')"
70+
71+
DISABLE_AUTOFORMATTING=1
72+
DOC_CONTENTS="
73+
The ESPHome dashboard listens on port 6052
74+
ESPHome configuration is in: /etc/${PN}
75+
dashboard command line arguments are configured in: /etc/conf.d/${PN}
76+
logging is to: /var/log/${PN}/{dashboard,warnings}.log
77+
support at https://git.edevau.net/onkelbeh/HomeAssistantRepository
78+
"
79+
80+
src_prepare() {
81+
sed "/aioesphomeapi==/c\aioesphomeapi" -i requirements.txt || die
82+
sed "/click==/c\click" -i requirements.txt || die
83+
sed "/colorama==/c\colorama" -i requirements.txt || die
84+
sed "/zeroconf==/c\zeroconf" -i requirements.txt || die
85+
sed "/voluptuous==/c\voluptuous" -i requirements.txt || die
86+
sed "/cryptography==/c\cryptography" -i requirements.txt || die
87+
sed "/icmplib==/c\icmplib" -i requirements.txt || die
88+
eapply_user
89+
}
90+
91+
python_install_all() {
92+
dodoc ${DOCS}
93+
distutils-r1_python_install_all
94+
if use server; then
95+
keepdir "/etc/${PN}"
96+
fowners -R "${PN}:${PN}" "/etc/${PN}"
97+
keepdir "/var/log/${PN}"
98+
fowners -R "${PN}:${PN}" "/var/log/${PN}"
99+
newconfd "${FILESDIR}/${PN}.conf.d" "${PN}"
100+
newinitd "${FILESDIR}/${PN}.init.d-r3" "${PN}"
101+
readme.gentoo_create_doc
102+
fi
103+
}
104+
105+
pkg_postinst() {
106+
if use server; then
107+
readme.gentoo_print_elog
108+
fi
109+
}
110+
111+
distutils_enable_tests pytest

dev-embedded/esptool/Manifest

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
DIST esptool-4.7.0.tar.gz 7045501 BLAKE2B 468d83db541e632296e9b465d54764dc5e966f54709b66b0af2675d8fbd6d0bcd70fb18584887f3dc4d45bd0550b65a0da58d0c6bc318962b8798017b4ab0b63 SHA512 dda2af5d9b2f8a4ec5706eaf58021e95094c152380c732074809c370a5d1bfaeb424cb27f69a3b980dec83ae9c4c9ee1eddfeb0a7990c3b1f1494160a2d369cc
2+
EBUILD esptool-4.7.0-r2.ebuild 2012 BLAKE2B 8b5dd366be36bdbae9df92446a343303011ec2b78b9a2bd780685890127796936c588254cb95542d21229a8adcce1bcb5dbff56b23390f17226075f39eaf2590 SHA512 4cbcb45de147a3aa46a5c5f6a59f1db18c74f3ff5cc79896ba7667013ef138497bce7bcc689cc508b199521ffda6701b55019b976f17471c4ec791327749cda1
3+
MISC metadata.xml 504 BLAKE2B 578f33b9dc0f1748ecd37c355efd7f4acb041c192e44b89ad926c482c2a1d422080a0ed3c74311895b9f1ef996315965a79adc31b86437b3ea63bae321dd6294 SHA512 e8ed1644714bc0878d2d955f9d90bd6e0ca9fa183186ff160adaaaa46573fc696e49783c793f225a32b47b23da9f5df4d77d5fd59d7a52fc6386ec59f892cb83
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Copyright 1999-2024 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
PYTHON_COMPAT=( python3_{11..12} )
7+
DISTUTILS_USE_PEP517=setuptools
8+
9+
inherit distutils-r1
10+
11+
DESCRIPTION="Utility to communicate with the ROM bootloader in Espressif ESP8266 and ESP32"
12+
HOMEPAGE="https://github.com/espressif/esptool"
13+
SRC_URI="https://github.com/espressif/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
14+
15+
LICENSE="GPL-2+"
16+
SLOT="0"
17+
KEYWORDS="amd64 arm arm64 x86"
18+
19+
RDEPEND="
20+
$(python_gen_cond_dep '
21+
dev-python/bitstring[${PYTHON_USEDEP}]
22+
dev-python/cryptography[${PYTHON_USEDEP}]
23+
>=dev-python/ecdsa-0.16.0[${PYTHON_USEDEP}]
24+
dev-python/intelhex[${PYTHON_USEDEP}]
25+
dev-python/pyserial[${PYTHON_USEDEP}]
26+
dev-python/pyyaml[${PYTHON_USEDEP}]
27+
dev-python/reedsolo[${PYTHON_USEDEP}]
28+
')
29+
"
30+
BDEPEND="
31+
$(python_gen_cond_dep '
32+
dev-python/wheel[${PYTHON_USEDEP}]
33+
')
34+
test? ( $(python_gen_cond_dep '
35+
dev-python/cffi[${PYTHON_USEDEP}]
36+
dev-python/pyelftools[${PYTHON_USEDEP}]
37+
dev-python/pytest[${PYTHON_USEDEP}]
38+
') )
39+
"
40+
41+
distutils_enable_tests pytest
42+
43+
EPYTEST_DESELECT=(
44+
# test/test_esptool.py and test/test_espefuse.py need real hardware connected
45+
test/test_esptool.py
46+
test/test_espefuse.py
47+
)
48+
49+
src_prepare() {
50+
default
51+
52+
# test_espsecure_hsm.py needs setup of a "Soft HSM" or real hardware. remove.
53+
rm test/test_espsecure_hsm.py || die
54+
}
55+
56+
pkg_postinst() {
57+
if ver_test ${REPLACING_VERSIONS} -lt 4; then
58+
ewarn "${P} - new 4.x release with breaking changes:"
59+
ewarn " - Public API has been defined by limiting access to internals that have been refactored into multiple source files"
60+
ewarn " - If active security features are detected, the default behavior changes to prevent unintentional bricking"
61+
ewarn " - Flash parameters in an image header can now be changed only when no SHA256 digest is appended"
62+
ewarn " - The ESP8684 alias has been removed, ESP32-C2 has to be used"
63+
ewarn " - Megabit flash sizes have been deprecated, use megabyte units from now on"
64+
fi
65+
}

dev-embedded/esptool/metadata.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
3+
<pkgmetadata>
4+
<maintainer type="person" proxied="yes">
5+
<email>[email protected]</email>
6+
<name>Martin Dummer</name>
7+
</maintainer>
8+
<maintainer type="project" proxied="proxy">
9+
<email>[email protected]</email>
10+
<name>Proxy Maintainers</name>
11+
</maintainer>
12+
<stabilize-allarches/>
13+
<upstream>
14+
<remote-id type="github">espressif/esptool</remote-id>
15+
</upstream>
16+
</pkgmetadata>

0 commit comments

Comments
 (0)