mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-19 15:59:00 -04:00
dev-embedded/esp-idf: use estack.eclass and newbin with heredoc
Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
parent
4855e0c868
commit
b8d29619de
@ -10,7 +10,7 @@ GDB_VER="14.2_20240403"
|
||||
|
||||
CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-${VER}"
|
||||
|
||||
inherit python-r1
|
||||
inherit estack python-r1
|
||||
|
||||
DESCRIPTION="Espressif IoT Development Framework"
|
||||
HOMEPAGE="https://www.espressif.com/"
|
||||
@ -67,7 +67,7 @@ PATCHES=(
|
||||
)
|
||||
|
||||
install_tool() {
|
||||
shopt -s globstar
|
||||
eshopts_push -s globstar
|
||||
|
||||
into /opt/${1}
|
||||
|
||||
@ -119,12 +119,17 @@ install_tool() {
|
||||
done
|
||||
)
|
||||
|
||||
shopt -u globstar
|
||||
eshopts_pop
|
||||
}
|
||||
|
||||
src_install() {
|
||||
echo -e "#!/bin/sh\npython /usr/share/${PN}/tools/idf.py \"\$@\"" > idf
|
||||
dobin idf
|
||||
newbin - idf <<-EOF
|
||||
#!/bin/sh
|
||||
|
||||
# Silence a warning by idf.py
|
||||
export IDF_PYTHON_ENV_PATH=
|
||||
exec python /usr/share/${PN}/tools/idf.py \$@
|
||||
EOF
|
||||
|
||||
install_tool xtensa-esp-elf
|
||||
install_tool xtensa-esp-elf/xtensa-esp-elf
|
||||
|
Loading…
x
Reference in New Issue
Block a user