Skip to content

Commit

Permalink
dev-embedded/esphome: update 2024.5.3-r, pin pillow-10.3.0
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Billmeier <[email protected]>
  • Loading branch information
onkelbeh committed May 26, 2024
1 parent dbf1b3e commit af70095
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dev-embedded/esphome/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ EBUILD esphome-2023.12.9.ebuild 3114 BLAKE2B 628cd9dd11bd646dc1342fa73165f9a1301
EBUILD esphome-2024.2.2.ebuild 3181 BLAKE2B d3767f930f4eec4ea476a686a225d5f98ef3f4ec713e09076d20ae0fa2e901f06764be5cb18f72a8cbe66e37484fb3737bf12b73aa256b7fb6a49e408a7c2447 SHA512 049bb611a13bc04532b8fd6bb0ead2ee7539539c8b3b2c9f338ff0d097042553730a80b10663290aafb3f2097056a349438678ea968630998ab9fdd4c9564ecb
EBUILD esphome-2024.3.2-r1.ebuild 3376 BLAKE2B 0be165e7f690571282b22df76b8bfb617ec431e778de4cfcb1a3a911028b86942670c058f59220642ea9d280bdd2c0ff28d896d8fe0765cc67c9f8117cab3396 SHA512 e663b6a1ced48fe489450ee3a76673b9981aa51866291bf1e129d7c6ded9eb0f511105b056d033fc12eea36da2d613422f599c96bf8d25d8f673acbea7f43c4f
EBUILD esphome-2024.5.2.ebuild 3330 BLAKE2B 55963de1f6704aa5630ff3210f8e81ab2ec81eb4d3b8b35f5bf2e6113f5f961b76f2b167c313db3a8360a750ad5c9c4a90c5ff957786f03e537d44afb148f6d0 SHA512 7706c8a358aa143cf57e908fe924b8a3466ae4a1733d5d55004c0c9a48ffc090e4cbc04bf59d7528dbaaa52bafdcc8dd7675952486752acd85fd33198aa6045a
EBUILD esphome-2024.5.3.ebuild 3330 BLAKE2B 55963de1f6704aa5630ff3210f8e81ab2ec81eb4d3b8b35f5bf2e6113f5f961b76f2b167c313db3a8360a750ad5c9c4a90c5ff957786f03e537d44afb148f6d0 SHA512 7706c8a358aa143cf57e908fe924b8a3466ae4a1733d5d55004c0c9a48ffc090e4cbc04bf59d7528dbaaa52bafdcc8dd7675952486752acd85fd33198aa6045a
EBUILD esphome-2024.5.3-r1.ebuild 3463 BLAKE2B ae4bebe7c97a891765287a7e8f7ccd63aad12998e5dfd27d732af3ade5561f54d43864ea26090eee428510da9be18fc9172d749e3cb053ac111003e3f9580fa6 SHA512 72faa1c031fac08440c9f27f8083fc8c14c38ef2b0310c513266ee425c9491c918253763fa74272d5384bcc70ba0161cc660a8ff0ce8d05a9a602bde60bcc58c
EBUILD esphome-9999.ebuild 3219 BLAKE2B 2bd978a559ffdfe08f8718a155b6df6df2b492f815997d51e9856d2ba048b0d41a65f8fa3eefbb7bed57cd697ee2bd9a89fdc80a262ee9020fe380a3e6f0ade8 SHA512 a9f5dbc7fc37a771ac9d18a52b2ebd9fb0bc6e5c3f23eec82248a9f91cc27e90ebd8b2f0725227cb12538a56f6b941a0f74457ac7df2cc63118bb93dc6d1ac8b
MISC esphome-2024.5.3-r1.ebuild~ 3479 BLAKE2B ceef547d913c62430575adc8d49c1728213c6ddc0d974522f35fb56d412efa56294a743ecba57b085c1bbb7055ab23ab6f3d5162358f9c7a748d86bdafe645bb SHA512 692c11700ae32cf1466cd0e839073fb1ef605cbe2b5a37b9a0901f090adc7ba4bcb42789b4498db4e59f237a2c30464f1e92ccb7e5c6f979e9179d7332cfe372
MISC metadata.xml 585 BLAKE2B 07113af8bf33f8ab4a457387804b65e5927bd40dc42de4931df0e78405ba49e2e9b695de6f3d919070b11e3edca32015f069217624b00549c38e608ffe680cf9 SHA512 fbd6544cfe0826fc63567c55f7882e4c6f61a2ebd337421353ae9afb8c2c66961f6328746fdfbe68ee47e5002193914c809c53a663d4a9a58f64166ba1346f20
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ src_prepare() {
sed "/voluptuous==/c\voluptuous" -i requirements.txt || die
sed "/cryptography==/c\cryptography" -i requirements.txt || die
sed "/icmplib==/c\icmplib" -i requirements.txt || die

# esphome/components/font/__init__.py pillow version check
sed "s/10.2.0/10.3.0/g" -i esphome/components/font/__init__.py || die

eapply_user
}

Expand Down
114 changes: 114 additions & 0 deletions dev-embedded/esphome/esphome-2024.5.3-r1.ebuild~
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
DISTUTILS_USE_PEP517=setuptools
DISTUTILS_SINGLE_IMPL=1
PYTHON_COMPAT=( python3_{11..13} )

inherit readme.gentoo-r1 distutils-r1

if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/esphome/esphome.git"
EGIT_BRANCH="dev"
S="${WORKDIR}/${P}/"
else
inherit pypi
MY_P=${P/_beta/b}
MY_PV=${PV/_beta/b}
S="${WORKDIR}/${MY_P}/"
fi

DESCRIPTION="Make creating custom firmwares for ESP32/ESP8266 super easy."
HOMEPAGE="https://github.com/esphome/esphome https://pypi.org/project/esphome/"

LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="+server test"
RESTRICT="!test? ( test )"

DOCS="README.md"

RDEPEND="
server? ( acct-group/${PN} acct-user/${PN} )
$(python_gen_cond_dep '
dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/voluptuous[${PYTHON_USEDEP}]
~dev-python/pyyaml-6.0.1[${PYTHON_USEDEP}]
~dev-python/paho-mqtt-1.6.1[${PYTHON_USEDEP}]
~dev-python/colorama-0.4.6[${PYTHON_USEDEP}]
dev-python/icmplib[${PYTHON_USEDEP}]
server? ( ~dev-python/tornado-6.4[${PYTHON_USEDEP}] )
~dev-python/tzlocal-5.2[${PYTHON_USEDEP}]
>=dev-python/tzdata-2021.1[${PYTHON_USEDEP}]
~dev-python/pyserial-3.5[${PYTHON_USEDEP}]
~dev-embedded/platformio-6.1.15[${PYTHON_SINGLE_USEDEP}]
~dev-embedded/esptool-4.7.0[${PYTHON_USEDEP}]
~dev-python/click-8.1.7[${PYTHON_USEDEP}]
~dev-embedded/esphome-dashboard-20240412.0[${PYTHON_USEDEP}]
dev-python/aioesphomeapi[${PYTHON_USEDEP}]
dev-python/zeroconf[${PYTHON_USEDEP}]
~dev-python/python-magic-0.4.27[${PYTHON_USEDEP}]
~dev-python/ruamel-yaml-0.18.6[${PYTHON_USEDEP}]
~dev-python/kconfiglib-13.7.1[${PYTHON_USEDEP}]
>=dev-python/pyparsing-3.0[${PYTHON_USEDEP}]
>=dev-python/argcomplete-2.0.0[${PYTHON_USEDEP}]
')"

BDEPEND="$(python_gen_cond_dep '
test? (
dev-python/pytest-cov[${PYTHON_USEDEP}]
dev-python/pytest-mock[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/asyncmock[${PYTHON_USEDEP}]
dev-python/hypothesis[${PYTHON_USEDEP}]
)
')"

DISABLE_AUTOFORMATTING=1
DOC_CONTENTS="
The ESPHome dashboard listens on port 6052
ESPHome configuration is in: /etc/${PN}
dashboard command line arguments are configured in: /etc/conf.d/${PN}
logging is to: /var/log/${PN}/{dashboard,warnings}.log
support at https://git.edevau.net/onkelbeh/HomeAssistantRepository
"

src_prepare() {
sed "/aioesphomeapi==/c\aioesphomeapi" -i requirements.txt || die
sed "/click==/c\click" -i requirements.txt || die
sed "/colorama==/c\colorama" -i requirements.txt || die
sed "/zeroconf==/c\zeroconf" -i requirements.txt || die
sed "/voluptuous==/c\voluptuous" -i requirements.txt || die
sed "/cryptography==/c\cryptography" -i requirements.txt || die
sed "/icmplib==/c\icmplib" -i requirements.txt || die

# esphome/esphome/components/font/__init__.py pillow version check
sed "s/10.2.0/10.3.0/g" -i esphome/esphome/components/font/__init__.py || die

eapply_user
}

python_install_all() {
dodoc ${DOCS}
distutils-r1_python_install_all
if use server; then
keepdir "/etc/${PN}"
fowners -R "${PN}:${PN}" "/etc/${PN}"
keepdir "/var/log/${PN}"
fowners -R "${PN}:${PN}" "/var/log/${PN}"
newconfd "${FILESDIR}/${PN}.conf.d" "${PN}"
newinitd "${FILESDIR}/${PN}.init.d-r3" "${PN}"
readme.gentoo_create_doc
fi
}

pkg_postinst() {
if use server; then
readme.gentoo_print_elog
fi
}

distutils_enable_tests pytest

0 comments on commit af70095

Please sign in to comment.