Skip to content

Commit af70095

Browse files
committed
dev-embedded/esphome: update 2024.5.3-r, pin pillow-10.3.0
Signed-off-by: Andreas Billmeier <[email protected]>
1 parent dbf1b3e commit af70095

File tree

3 files changed

+120
-1
lines changed

3 files changed

+120
-1
lines changed

dev-embedded/esphome/Manifest

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ EBUILD esphome-2023.12.9.ebuild 3114 BLAKE2B 628cd9dd11bd646dc1342fa73165f9a1301
1111
EBUILD esphome-2024.2.2.ebuild 3181 BLAKE2B d3767f930f4eec4ea476a686a225d5f98ef3f4ec713e09076d20ae0fa2e901f06764be5cb18f72a8cbe66e37484fb3737bf12b73aa256b7fb6a49e408a7c2447 SHA512 049bb611a13bc04532b8fd6bb0ead2ee7539539c8b3b2c9f338ff0d097042553730a80b10663290aafb3f2097056a349438678ea968630998ab9fdd4c9564ecb
1212
EBUILD esphome-2024.3.2-r1.ebuild 3376 BLAKE2B 0be165e7f690571282b22df76b8bfb617ec431e778de4cfcb1a3a911028b86942670c058f59220642ea9d280bdd2c0ff28d896d8fe0765cc67c9f8117cab3396 SHA512 e663b6a1ced48fe489450ee3a76673b9981aa51866291bf1e129d7c6ded9eb0f511105b056d033fc12eea36da2d613422f599c96bf8d25d8f673acbea7f43c4f
1313
EBUILD esphome-2024.5.2.ebuild 3330 BLAKE2B 55963de1f6704aa5630ff3210f8e81ab2ec81eb4d3b8b35f5bf2e6113f5f961b76f2b167c313db3a8360a750ad5c9c4a90c5ff957786f03e537d44afb148f6d0 SHA512 7706c8a358aa143cf57e908fe924b8a3466ae4a1733d5d55004c0c9a48ffc090e4cbc04bf59d7528dbaaa52bafdcc8dd7675952486752acd85fd33198aa6045a
14-
EBUILD esphome-2024.5.3.ebuild 3330 BLAKE2B 55963de1f6704aa5630ff3210f8e81ab2ec81eb4d3b8b35f5bf2e6113f5f961b76f2b167c313db3a8360a750ad5c9c4a90c5ff957786f03e537d44afb148f6d0 SHA512 7706c8a358aa143cf57e908fe924b8a3466ae4a1733d5d55004c0c9a48ffc090e4cbc04bf59d7528dbaaa52bafdcc8dd7675952486752acd85fd33198aa6045a
14+
EBUILD esphome-2024.5.3-r1.ebuild 3463 BLAKE2B ae4bebe7c97a891765287a7e8f7ccd63aad12998e5dfd27d732af3ade5561f54d43864ea26090eee428510da9be18fc9172d749e3cb053ac111003e3f9580fa6 SHA512 72faa1c031fac08440c9f27f8083fc8c14c38ef2b0310c513266ee425c9491c918253763fa74272d5384bcc70ba0161cc660a8ff0ce8d05a9a602bde60bcc58c
1515
EBUILD esphome-9999.ebuild 3219 BLAKE2B 2bd978a559ffdfe08f8718a155b6df6df2b492f815997d51e9856d2ba048b0d41a65f8fa3eefbb7bed57cd697ee2bd9a89fdc80a262ee9020fe380a3e6f0ade8 SHA512 a9f5dbc7fc37a771ac9d18a52b2ebd9fb0bc6e5c3f23eec82248a9f91cc27e90ebd8b2f0725227cb12538a56f6b941a0f74457ac7df2cc63118bb93dc6d1ac8b
16+
MISC esphome-2024.5.3-r1.ebuild~ 3479 BLAKE2B ceef547d913c62430575adc8d49c1728213c6ddc0d974522f35fb56d412efa56294a743ecba57b085c1bbb7055ab23ab6f3d5162358f9c7a748d86bdafe645bb SHA512 692c11700ae32cf1466cd0e839073fb1ef605cbe2b5a37b9a0901f090adc7ba4bcb42789b4498db4e59f237a2c30464f1e92ccb7e5c6f979e9179d7332cfe372
1617
MISC metadata.xml 585 BLAKE2B 07113af8bf33f8ab4a457387804b65e5927bd40dc42de4931df0e78405ba49e2e9b695de6f3d919070b11e3edca32015f069217624b00549c38e608ffe680cf9 SHA512 fbd6544cfe0826fc63567c55f7882e4c6f61a2ebd337421353ae9afb8c2c66961f6328746fdfbe68ee47e5002193914c809c53a663d4a9a58f64166ba1346f20

dev-embedded/esphome/esphome-2024.5.3.ebuild renamed to dev-embedded/esphome/esphome-2024.5.3-r1.ebuild

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ src_prepare() {
8484
sed "/voluptuous==/c\voluptuous" -i requirements.txt || die
8585
sed "/cryptography==/c\cryptography" -i requirements.txt || die
8686
sed "/icmplib==/c\icmplib" -i requirements.txt || die
87+
88+
# esphome/components/font/__init__.py pillow version check
89+
sed "s/10.2.0/10.3.0/g" -i esphome/components/font/__init__.py || die
90+
8791
eapply_user
8892
}
8993

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
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..13} )
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[${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.15[${PYTHON_SINGLE_USEDEP}]
48+
~dev-embedded/esptool-4.7.0[${PYTHON_USEDEP}]
49+
~dev-python/click-8.1.7[${PYTHON_USEDEP}]
50+
~dev-embedded/esphome-dashboard-20240412.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-cov[${PYTHON_USEDEP}]
63+
dev-python/pytest-mock[${PYTHON_USEDEP}]
64+
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
65+
dev-python/asyncmock[${PYTHON_USEDEP}]
66+
dev-python/hypothesis[${PYTHON_USEDEP}]
67+
)
68+
')"
69+
70+
DISABLE_AUTOFORMATTING=1
71+
DOC_CONTENTS="
72+
The ESPHome dashboard listens on port 6052
73+
ESPHome configuration is in: /etc/${PN}
74+
dashboard command line arguments are configured in: /etc/conf.d/${PN}
75+
logging is to: /var/log/${PN}/{dashboard,warnings}.log
76+
support at https://git.edevau.net/onkelbeh/HomeAssistantRepository
77+
"
78+
79+
src_prepare() {
80+
sed "/aioesphomeapi==/c\aioesphomeapi" -i requirements.txt || die
81+
sed "/click==/c\click" -i requirements.txt || die
82+
sed "/colorama==/c\colorama" -i requirements.txt || die
83+
sed "/zeroconf==/c\zeroconf" -i requirements.txt || die
84+
sed "/voluptuous==/c\voluptuous" -i requirements.txt || die
85+
sed "/cryptography==/c\cryptography" -i requirements.txt || die
86+
sed "/icmplib==/c\icmplib" -i requirements.txt || die
87+
88+
# esphome/esphome/components/font/__init__.py pillow version check
89+
sed "s/10.2.0/10.3.0/g" -i esphome/esphome/components/font/__init__.py || die
90+
91+
eapply_user
92+
}
93+
94+
python_install_all() {
95+
dodoc ${DOCS}
96+
distutils-r1_python_install_all
97+
if use server; then
98+
keepdir "/etc/${PN}"
99+
fowners -R "${PN}:${PN}" "/etc/${PN}"
100+
keepdir "/var/log/${PN}"
101+
fowners -R "${PN}:${PN}" "/var/log/${PN}"
102+
newconfd "${FILESDIR}/${PN}.conf.d" "${PN}"
103+
newinitd "${FILESDIR}/${PN}.init.d-r3" "${PN}"
104+
readme.gentoo_create_doc
105+
fi
106+
}
107+
108+
pkg_postinst() {
109+
if use server; then
110+
readme.gentoo_print_elog
111+
fi
112+
}
113+
114+
distutils_enable_tests pytest

0 commit comments

Comments
 (0)