public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2022-05-25  8:24 David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2022-05-25  8:24 UTC (permalink / raw
  To: gentoo-commits

commit:     289c277dfe70f7e436bd406d11da06b9bf4a05a4
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Wed May 25 08:23:45 2022 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Wed May 25 08:23:45 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=289c277d

dev-embedded/esp-idf: new package, add 4.4.1

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/Manifest             |   7 ++
 dev-embedded/esp-idf/esp-idf-4.4.1.ebuild | 141 ++++++++++++++++++++++++++++++
 dev-embedded/esp-idf/metadata.xml         |   8 ++
 3 files changed, 156 insertions(+)

diff --git a/dev-embedded/esp-idf/Manifest b/dev-embedded/esp-idf/Manifest
new file mode 100644
index 000000000..82ad5461b
--- /dev/null
+++ b/dev-embedded/esp-idf/Manifest
@@ -0,0 +1,7 @@
+DIST binutils-esp32ulp-linux-amd64-2.28.51-esp-20191205.tar.gz 8248656 BLAKE2B 313e847733f2534d4f5a12609d6757c4245ce4914f1b0e12f2593d8ac559bc615888bed031b83ac8cf4610be9cd3a3aaec8bceb006358f3a386facac3b52d544 SHA512 6ee3af4ed346821f16bf1c029b9cd452453a4cebc8fc64e0b01de2efbf98cea06364d39aab6b3566e615b9d8daab16202b9c50c66776754a232154db30d0b100
+DIST esp-idf-4.4.1.zip 898663301 BLAKE2B b5896efc50a82c1a0c0910f980fd5ce32069b310be4b9efaaf51b735b9b63af9ab04e0192f352021feb26be95955fcc112eb6a66200b4552a13456e6d74551d0 SHA512 cb26959a882231ae8a0747136685314b33daa851a3f15e0d56620dfa1af7f55845e86d9889f9556ad298af79369d95be9e88dd394d94b631df023c7feac7a3cb
+DIST openocd-esp32-linux-amd64-0.11.0-esp32-20211220.tar.gz 1901040 BLAKE2B d1fc70dbbb730022162a4d7ebfa5e49880122fb7e12f374be9d168fbe8fab35cd7fb5f81bc573f2d26cbd48f63d5cf41c765f68e1027c36cafa3f3027c7afd82 SHA512 9ea4955a4b204dafefc5c2b99f9557eeedb28320b485193c4478cf797eb09caf9eba9cb0aeb5000482664312daef07f0de9978f7b2c776f6f0973e93875f57b3
+DIST riscv32-esp-elf-gcc8_4_0-esp-2021r2-patch3-linux-amd64.tar.gz 106843321 BLAKE2B 95921f64838d6c5f6e9fc366c7da8e685349e91fc636a2c401d0b0bb6fbc414f54ac0bcff0d6c482173264f1f764c37fefd592941d50f6924720a95b2ef232c4 SHA512 96af5013de4aca521ed3f81f93bb3bd64cb541352663eb1225cad1c5a547a57bafd5f930d3cffaaab057f8f740d83f79a97f4649e2f8f25d9f2002d68d7b9d36
+DIST xtensa-esp32-elf-gcc8_4_0-esp-2021r2-patch3-linux-amd64.tar.gz 90569312 BLAKE2B 7d1f0a2772cffadc4005e579e2f2713c82197171d4e824b088b2bd600739d44caf2d6dce0e3c598a0880417ce84dbc39730f57fde0d553dbfeccbb8fb6cf0810 SHA512 7378e19ca75da07a3454987bdded8e39eb73bb87d604568f482e40a95eba04a65448b63597ec360fcdd4d7df8d1e0cec7ad00d0afb1e63d0484aa8c879f0edad
+DIST xtensa-esp32s2-elf-gcc8_4_0-esp-2021r2-patch3-linux-amd64.tar.gz 90894048 BLAKE2B 2f46477d43c585b26dad094b58d6704a61ab7ab5137678fe214cb461944ce9b0f1fe6c7807e9b9e0d20e3e11e9cce3b53b5197a1ae931adc1ebc6909f170318b SHA512 a1c191556367e5137ffb9978725c75aa1b3e96542f8625515824de29caeafccf74eb7e473aa7f49f73a3f400529d275a547309d9e34a2bb0c9c3e2436c596d18
+DIST xtensa-esp32s3-elf-gcc8_4_0-esp-2021r2-patch3-linux-amd64.tar.gz 90903617 BLAKE2B 8d30be8b7610f0f972e87ad9af5f00e2de05e1b52c0cc82da70b021b7cbba3ad0f4693e7d3e0704d5e8a7b0cce7917c180fb3f52a6c8691caad39e7ae3e6d3af SHA512 fc76fb71c02352b2c7daa890d7d73dbcca43b3af2165eb872e3419853e787920b73022a3b826d463064e0d076f0c54f6244151391b938bbc2c031df8c074d6a4

diff --git a/dev-embedded/esp-idf/esp-idf-4.4.1.ebuild b/dev-embedded/esp-idf/esp-idf-4.4.1.ebuild
new file mode 100644
index 000000000..0a8c05c04
--- /dev/null
+++ b/dev-embedded/esp-idf/esp-idf-4.4.1.ebuild
@@ -0,0 +1,141 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+
+PYTHON_COMPAT=( python3_{8,9,10} )
+
+VER="esp-2021r2-patch3"
+CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/${VER}"
+
+inherit python-r1
+
+DESCRIPTION="Espressif IoT Development Framework"
+HOMEPAGE="https://www.espressif.com/"
+SRC_URI="https://dl.espressif.com/github_assets/espressif/${PN}/releases/download/v${PV}/${PN}-v${PV}.zip -> ${P}.zip
+	https://github.com/espressif/binutils-esp32ulp/releases/download/v2.28.51-esp-20191205/binutils-esp32ulp-linux-amd64-2.28.51-esp-20191205.tar.gz
+	https://github.com/espressif/openocd-esp32/releases/download/v0.11.0-esp32-20211220/openocd-esp32-linux-amd64-0.11.0-esp32-20211220.tar.gz
+	${CROSSTOOL_URL}/xtensa-esp32-elf-gcc8_4_0-${VER}-linux-amd64.tar.gz
+	${CROSSTOOL_URL}/xtensa-esp32s2-elf-gcc8_4_0-${VER}-linux-amd64.tar.gz
+	${CROSSTOOL_URL}/xtensa-esp32s3-elf-gcc8_4_0-${VER}-linux-amd64.tar.gz
+	${CROSSTOOL_URL}/riscv32-esp-elf-gcc8_4_0-${VER}-linux-amd64.tar.gz
+"
+	#https://dl.espressif.com/dl/toolchains/preview/riscv32-esp-elf-gcc8_4_0-crosstool-ng-1.24.0-123-g64eb9ff-linux-amd64.tar.gz
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+KEYWORDS="~amd64"
+LICENSE="Apache-2.0"
+IUSE="+esp32 esp32s2 esp32s3 riscv32"
+SLOT="0"
+
+RDEPEND="
+	dev-python/click[${PYTHON_USEDEP}]
+	dev-python/bitstring[${PYTHON_USEDEP}]
+	dev-python/construct[${PYTHON_USEDEP}]
+	dev-python/ecdsa[${PYTHON_USEDEP}]
+	dev-python/future[${PYTHON_USEDEP}]
+	dev-python/kconfiglib[${PYTHON_USEDEP}]
+	dev-python/pyelftools[${PYTHON_USEDEP}]
+	<dev-python/pyparsing-2.4.0[${PYTHON_USEDEP}]
+	dev-python/pyserial[${PYTHON_USEDEP}]
+	dev-python/python-socketio[${PYTHON_USEDEP}]
+	dev-python/reedsolomon[${PYTHON_USEDEP}]
+	dev-embedded/esptool[${PYTHON_USEDEP}]
+"
+
+RESTRICT="strip"
+
+QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
+QA_PRESTRIPPED="opt/*"
+
+install_tool() {
+	shopt -s globstar
+
+	into /opt/${1}
+
+	if [[ -d "../${1}/lib" ]]; then
+		if stat *.so &>/dev/null; then
+		for i in ../${1}/lib/**/*.so*; do
+			dolib.so ${i}
+		done
+		fi
+		
+		if stat *.a &>/dev/null; then
+		for i in ../${1}/lib/**/*.a*; do
+			dolib.a ${i}
+		done
+		fi
+		
+		insinto /opt/${1}/lib
+		doins -r ../${1}/lib/*
+	fi
+
+	exeinto /opt/${1}/bin
+	doexe ../${1}/bin/*
+	(
+	cd ../${1}
+	for i in libexec/**/*; do
+		exeinto /opt/${1}/$(dirname ${i})
+		if [[ -x "${i}" && ! -d "${i}" ]]; then
+			doexe ${i}
+		fi
+	done
+
+	if [[ -d "include" ]]; then
+		insinto /opt/${1}
+		doins -r include
+	fi
+	
+	if [[ -d "share" ]]; then
+		insinto /opt/${1}
+		doins -r share 
+	fi
+	)
+
+	(
+		cd ${D}/opt/${1}/bin/ || die
+		for i in *; do
+			dodir /opt/bin
+			cd ${D}/opt/bin || die
+			dosym ../${1}/bin/${i} /opt/bin/${i}
+		done
+	)
+}
+
+src_install() {
+	echo -e "#!/bin/sh\npython /usr/share/${PN}/tools/idf.py \"\$@\"" > idf
+	dobin idf
+
+	if use esp32; then
+		install_tool xtensa-esp32-elf
+		install_tool xtensa-esp32-elf/xtensa-esp32-elf
+	fi
+
+	if use esp32s2; then
+		install_tool xtensa-esp32s2-elf
+	fi
+
+	if use esp32s3; then	
+		install_tool xtensa-esp32s3-elf
+	fi
+
+	if use riscv32; then
+		install_tool riscv32-esp-elf
+	fi
+	install_tool esp32ulp-elf-binutils
+	install_tool openocd-esp32
+
+	echo "IDF_PATH=/usr/share/${PN}" > 99esp-idf || die
+	doenvd 99esp-idf
+
+	insinto /usr/share/${PN}
+	rm requirements.txt || die
+	touch requirements.txt
+
+	rm -r .git || die
+	doins -r .
+}
+
+

diff --git a/dev-embedded/esp-idf/metadata.xml b/dev-embedded/esp-idf/metadata.xml
new file mode 100644
index 000000000..01c1fc848
--- /dev/null
+++ b/dev-embedded/esp-idf/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>davidroman96@gmail.com</email>
+		<name>David Roman</name>
+	</maintainer>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
  2022-05-28 10:17 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
@ 2022-05-28 10:17 ` Andrew Ammerlaan
  0 siblings, 0 replies; 29+ messages in thread
From: Andrew Ammerlaan @ 2022-05-28 10:17 UTC (permalink / raw
  To: gentoo-commits

commit:     f806b08f7bd011ab675a8ce408174b3ffb4d8f4e
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Sat May 28 10:16:42 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sat May 28 10:16:42 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f806b08f

dev-embedded/esp-idf: pkgcheck QA, python-r1 -> python-single-r1

Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 dev-embedded/esp-idf/esp-idf-4.4.1.ebuild | 55 ++++++++++++++++---------------
 dev-embedded/esp-idf/metadata.xml         |  6 ++++
 2 files changed, 34 insertions(+), 27 deletions(-)

diff --git a/dev-embedded/esp-idf/esp-idf-4.4.1.ebuild b/dev-embedded/esp-idf/esp-idf-4.4.1.ebuild
index 0a8c05c04..2d21d4be1 100644
--- a/dev-embedded/esp-idf/esp-idf-4.4.1.ebuild
+++ b/dev-embedded/esp-idf/esp-idf-4.4.1.ebuild
@@ -3,13 +3,12 @@
 
 EAPI=8
 
-
-PYTHON_COMPAT=( python3_{8,9,10} )
+PYTHON_COMPAT=( python3_{8..10} )
 
 VER="esp-2021r2-patch3"
 CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/${VER}"
 
-inherit python-r1
+inherit python-single-r1
 
 DESCRIPTION="Espressif IoT Development Framework"
 HOMEPAGE="https://www.espressif.com/"
@@ -27,23 +26,27 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 KEYWORDS="~amd64"
 LICENSE="Apache-2.0"
-IUSE="+esp32 esp32s2 esp32s3 riscv32"
 SLOT="0"
-
-RDEPEND="
-	dev-python/click[${PYTHON_USEDEP}]
-	dev-python/bitstring[${PYTHON_USEDEP}]
-	dev-python/construct[${PYTHON_USEDEP}]
-	dev-python/ecdsa[${PYTHON_USEDEP}]
-	dev-python/future[${PYTHON_USEDEP}]
-	dev-python/kconfiglib[${PYTHON_USEDEP}]
-	dev-python/pyelftools[${PYTHON_USEDEP}]
-	<dev-python/pyparsing-2.4.0[${PYTHON_USEDEP}]
-	dev-python/pyserial[${PYTHON_USEDEP}]
-	dev-python/python-socketio[${PYTHON_USEDEP}]
-	dev-python/reedsolomon[${PYTHON_USEDEP}]
-	dev-embedded/esptool[${PYTHON_USEDEP}]
+IUSE="+esp32 esp32s2 esp32s3 riscv32"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+	$(python_gen_cond_dep '
+		dev-python/click[${PYTHON_USEDEP}]
+		dev-python/bitstring[${PYTHON_USEDEP}]
+		dev-python/construct[${PYTHON_USEDEP}]
+		dev-python/ecdsa[${PYTHON_USEDEP}]
+		dev-python/future[${PYTHON_USEDEP}]
+		dev-python/kconfiglib[${PYTHON_USEDEP}]
+		dev-python/pyelftools[${PYTHON_USEDEP}]
+		<dev-python/pyparsing-2.4.0[${PYTHON_USEDEP}]
+		dev-python/pyserial[${PYTHON_USEDEP}]
+		dev-python/python-socketio[${PYTHON_USEDEP}]
+		dev-python/reedsolomon[${PYTHON_USEDEP}]
+	')
+	dev-embedded/esptool[${PYTHON_SINGLE_USEDEP}]
 "
+BDEPEND="app-arch/unzip"
 
 RESTRICT="strip"
 
@@ -51,7 +54,7 @@ QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
 QA_PRESTRIPPED="opt/*"
 
 install_tool() {
-	shopt -s globstar
+	shopt -s globstar || die
 
 	into /opt/${1}
 
@@ -61,13 +64,13 @@ install_tool() {
 			dolib.so ${i}
 		done
 		fi
-		
+
 		if stat *.a &>/dev/null; then
 		for i in ../${1}/lib/**/*.a*; do
 			dolib.a ${i}
 		done
 		fi
-		
+
 		insinto /opt/${1}/lib
 		doins -r ../${1}/lib/*
 	fi
@@ -87,10 +90,10 @@ install_tool() {
 		insinto /opt/${1}
 		doins -r include
 	fi
-	
+
 	if [[ -d "share" ]]; then
 		insinto /opt/${1}
-		doins -r share 
+		doins -r share
 	fi
 	)
 
@@ -117,7 +120,7 @@ src_install() {
 		install_tool xtensa-esp32s2-elf
 	fi
 
-	if use esp32s3; then	
+	if use esp32s3; then
 		install_tool xtensa-esp32s3-elf
 	fi
 
@@ -132,10 +135,8 @@ src_install() {
 
 	insinto /usr/share/${PN}
 	rm requirements.txt || die
-	touch requirements.txt
+	touch requirements.txt || die
 
 	rm -r .git || die
 	doins -r .
 }
-
-

diff --git a/dev-embedded/esp-idf/metadata.xml b/dev-embedded/esp-idf/metadata.xml
index 01c1fc848..980d00b17 100644
--- a/dev-embedded/esp-idf/metadata.xml
+++ b/dev-embedded/esp-idf/metadata.xml
@@ -5,4 +5,10 @@
 		<email>davidroman96@gmail.com</email>
 		<name>David Roman</name>
 	</maintainer>
+	<use>
+		<flag name="esp32"></flag>
+		<flag name="esp32s2"></flag>
+		<flag name="esp32s3"></flag>
+		<flag name="riscv32"></flag>
+	</use>
 </pkgmetadata>


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2023-07-05 13:44 David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2023-07-05 13:44 UTC (permalink / raw
  To: gentoo-commits

commit:     1268e02d8a1ae483031ce41872a23e8346d27645
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Wed Jul  5 13:44:01 2023 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Wed Jul  5 13:44:01 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1268e02d

dev-embedded/esp-idf: fix pyparsing-3.1.0 compatibility

Closes: https://bugs.gentoo.org/908878
Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/esp-idf-5.0.2-r1.ebuild | 158 +++++++++++++++++++++++++++
 1 file changed, 158 insertions(+)

diff --git a/dev-embedded/esp-idf/esp-idf-5.0.2-r1.ebuild b/dev-embedded/esp-idf/esp-idf-5.0.2-r1.ebuild
new file mode 100644
index 000000000..b6ba5adca
--- /dev/null
+++ b/dev-embedded/esp-idf/esp-idf-5.0.2-r1.ebuild
@@ -0,0 +1,158 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_11 )
+
+VER="esp-2022r1"
+
+CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/${VER}"
+
+inherit python-single-r1
+
+DESCRIPTION="Espressif IoT Development Framework"
+HOMEPAGE="https://www.espressif.com/"
+
+#	https://github.com/espressif/binutils-esp32ulp/releases/download/v2.28.51-esp-20191205/binutils-esp32ulp-linux-amd64-2.28.51-esp-20191205.tar.gz
+SRC_URI="https://dl.espressif.com/github_assets/espressif/${PN}/releases/download/v${PV}/${PN}-v${PV}.zip -> ${P}.zip
+	https://github.com/espressif/openocd-esp32/releases/download/v0.11.0-esp32-20221026/openocd-esp32-linux-amd64-0.11.0-esp32-20221026.tar.gz
+	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v11.2_20220823/xtensa-esp-elf-gdb-11.2_20220823-x86_64-linux-gnu.tar.gz
+	${CROSSTOOL_URL}/xtensa-esp32-elf-gcc11_2_0-${VER}-linux-amd64.tar.xz
+	${CROSSTOOL_URL}/xtensa-esp32s2-elf-gcc11_2_0-${VER}-linux-amd64.tar.xz
+	${CROSSTOOL_URL}/xtensa-esp32s3-elf-gcc11_2_0-${VER}-linux-amd64.tar.xz
+	${CROSSTOOL_URL}/riscv32-esp-elf-gcc11_2_0-${VER}-linux-amd64.tar.xz
+"
+#https://dl.espressif.com/dl/toolchains/preview/riscv32-esp-elf-gcc8_4_0-crosstool-ng-1.24.0-123-g64eb9ff-linux-amd64.tar.gz
+
+KEYWORDS="~amd64"
+LICENSE="Apache-2.0"
+IUSE="+esp32 esp32s2 esp32s3 riscv32"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+SLOT="0"
+
+BDEPEND="app-arch/unzip"
+RDEPEND="
+	${PYTHON_DEPS}
+	dev-embedded/esptool[${PYTHON_SINGLE_USEDEP}]
+
+	$(python_gen_cond_dep '
+		dev-python/click[${PYTHON_USEDEP}]
+		dev-python/bitstring[${PYTHON_USEDEP}]
+		dev-python/construct[${PYTHON_USEDEP}]
+		dev-python/ecdsa[${PYTHON_USEDEP}]
+		dev-python/future[${PYTHON_USEDEP}]
+		dev-python/kconfiglib[${PYTHON_USEDEP}]
+		dev-python/pyelftools[${PYTHON_USEDEP}]
+		dev-python/pyparsing[${PYTHON_USEDEP}]
+		dev-python/pyserial[${PYTHON_USEDEP}]
+		dev-python/python-socketio[${PYTHON_USEDEP}]
+		dev-python/pyyaml[${PYTHON_USEDEP}]
+		dev-python/reedsolomon[${PYTHON_USEDEP}]
+		dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
+	')
+"
+
+RESTRICT="strip"
+
+QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
+QA_PRESTRIPPED="opt/*"
+
+PATCHES=(
+	"${FILESDIR}/allow-system-install-${P}.patch"
+	"${FILESDIR}/pyparsing-${PN}-5.1.patch"
+)
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+install_tool() {
+	shopt -s globstar
+
+	into /opt/${1}
+
+	if [[ -d "../${1}/lib" ]]; then
+		if stat *.so &>/dev/null; then
+		for i in ../${1}/lib/**/*.so*; do
+			dolib.so ${i}
+		done
+		fi
+
+		if stat *.a &>/dev/null; then
+		for i in ../${1}/lib/**/*.a*; do
+			dolib.a ${i}
+		done
+		fi
+
+		insinto /opt/${1}/lib
+		doins -r ../${1}/lib/*
+	fi
+
+	exeinto /opt/${1}/bin
+	doexe ../${1}/bin/*
+	(
+	cd ../${1}
+	for i in libexec/**/*; do
+		exeinto /opt/${1}/$(dirname ${i})
+		if [[ -x "${i}" && ! -d "${i}" ]]; then
+			doexe ${i}
+		fi
+	done
+
+	if [[ -d "include" ]]; then
+		insinto /opt/${1}
+		doins -r include
+	fi
+
+	if [[ -d "share" ]]; then
+		insinto /opt/${1}
+		doins -r share
+	fi
+	)
+
+	(
+		cd "${D}"/opt/${1}/bin/ || die
+		for i in *; do
+			dodir /opt/bin
+			cd "${D}"/opt/bin || die
+			dosym ../${1}/bin/${i} /opt/bin/${i}
+		done
+	)
+
+	shopt -u globstar
+}
+
+src_install() {
+	echo -e "#!/bin/sh\npython3.11 /usr/share/${PN}/tools/idf.py \"\$@\"" > idf
+	dobin idf
+
+	if use esp32; then
+		install_tool xtensa-esp32-elf
+		install_tool xtensa-esp32-elf/xtensa-esp32-elf
+	fi
+
+	if use esp32s2; then
+		install_tool xtensa-esp32s2-elf
+	fi
+
+	if use esp32s3; then
+		install_tool xtensa-esp32s3-elf
+	fi
+
+	if use riscv32; then
+		install_tool riscv32-esp-elf
+	fi
+	install_tool openocd-esp32
+
+	# Remove unsupported python versions
+	rm "${WORKDIR}"/xtensa-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{6..10} || die
+	install_tool xtensa-esp-elf-gdb
+
+	echo "IDF_PATH=/usr/share/${PN}" > 99esp-idf || die
+	doenvd 99esp-idf
+
+	insinto /usr/share/${PN}
+
+	rm -r .git || die
+	doins -r .
+}


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2023-07-05 14:49 David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2023-07-05 14:49 UTC (permalink / raw
  To: gentoo-commits

commit:     954ae79125ad15cfed41b500391fd788e4537b74
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Wed Jul  5 14:48:24 2023 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Wed Jul  5 14:48:45 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=954ae791

dev-embedded/esp-idf: fix dependencies

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/esp-idf-5.1.ebuild | 31 +++++++++++++------------------
 1 file changed, 13 insertions(+), 18 deletions(-)

diff --git a/dev-embedded/esp-idf/esp-idf-5.1.ebuild b/dev-embedded/esp-idf/esp-idf-5.1.ebuild
index e78cefd0e..8f660c8e0 100644
--- a/dev-embedded/esp-idf/esp-idf-5.1.ebuild
+++ b/dev-embedded/esp-idf/esp-idf-5.1.ebuild
@@ -9,7 +9,7 @@ VER="12.2.0_20230208"
 
 CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-${VER}"
 
-inherit python-single-r1
+inherit python-r1
 
 DESCRIPTION="Espressif IoT Development Framework"
 HOMEPAGE="https://www.espressif.com/"
@@ -35,23 +35,18 @@ SLOT="0"
 BDEPEND="app-arch/unzip"
 RDEPEND="
 	${PYTHON_DEPS}
-	dev-embedded/esptool[${PYTHON_SINGLE_USEDEP}]
-
-	$(python_gen_cond_dep '
-		dev-python/click[${PYTHON_USEDEP}]
-		dev-python/bitstring[${PYTHON_USEDEP}]
-		dev-python/construct[${PYTHON_USEDEP}]
-		dev-python/ecdsa[${PYTHON_USEDEP}]
-		dev-python/future[${PYTHON_USEDEP}]
-		dev-python/kconfiglib[${PYTHON_USEDEP}]
-		dev-python/pyelftools[${PYTHON_USEDEP}]
-		dev-python/pyparsing[${PYTHON_USEDEP}]
-		dev-python/pyserial[${PYTHON_USEDEP}]
-		dev-python/python-socketio[${PYTHON_USEDEP}]
-		dev-python/pyyaml[${PYTHON_USEDEP}]
-		dev-python/reedsolomon[${PYTHON_USEDEP}]
-		dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
-	')
+
+	dev-python/click[${PYTHON_USEDEP}]
+	dev-python/pyserial[${PYTHON_USEDEP}]
+	dev-python/cryptography[${PYTHON_USEDEP}]
+	dev-python/pyparsing[${PYTHON_USEDEP}]
+	dev-python/pyelftools[${PYTHON_USEDEP}]
+	dev-embedded/esp-coredump[${PYTHON_USEDEP}]
+	dev-embedded/esptool
+	dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-size[${PYTHON_USEDEP}]
+	dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
 "
 
 RESTRICT="strip"


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2023-07-17 23:00 Anna Vyalkova
  0 siblings, 0 replies; 29+ messages in thread
From: Anna Vyalkova @ 2023-07-17 23:00 UTC (permalink / raw
  To: gentoo-commits

commit:     610676dd9832e5ee973c55c8f355eb95a91adb4d
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Mon Jul 17 22:59:32 2023 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Mon Jul 17 23:00:20 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=610676dd

dev-embedded/esp-idf: drop 5.0.2, 5.0.2-r1

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 dev-embedded/esp-idf/Manifest                |   7 --
 dev-embedded/esp-idf/esp-idf-5.0.2-r1.ebuild | 158 ---------------------------
 dev-embedded/esp-idf/esp-idf-5.0.2.ebuild    | 152 --------------------------
 3 files changed, 317 deletions(-)

diff --git a/dev-embedded/esp-idf/Manifest b/dev-embedded/esp-idf/Manifest
index 3c1f2b2b1..4436ec569 100644
--- a/dev-embedded/esp-idf/Manifest
+++ b/dev-embedded/esp-idf/Manifest
@@ -1,14 +1,7 @@
-DIST esp-idf-5.0.2.zip 1000558879 BLAKE2B 6127dfb7f78261060b4981e414fea95a4ef7162bb3da11cf53aeb6504396d9e0958044dd66ba1329e87004fd1149c41a86638b4f7a6c3a9d7236fc908961818d SHA512 c58013a5597c00c2ee1c8ae8814b18365f5949b5d834b1fccbee3dce944561d9f2c4296aad578cfc5d79fcd5f86cfa6a5024ff1472305d08ab65e6634be65f05
 DIST esp-idf-5.1.zip 1062080629 BLAKE2B 78df1d6abfdde5731499422c6d05e0cdf0d6c46b73f6e7a6b94f61c5bb66ddfeffffe9a1f5dba5996397141ca2dc3372fbca5b915b828bb30069d8d711f7858b SHA512 85cc37a910398cb82fca4ff6257d23c28a993cf7deb3f7e34129513cd89e8a495ec7b38d3a206482489ffe4996d800a2742fd6c69cc5ce425b4d0522d19d9592
-DIST openocd-esp32-linux-amd64-0.11.0-esp32-20221026.tar.gz 2051435 BLAKE2B 59fd510cf3c12514791fa85b76d81722685add64f0a690793b52c5d41101c727fefe064727b148577c3fc522ffae79e8f632d34f300a9543377027579b9cea70 SHA512 f8296460efa3d43b23a51c81a840a2e7c13272fa213770bfdb269decd23a3571be9c4ff4be6647d87e56e156284952d9a8c92b24244eaa6996fae18497ce15f8
 DIST openocd-esp32-linux-amd64-0.12.0-esp32-20230419.tar.gz 2126949 BLAKE2B ae53bf574c60a7f004b49946f03fe936fefeee2574bf47ac71b2144d066e77e64190889b3650e39010aaf568fef13e05dc773355f1b7f59f547b181346c78080 SHA512 3a7f0e2ff4e68d203847271b1b95fc9c9581adf5d4f503cdc20770985f2b8b59d39f358e46d0d7358e8c94c8ff1437c4747579e02dd92b7a07a0ba23a885d191
 DIST riscv32-esp-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz 131410024 BLAKE2B 6961ddad1570aa69cbe7a4b1cd6722831d725b83a2d865b5babeea9b2d1762e4dda3cf35bdd4c5137758e15267a229136439387ff72577d5d558a924cd6161aa SHA512 dd0a95408fb487d444cb2c1efc9a0d21404eba2080b16cd9958dd9a9d22c5bf36f3c5e0309b082a226b39e4aeaf9a07ac89af740e2d5c01f85147d26dff7d233
-DIST riscv32-esp-elf-gcc11_2_0-esp-2022r1-linux-amd64.tar.xz 110107900 BLAKE2B 70688adf6eb613f6d0a3700d5730882b7ff9dec110cbc4157c822dfe1d2abfe21f902e52c695ed410fef39f9c03dfffa3b9c7effac04464dfce4e8b0dcf88814 SHA512 cf7443e1480456fbf5d0824d4745740d8f5e5858c403e70b3931adfa582816c2e0c53c53dc51d493809d9e6780077bc1b1fae51bc146ba1b6272dc3554c1fedb
-DIST xtensa-esp-elf-gdb-11.2_20220823-x86_64-linux-gnu.tar.gz 26947336 BLAKE2B 4970451c7b61df0158294bad456a86718631d24cd73efdd4523de6afcba3f780dd54c07549effc6ab3a0838044b3eb2b817346fc11f8a5ad70f827587e65fdbc SHA512 9532d3cd3c82142c65504e641a68cd836ad1642200e4a512ade62380b149d23ddfa0dccdd339825fdf5a3c55107717a21382469bcf19103113f624a2960ca247
 DIST xtensa-esp-elf-gdb-12.1_20221002-x86_64-linux-gnu.tar.gz 32006939 BLAKE2B 3963f402f65a1503d4fcef0b68c8efcd1f17407809f77a5b76da03e89a0fdd47cd06545ab958aa444fc2ce822b20b4e7c88d921de723bae81bd74bd93a34e047 SHA512 013641d87729f7387a29afac0715a1fc1012edf88092e1dd51682df07730ab71c511f6824c77f52b17c06dca1a04a85c157730da80d1e5cb61bc6dcbe48e199e
 DIST xtensa-esp32-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz 67006496 BLAKE2B 343803d0511f8fd5d382221b57c68d964565e36bbd397d5ee5747f75224498db306120c10b7d664c2d0449888d5fa6c1aa423f5681097f06810c257c922d83aa SHA512 6bba61d3f05a08cb0e0f238c60af1b69caeb950e598849aa1edea6e4e95838938c1006afee8d19ea0533d9747342cb57b9010f52500db8a38b13987bea3a827a
-DIST xtensa-esp32-elf-gcc11_2_0-esp-2022r1-linux-amd64.tar.xz 64781328 BLAKE2B 7216df8a7a88f73f9beac705aa4a7703a8215301afb4c9ca64c9d16a2fafb574a06079d2e5288b2784e4cd3e5e8e2b3d03708e21c42bc48a30abb06199207616 SHA512 72cd2e5d3168d1ada66c53428ddec1ee47785fc9720e9c1b4aacc41021e59335a8e2d07cc14b064b1f3ea9c01bd747b7cdff69ff83e5586bf1abb4acf5986508
 DIST xtensa-esp32s2-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz 64374532 BLAKE2B 7fe7c185e4561e34981615a3b7b96998cc11c473166bf54c2db57eecd617ab2c6c94c62fe6bc632e821cc98cf3e82d6f2b35a9210b56245442b1c6206b135617 SHA512 5381167aff6a2d023fb5b210dc092b610d72ae00484dae17d7c4e016bda9d457e597698895fcd2de755e6a86b9af2b2c5ca993cf89f12c3570f223671f6144da
-DIST xtensa-esp32s2-elf-gcc11_2_0-esp-2022r1-linux-amd64.tar.xz 51546516 BLAKE2B f4f4bc5bc138f181819416f0b3b4a67270588f827afd64693da4caf8c1a100a04787aa23cfafedb535e5c26aea7af51ad9e08316a0abba99d5549fb62e73aae5 SHA512 72071cb911eb62eff22d46b98f3ac6af87c1b0af4adc036e7f093e24987048c388a689138627ce1a721b93ef9a63a4a6046cbcc91f92e033b5330e4aacf746ea
 DIST xtensa-esp32s3-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz 67512340 BLAKE2B 10859b0fbb1f8c2e3c229e4f87ccac00dda4f1f54827a556772badf2dd85b04c6cf50a79cc89f80a2596fc7fb7253e5750158e5499ab2c4062717de50d04473c SHA512 c23f35f01a938e96ff85bd06fd25db929be3027ab1cd0d57f2c3c355b7abb1d2629f193deae2dfa2f2684faf2c516f96029be28e230dc73b70ea935121ab62ba
-DIST xtensa-esp32s3-elf-gcc11_2_0-esp-2022r1-linux-amd64.tar.xz 51899328 BLAKE2B 9ea6e702345fe158d5bbf8c86fffa11faaa4e74f58ab0ad22ba7c2e46fe41bb06897b6e2912852564b19d773642b23ad897a9f0655eb020a354a2d98c3296d97 SHA512 54afc2a307489d719d72c1a9506b325b1152395e87fa8fa78d90b79bc827625e23f86aa104e02f78fc1f074d191b552de5c1853a52ba1ccadae93865c58f5873

diff --git a/dev-embedded/esp-idf/esp-idf-5.0.2-r1.ebuild b/dev-embedded/esp-idf/esp-idf-5.0.2-r1.ebuild
deleted file mode 100644
index b6ba5adca..000000000
--- a/dev-embedded/esp-idf/esp-idf-5.0.2-r1.ebuild
+++ /dev/null
@@ -1,158 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_11 )
-
-VER="esp-2022r1"
-
-CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/${VER}"
-
-inherit python-single-r1
-
-DESCRIPTION="Espressif IoT Development Framework"
-HOMEPAGE="https://www.espressif.com/"
-
-#	https://github.com/espressif/binutils-esp32ulp/releases/download/v2.28.51-esp-20191205/binutils-esp32ulp-linux-amd64-2.28.51-esp-20191205.tar.gz
-SRC_URI="https://dl.espressif.com/github_assets/espressif/${PN}/releases/download/v${PV}/${PN}-v${PV}.zip -> ${P}.zip
-	https://github.com/espressif/openocd-esp32/releases/download/v0.11.0-esp32-20221026/openocd-esp32-linux-amd64-0.11.0-esp32-20221026.tar.gz
-	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v11.2_20220823/xtensa-esp-elf-gdb-11.2_20220823-x86_64-linux-gnu.tar.gz
-	${CROSSTOOL_URL}/xtensa-esp32-elf-gcc11_2_0-${VER}-linux-amd64.tar.xz
-	${CROSSTOOL_URL}/xtensa-esp32s2-elf-gcc11_2_0-${VER}-linux-amd64.tar.xz
-	${CROSSTOOL_URL}/xtensa-esp32s3-elf-gcc11_2_0-${VER}-linux-amd64.tar.xz
-	${CROSSTOOL_URL}/riscv32-esp-elf-gcc11_2_0-${VER}-linux-amd64.tar.xz
-"
-#https://dl.espressif.com/dl/toolchains/preview/riscv32-esp-elf-gcc8_4_0-crosstool-ng-1.24.0-123-g64eb9ff-linux-amd64.tar.gz
-
-KEYWORDS="~amd64"
-LICENSE="Apache-2.0"
-IUSE="+esp32 esp32s2 esp32s3 riscv32"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-SLOT="0"
-
-BDEPEND="app-arch/unzip"
-RDEPEND="
-	${PYTHON_DEPS}
-	dev-embedded/esptool[${PYTHON_SINGLE_USEDEP}]
-
-	$(python_gen_cond_dep '
-		dev-python/click[${PYTHON_USEDEP}]
-		dev-python/bitstring[${PYTHON_USEDEP}]
-		dev-python/construct[${PYTHON_USEDEP}]
-		dev-python/ecdsa[${PYTHON_USEDEP}]
-		dev-python/future[${PYTHON_USEDEP}]
-		dev-python/kconfiglib[${PYTHON_USEDEP}]
-		dev-python/pyelftools[${PYTHON_USEDEP}]
-		dev-python/pyparsing[${PYTHON_USEDEP}]
-		dev-python/pyserial[${PYTHON_USEDEP}]
-		dev-python/python-socketio[${PYTHON_USEDEP}]
-		dev-python/pyyaml[${PYTHON_USEDEP}]
-		dev-python/reedsolomon[${PYTHON_USEDEP}]
-		dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
-	')
-"
-
-RESTRICT="strip"
-
-QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
-QA_PRESTRIPPED="opt/*"
-
-PATCHES=(
-	"${FILESDIR}/allow-system-install-${P}.patch"
-	"${FILESDIR}/pyparsing-${PN}-5.1.patch"
-)
-
-S="${WORKDIR}/${PN}-v${PV}"
-
-install_tool() {
-	shopt -s globstar
-
-	into /opt/${1}
-
-	if [[ -d "../${1}/lib" ]]; then
-		if stat *.so &>/dev/null; then
-		for i in ../${1}/lib/**/*.so*; do
-			dolib.so ${i}
-		done
-		fi
-
-		if stat *.a &>/dev/null; then
-		for i in ../${1}/lib/**/*.a*; do
-			dolib.a ${i}
-		done
-		fi
-
-		insinto /opt/${1}/lib
-		doins -r ../${1}/lib/*
-	fi
-
-	exeinto /opt/${1}/bin
-	doexe ../${1}/bin/*
-	(
-	cd ../${1}
-	for i in libexec/**/*; do
-		exeinto /opt/${1}/$(dirname ${i})
-		if [[ -x "${i}" && ! -d "${i}" ]]; then
-			doexe ${i}
-		fi
-	done
-
-	if [[ -d "include" ]]; then
-		insinto /opt/${1}
-		doins -r include
-	fi
-
-	if [[ -d "share" ]]; then
-		insinto /opt/${1}
-		doins -r share
-	fi
-	)
-
-	(
-		cd "${D}"/opt/${1}/bin/ || die
-		for i in *; do
-			dodir /opt/bin
-			cd "${D}"/opt/bin || die
-			dosym ../${1}/bin/${i} /opt/bin/${i}
-		done
-	)
-
-	shopt -u globstar
-}
-
-src_install() {
-	echo -e "#!/bin/sh\npython3.11 /usr/share/${PN}/tools/idf.py \"\$@\"" > idf
-	dobin idf
-
-	if use esp32; then
-		install_tool xtensa-esp32-elf
-		install_tool xtensa-esp32-elf/xtensa-esp32-elf
-	fi
-
-	if use esp32s2; then
-		install_tool xtensa-esp32s2-elf
-	fi
-
-	if use esp32s3; then
-		install_tool xtensa-esp32s3-elf
-	fi
-
-	if use riscv32; then
-		install_tool riscv32-esp-elf
-	fi
-	install_tool openocd-esp32
-
-	# Remove unsupported python versions
-	rm "${WORKDIR}"/xtensa-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{6..10} || die
-	install_tool xtensa-esp-elf-gdb
-
-	echo "IDF_PATH=/usr/share/${PN}" > 99esp-idf || die
-	doenvd 99esp-idf
-
-	insinto /usr/share/${PN}
-
-	rm -r .git || die
-	doins -r .
-}

diff --git a/dev-embedded/esp-idf/esp-idf-5.0.2.ebuild b/dev-embedded/esp-idf/esp-idf-5.0.2.ebuild
deleted file mode 100644
index 2aad6eb50..000000000
--- a/dev-embedded/esp-idf/esp-idf-5.0.2.ebuild
+++ /dev/null
@@ -1,152 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_11 )
-
-VER="esp-2022r1"
-
-CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/${VER}"
-
-inherit python-single-r1
-
-DESCRIPTION="Espressif IoT Development Framework"
-HOMEPAGE="https://www.espressif.com/"
-
-#	https://github.com/espressif/binutils-esp32ulp/releases/download/v2.28.51-esp-20191205/binutils-esp32ulp-linux-amd64-2.28.51-esp-20191205.tar.gz
-SRC_URI="https://dl.espressif.com/github_assets/espressif/${PN}/releases/download/v${PV}/${PN}-v${PV}.zip -> ${P}.zip
-	https://github.com/espressif/openocd-esp32/releases/download/v0.11.0-esp32-20221026/openocd-esp32-linux-amd64-0.11.0-esp32-20221026.tar.gz
-	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v11.2_20220823/xtensa-esp-elf-gdb-11.2_20220823-x86_64-linux-gnu.tar.gz
-	${CROSSTOOL_URL}/xtensa-esp32-elf-gcc11_2_0-${VER}-linux-amd64.tar.xz
-	${CROSSTOOL_URL}/xtensa-esp32s2-elf-gcc11_2_0-${VER}-linux-amd64.tar.xz
-	${CROSSTOOL_URL}/xtensa-esp32s3-elf-gcc11_2_0-${VER}-linux-amd64.tar.xz
-	${CROSSTOOL_URL}/riscv32-esp-elf-gcc11_2_0-${VER}-linux-amd64.tar.xz
-"
-#https://dl.espressif.com/dl/toolchains/preview/riscv32-esp-elf-gcc8_4_0-crosstool-ng-1.24.0-123-g64eb9ff-linux-amd64.tar.gz
-
-KEYWORDS="~amd64"
-LICENSE="Apache-2.0"
-IUSE="+esp32 esp32s2 esp32s3 riscv32"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-SLOT="0"
-
-BDEPEND="app-arch/unzip"
-RDEPEND="
-	${PYTHON_DEPS}
-	dev-embedded/esptool[${PYTHON_SINGLE_USEDEP}]
-
-	$(python_gen_cond_dep '
-		dev-python/click[${PYTHON_USEDEP}]
-		dev-python/bitstring[${PYTHON_USEDEP}]
-		dev-python/construct[${PYTHON_USEDEP}]
-		dev-python/ecdsa[${PYTHON_USEDEP}]
-		dev-python/future[${PYTHON_USEDEP}]
-		dev-python/kconfiglib[${PYTHON_USEDEP}]
-		dev-python/pyelftools[${PYTHON_USEDEP}]
-		dev-python/pyparsing[${PYTHON_USEDEP}]
-		dev-python/pyserial[${PYTHON_USEDEP}]
-		dev-python/python-socketio[${PYTHON_USEDEP}]
-		dev-python/pyyaml[${PYTHON_USEDEP}]
-		dev-python/reedsolomon[${PYTHON_USEDEP}]
-		dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
-	')
-"
-
-RESTRICT="strip"
-
-QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
-QA_PRESTRIPPED="opt/*"
-
-PATCHES=("${FILESDIR}/allow-system-install-${P}.patch")
-
-S="${WORKDIR}/${PN}-v${PV}"
-
-install_tool() {
-	shopt -s globstar
-
-	into /opt/${1}
-
-	if [[ -d "../${1}/lib" ]]; then
-		if stat *.so &>/dev/null; then
-		for i in ../${1}/lib/**/*.so*; do
-			dolib.so ${i}
-		done
-		fi
-
-		if stat *.a &>/dev/null; then
-		for i in ../${1}/lib/**/*.a*; do
-			dolib.a ${i}
-		done
-		fi
-
-		insinto /opt/${1}/lib
-		doins -r ../${1}/lib/*
-	fi
-
-	exeinto /opt/${1}/bin
-	doexe ../${1}/bin/*
-	(
-	cd ../${1}
-	for i in libexec/**/*; do
-		exeinto /opt/${1}/$(dirname ${i})
-		if [[ -x "${i}" && ! -d "${i}" ]]; then
-			doexe ${i}
-		fi
-	done
-
-	if [[ -d "include" ]]; then
-		insinto /opt/${1}
-		doins -r include
-	fi
-
-	if [[ -d "share" ]]; then
-		insinto /opt/${1}
-		doins -r share
-	fi
-	)
-
-	(
-		cd "${D}"/opt/${1}/bin/ || die
-		for i in *; do
-			dodir /opt/bin
-			cd "${D}"/opt/bin || die
-			dosym ../${1}/bin/${i} /opt/bin/${i}
-		done
-	)
-
-	shopt -u globstar
-}
-
-src_install() {
-	echo -e "#!/bin/sh\npython3.11 /usr/share/${PN}/tools/idf.py \"\$@\"" > idf
-	dobin idf
-
-	if use esp32; then
-		install_tool xtensa-esp32-elf
-		install_tool xtensa-esp32-elf/xtensa-esp32-elf
-	fi
-
-	if use esp32s2; then
-		install_tool xtensa-esp32s2-elf
-	fi
-
-	if use esp32s3; then
-		install_tool xtensa-esp32s3-elf
-	fi
-
-	if use riscv32; then
-		install_tool riscv32-esp-elf
-	fi
-	install_tool openocd-esp32
-	install_tool xtensa-esp-elf-gdb
-
-	echo "IDF_PATH=/usr/share/${PN}" > 99esp-idf || die
-	doenvd 99esp-idf
-
-	insinto /usr/share/${PN}
-
-	rm -r .git || die
-	doins -r .
-}


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2023-07-25 14:57 David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2023-07-25 14:57 UTC (permalink / raw
  To: gentoo-commits

commit:     c6cd59d89dbb75fcd043182ac7772982d59cb1b7
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Tue Jul 25 14:56:40 2023 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Tue Jul 25 14:57:25 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c6cd59d8

dev-embedded/esp-idf: fix unresolved SONAME dependency

Closes: https://bugs.gentoo.org/884853
Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/esp-idf-5.1-r1.ebuild | 160 +++++++++++++++++++++++++++++
 1 file changed, 160 insertions(+)

diff --git a/dev-embedded/esp-idf/esp-idf-5.1-r1.ebuild b/dev-embedded/esp-idf/esp-idf-5.1-r1.ebuild
new file mode 100644
index 000000000..1842cc7f9
--- /dev/null
+++ b/dev-embedded/esp-idf/esp-idf-5.1-r1.ebuild
@@ -0,0 +1,160 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_11 )
+
+VER="12.2.0_20230208"
+
+CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-${VER}"
+
+inherit python-r1
+
+DESCRIPTION="Espressif IoT Development Framework"
+HOMEPAGE="https://www.espressif.com/"
+
+#	https://github.com/espressif/binutils-esp32ulp/releases/download/v2.28.51-esp-20191205/binutils-esp32ulp-linux-amd64-2.28.51-esp-20191205.tar.gz
+SRC_URI="https://dl.espressif.com/github_assets/espressif/${PN}/releases/download/v${PV}/${PN}-v${PV}.zip -> ${P}.zip
+	https://github.com/espressif/openocd-esp32/releases/download/v0.12.0-esp32-20230419/openocd-esp32-linux-amd64-0.12.0-esp32-20230419.tar.gz
+	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/xtensa-esp-elf-gdb-12.1_20221002-x86_64-linux-gnu.tar.gz"
+SRC_URI+=" esp32? ( ${CROSSTOOL_URL}/xtensa-esp32-elf-${VER}-x86_64-linux-gnu.tar.xz )"
+SRC_URI+=" esp32s2? ( ${CROSSTOOL_URL}/xtensa-esp32s2-elf-${VER}-x86_64-linux-gnu.tar.xz )"
+SRC_URI+=" esp32s3? ( ${CROSSTOOL_URL}/xtensa-esp32s3-elf-${VER}-x86_64-linux-gnu.tar.xz )"
+SRC_URI+=" riscv32? ( ${CROSSTOOL_URL}/riscv32-esp-elf-${VER}-x86_64-linux-gnu.tar.xz )"
+
+#https://dl.espressif.com/dl/toolchains/preview/riscv32-esp-elf-gcc8_4_0-crosstool-ng-1.24.0-123-g64eb9ff-linux-amd64.tar.gz
+
+KEYWORDS="~amd64"
+LICENSE="Apache-2.0"
+IUSE="+esp32 esp32s2 esp32s3 riscv32"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+SLOT="0"
+
+BDEPEND="app-arch/unzip"
+RDEPEND="
+	${PYTHON_DEPS}
+
+	dev-libs/libusb:1
+	dev-python/click[${PYTHON_USEDEP}]
+	dev-python/pyserial[${PYTHON_USEDEP}]
+	dev-python/cryptography[${PYTHON_USEDEP}]
+	dev-python/pyparsing[${PYTHON_USEDEP}]
+	dev-python/pyelftools[${PYTHON_USEDEP}]
+	dev-embedded/esp-coredump[${PYTHON_USEDEP}]
+	dev-embedded/esptool
+	dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-size[${PYTHON_USEDEP}]
+	dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
+"
+
+RESTRICT="strip"
+
+QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
+QA_PRESTRIPPED="opt/*"
+
+PATCHES=(
+	"${FILESDIR}/allow-system-install-${PN}-5.0.2.patch"
+	"${FILESDIR}/pyparsing-${P}.patch"
+)
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+install_tool() {
+	shopt -s globstar
+
+	into /opt/${1}
+
+	if [[ -d "../${1}/lib" ]]; then
+		if stat *.so &>/dev/null; then
+		for i in ../${1}/lib/**/*.so*; do
+			dolib.so ${i}
+		done
+		fi
+
+		if stat *.a &>/dev/null; then
+		for i in ../${1}/lib/**/*.a*; do
+			dolib.a ${i}
+		done
+		fi
+
+		insinto /opt/${1}/lib
+		doins -r ../${1}/lib/*
+	fi
+
+	exeinto /opt/${1}/bin
+	doexe ../${1}/bin/*
+	(
+	cd ../${1}
+	for i in libexec/**/*; do
+		exeinto /opt/${1}/$(dirname ${i})
+		if [[ -x "${i}" && ! -d "${i}" ]]; then
+			doexe ${i}
+		fi
+	done
+
+	if [[ -d "include" ]]; then
+		insinto /opt/${1}
+		doins -r include
+	fi
+
+	if [[ -d "share" ]]; then
+		insinto /opt/${1}
+		doins -r share
+	fi
+	)
+
+	(
+		cd "${D}"/opt/${1}/bin/ || die
+		for i in *; do
+			dodir /opt/bin
+			cd "${D}"/opt/bin || die
+			dosym ../${1}/bin/${i} /opt/bin/${i}
+		done
+	)
+
+	shopt -u globstar
+}
+
+src_install() {
+
+	echo -e "#!/bin/sh\npython /usr/share/${PN}/tools/idf.py \"\$@\"" > idf
+	dobin idf
+
+	if use esp32; then
+		install_tool xtensa-esp32-elf
+		install_tool xtensa-esp32-elf/xtensa-esp32-elf
+	fi
+
+	if use esp32s2; then
+		install_tool xtensa-esp32s2-elf
+		install_tool xtensa-esp32s2-elf/xtensa-esp32s2-elf
+	fi
+
+	if use esp32s3; then
+		install_tool xtensa-esp32s3-elf
+		install_tool xtensa-esp32s3-elf/xtensa-esp32s3-elf
+	fi
+
+	if use riscv32; then
+		install_tool riscv32-esp-elf
+		install_tool riscv32-esp-elf/riscv32-esp-elf
+	fi
+
+	install_tool openocd-esp32
+
+	# Remove unsupported python versions
+	rm "${WORKDIR}"/xtensa-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{6..10} || die
+	install_tool xtensa-esp-elf-gdb
+
+	echo "IDF_PATH=/usr/share/${PN}" > 99esp-idf || die
+	doenvd 99esp-idf
+
+	insinto /usr/share/${PN}
+
+	rm -r .git || die
+	find . -name ".git" -exec rm -rf {} \; || die
+	doins -r .
+}


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2023-09-04 10:54 David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2023-09-04 10:54 UTC (permalink / raw
  To: gentoo-commits

commit:     dd931595ede38591b64fde6e33dcbfa48944ea65
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Mon Sep  4 10:54:36 2023 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Sep  4 10:54:36 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dd931595

dev-embedded/esp-idf: add 5.1.1

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/Manifest             |   1 +
 dev-embedded/esp-idf/esp-idf-5.1.1.ebuild | 159 ++++++++++++++++++++++++++++++
 2 files changed, 160 insertions(+)

diff --git a/dev-embedded/esp-idf/Manifest b/dev-embedded/esp-idf/Manifest
index 4436ec5698..ec86fd6405 100644
--- a/dev-embedded/esp-idf/Manifest
+++ b/dev-embedded/esp-idf/Manifest
@@ -1,3 +1,4 @@
+DIST esp-idf-5.1.1.zip 1131279692 BLAKE2B 87a74ec1ae7f54a067cddf3d4e4b0797ced4b8164019c68b33e89d356a56232a17ca350363298868af4eb27b003b2d96f48aa30d41a085b6460a800ccbb50eb2 SHA512 88fc90a0f74b9e3dd90b9d32aa473e8943b89abd6684249659553d4cae6c90d2c31409bd2d29cd4e9653f3770f6b3a03e684041ca1c9d7770925062ddd3a71e3
 DIST esp-idf-5.1.zip 1062080629 BLAKE2B 78df1d6abfdde5731499422c6d05e0cdf0d6c46b73f6e7a6b94f61c5bb66ddfeffffe9a1f5dba5996397141ca2dc3372fbca5b915b828bb30069d8d711f7858b SHA512 85cc37a910398cb82fca4ff6257d23c28a993cf7deb3f7e34129513cd89e8a495ec7b38d3a206482489ffe4996d800a2742fd6c69cc5ce425b4d0522d19d9592
 DIST openocd-esp32-linux-amd64-0.12.0-esp32-20230419.tar.gz 2126949 BLAKE2B ae53bf574c60a7f004b49946f03fe936fefeee2574bf47ac71b2144d066e77e64190889b3650e39010aaf568fef13e05dc773355f1b7f59f547b181346c78080 SHA512 3a7f0e2ff4e68d203847271b1b95fc9c9581adf5d4f503cdc20770985f2b8b59d39f358e46d0d7358e8c94c8ff1437c4747579e02dd92b7a07a0ba23a885d191
 DIST riscv32-esp-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz 131410024 BLAKE2B 6961ddad1570aa69cbe7a4b1cd6722831d725b83a2d865b5babeea9b2d1762e4dda3cf35bdd4c5137758e15267a229136439387ff72577d5d558a924cd6161aa SHA512 dd0a95408fb487d444cb2c1efc9a0d21404eba2080b16cd9958dd9a9d22c5bf36f3c5e0309b082a226b39e4aeaf9a07ac89af740e2d5c01f85147d26dff7d233

diff --git a/dev-embedded/esp-idf/esp-idf-5.1.1.ebuild b/dev-embedded/esp-idf/esp-idf-5.1.1.ebuild
new file mode 100644
index 0000000000..1b4e013e1a
--- /dev/null
+++ b/dev-embedded/esp-idf/esp-idf-5.1.1.ebuild
@@ -0,0 +1,159 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_11 )
+
+VER="12.2.0_20230208"
+
+CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-${VER}"
+
+inherit python-r1
+
+DESCRIPTION="Espressif IoT Development Framework"
+HOMEPAGE="https://www.espressif.com/"
+
+#	https://github.com/espressif/binutils-esp32ulp/releases/download/v2.28.51-esp-20191205/binutils-esp32ulp-linux-amd64-2.28.51-esp-20191205.tar.gz
+SRC_URI="https://dl.espressif.com/github_assets/espressif/${PN}/releases/download/v${PV}/${PN}-v${PV}.zip -> ${P}.zip
+	https://github.com/espressif/openocd-esp32/releases/download/v0.12.0-esp32-20230419/openocd-esp32-linux-amd64-0.12.0-esp32-20230419.tar.gz
+	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/xtensa-esp-elf-gdb-12.1_20221002-x86_64-linux-gnu.tar.gz"
+SRC_URI+=" esp32? ( ${CROSSTOOL_URL}/xtensa-esp32-elf-${VER}-x86_64-linux-gnu.tar.xz )"
+SRC_URI+=" esp32s2? ( ${CROSSTOOL_URL}/xtensa-esp32s2-elf-${VER}-x86_64-linux-gnu.tar.xz )"
+SRC_URI+=" esp32s3? ( ${CROSSTOOL_URL}/xtensa-esp32s3-elf-${VER}-x86_64-linux-gnu.tar.xz )"
+SRC_URI+=" riscv32? ( ${CROSSTOOL_URL}/riscv32-esp-elf-${VER}-x86_64-linux-gnu.tar.xz )"
+
+#https://dl.espressif.com/dl/toolchains/preview/riscv32-esp-elf-gcc8_4_0-crosstool-ng-1.24.0-123-g64eb9ff-linux-amd64.tar.gz
+
+KEYWORDS="~amd64"
+LICENSE="Apache-2.0"
+IUSE="+esp32 esp32s2 esp32s3 riscv32"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+SLOT="0"
+
+BDEPEND="app-arch/unzip"
+RDEPEND="
+	${PYTHON_DEPS}
+
+	dev-libs/libusb:1
+	dev-python/click[${PYTHON_USEDEP}]
+	dev-python/pyserial[${PYTHON_USEDEP}]
+	dev-python/cryptography[${PYTHON_USEDEP}]
+	dev-python/pyparsing[${PYTHON_USEDEP}]
+	dev-python/pyelftools[${PYTHON_USEDEP}]
+	dev-embedded/esp-coredump[${PYTHON_USEDEP}]
+	dev-embedded/esptool
+	dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-size[${PYTHON_USEDEP}]
+	dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
+"
+
+RESTRICT="strip"
+
+QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
+QA_PRESTRIPPED="opt/*"
+
+PATCHES=(
+	"${FILESDIR}/allow-system-install-${PN}-5.0.2.patch"
+)
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+install_tool() {
+	shopt -s globstar
+
+	into /opt/${1}
+
+	if [[ -d "../${1}/lib" ]]; then
+		if stat *.so &>/dev/null; then
+		for i in ../${1}/lib/**/*.so*; do
+			dolib.so ${i}
+		done
+		fi
+
+		if stat *.a &>/dev/null; then
+		for i in ../${1}/lib/**/*.a*; do
+			dolib.a ${i}
+		done
+		fi
+
+		insinto /opt/${1}/lib
+		doins -r ../${1}/lib/*
+	fi
+
+	exeinto /opt/${1}/bin
+	doexe ../${1}/bin/*
+	(
+	cd ../${1}
+	for i in libexec/**/*; do
+		exeinto /opt/${1}/$(dirname ${i})
+		if [[ -x "${i}" && ! -d "${i}" ]]; then
+			doexe ${i}
+		fi
+	done
+
+	if [[ -d "include" ]]; then
+		insinto /opt/${1}
+		doins -r include
+	fi
+
+	if [[ -d "share" ]]; then
+		insinto /opt/${1}
+		doins -r share
+	fi
+	)
+
+	(
+		cd "${D}"/opt/${1}/bin/ || die
+		for i in *; do
+			dodir /opt/bin
+			cd "${D}"/opt/bin || die
+			dosym ../${1}/bin/${i} /opt/bin/${i}
+		done
+	)
+
+	shopt -u globstar
+}
+
+src_install() {
+
+	echo -e "#!/bin/sh\npython /usr/share/${PN}/tools/idf.py \"\$@\"" > idf
+	dobin idf
+
+	if use esp32; then
+		install_tool xtensa-esp32-elf
+		install_tool xtensa-esp32-elf/xtensa-esp32-elf
+	fi
+
+	if use esp32s2; then
+		install_tool xtensa-esp32s2-elf
+		install_tool xtensa-esp32s2-elf/xtensa-esp32s2-elf
+	fi
+
+	if use esp32s3; then
+		install_tool xtensa-esp32s3-elf
+		install_tool xtensa-esp32s3-elf/xtensa-esp32s3-elf
+	fi
+
+	if use riscv32; then
+		install_tool riscv32-esp-elf
+		install_tool riscv32-esp-elf/riscv32-esp-elf
+	fi
+
+	install_tool openocd-esp32
+
+	# Remove unsupported python versions
+	rm "${WORKDIR}"/xtensa-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{6..10} || die
+	install_tool xtensa-esp-elf-gdb
+
+	echo "IDF_PATH=/usr/share/${PN}" > 99esp-idf || die
+	doenvd 99esp-idf
+
+	insinto /usr/share/${PN}
+
+	rm -r .git || die
+	find . -name ".git" -exec rm -rf {} \; || die
+	doins -r .
+}


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
  2023-11-20 14:14 [gentoo-commits] repo/proj/guru:master " David Roman
@ 2023-11-20 13:58 ` David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2023-11-20 13:58 UTC (permalink / raw
  To: gentoo-commits

commit:     39a2b02a505860c07f0e1b4f52a2e0004ee61f12
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Mon Nov 20 13:58:01 2023 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Nov 20 13:58:01 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=39a2b02a

dev-embedded/esp-idf: add missing dep

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/esp-idf-5.1.2.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-embedded/esp-idf/esp-idf-5.1.2.ebuild b/dev-embedded/esp-idf/esp-idf-5.1.2.ebuild
index 90dde4378c..a63c993d4d 100644
--- a/dev-embedded/esp-idf/esp-idf-5.1.2.ebuild
+++ b/dev-embedded/esp-idf/esp-idf-5.1.2.ebuild
@@ -46,6 +46,7 @@ RDEPEND="
 	dev-embedded/esptool
 	dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
 	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-panic-decoder[${PYTHON_USEDEP}]
 	dev-embedded/esp-idf-size[${PYTHON_USEDEP}]
 	dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
 "


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
  2023-11-20 14:14 [gentoo-commits] repo/proj/guru:master " David Roman
@ 2023-11-20 14:05 ` David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2023-11-20 14:05 UTC (permalink / raw
  To: gentoo-commits

commit:     2d87ac3d89293588e8115995c4f0774f74c5ecec
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Mon Nov 20 14:05:13 2023 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Nov 20 14:05:13 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2d87ac3d

dev-embedded/esp-idf: add freertos-gdb dep

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/esp-idf-5.1.2.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-embedded/esp-idf/esp-idf-5.1.2.ebuild b/dev-embedded/esp-idf/esp-idf-5.1.2.ebuild
index a63c993d4d..be9240fbf0 100644
--- a/dev-embedded/esp-idf/esp-idf-5.1.2.ebuild
+++ b/dev-embedded/esp-idf/esp-idf-5.1.2.ebuild
@@ -48,6 +48,7 @@ RDEPEND="
 	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
 	dev-embedded/esp-idf-panic-decoder[${PYTHON_USEDEP}]
 	dev-embedded/esp-idf-size[${PYTHON_USEDEP}]
+	dev-embedded/freertos-gdb[${PYTHON_USEDEP}]
 	dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
 "
 


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2024-02-19 15:43 David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2024-02-19 15:43 UTC (permalink / raw
  To: gentoo-commits

commit:     c89b793e9cff09f446a043bc584e9ee3a6033da2
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Mon Feb 19 15:42:57 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Feb 19 15:43:40 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c89b793e

dev-embedded/esp-idf: add 5.2

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/Manifest           |   4 +
 dev-embedded/esp-idf/esp-idf-5.2.ebuild | 146 ++++++++++++++++++++++++++++++++
 2 files changed, 150 insertions(+)

diff --git a/dev-embedded/esp-idf/Manifest b/dev-embedded/esp-idf/Manifest
index 6db04f63b8..870daf7b25 100644
--- a/dev-embedded/esp-idf/Manifest
+++ b/dev-embedded/esp-idf/Manifest
@@ -1,9 +1,13 @@
 DIST esp-idf-5.1.1.zip 1131279692 BLAKE2B 87a74ec1ae7f54a067cddf3d4e4b0797ced4b8164019c68b33e89d356a56232a17ca350363298868af4eb27b003b2d96f48aa30d41a085b6460a800ccbb50eb2 SHA512 88fc90a0f74b9e3dd90b9d32aa473e8943b89abd6684249659553d4cae6c90d2c31409bd2d29cd4e9653f3770f6b3a03e684041ca1c9d7770925062ddd3a71e3
 DIST esp-idf-5.1.2.zip 1200519153 BLAKE2B d8714163e3a449e24bec8a93ce666d269ddb7d406d7e3dc0b5db0845b7a9c05f6a5186796f8bbda68bb0a8e40a2743a88792eb341e72a276e4ec1e3e8b04c34d SHA512 46e96419b5f58d8b41d5b7b35f6e96beee94f6c1e20ba22eaf48a7f3d3cf4f3c9b8aa79468e6ea95718f598f6e30e7b72be616d1fb856045758191eb244151c8
+DIST esp-idf-5.2.zip 1287699728 BLAKE2B d91d69da49423afa1c5345053af1da65d0c2d610f72a9a0c30a56bf9d4d2a9f10d2d30a2187e6db63953d5b9547877240cda8ff2d31032e7b4b9f2fad74c21e9 SHA512 fbbdd08aff3fe310638312d46a61466f97a039906a7766cc4ab5343b41a66f742b065b375695f8b2e749104bb7214eb31a1357e24c231048fc03fc81a615c90e
 DIST openocd-esp32-linux-amd64-0.12.0-esp32-20230419.tar.gz 2126949 BLAKE2B ae53bf574c60a7f004b49946f03fe936fefeee2574bf47ac71b2144d066e77e64190889b3650e39010aaf568fef13e05dc773355f1b7f59f547b181346c78080 SHA512 3a7f0e2ff4e68d203847271b1b95fc9c9581adf5d4f503cdc20770985f2b8b59d39f358e46d0d7358e8c94c8ff1437c4747579e02dd92b7a07a0ba23a885d191
 DIST openocd-esp32-linux-amd64-0.12.0-esp32-20230921.tar.gz 2193783 BLAKE2B 8f94d628bb415ab75daa85d51c94e8d2a9a1d9399b706963b8bd663d145e440a9e86d7f29000f196d1c9e2585c24882739a80ba29c5b83a96ada384f262f0941 SHA512 8ca3c932c5b7b236133c2a305d95b8059d9db14640efc077e34c256390da05e177479a973aa974005f34fba4a74119dcdb59d876344bdef8940b58c3c948c9f7
 DIST riscv32-esp-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz 131410024 BLAKE2B 6961ddad1570aa69cbe7a4b1cd6722831d725b83a2d865b5babeea9b2d1762e4dda3cf35bdd4c5137758e15267a229136439387ff72577d5d558a924cd6161aa SHA512 dd0a95408fb487d444cb2c1efc9a0d21404eba2080b16cd9958dd9a9d22c5bf36f3c5e0309b082a226b39e4aeaf9a07ac89af740e2d5c01f85147d26dff7d233
+DIST riscv32-esp-elf-13.2.0_20230928-x86_64-linux-gnu.tar.xz 143575940 BLAKE2B a888291f4b2c482cf2f3620519fc02607ba22d99f8d02e20415daf58cf2eecfa96144b0fc6fdbf98b3569ff0e5755d854650735e30cbfab56701a3d61627ddba SHA512 71b5def3d291eb80ab98adfbd23626ea4c6c5d8b30ab34a9f8a100013df58c4867044b974d8ced9405b5b45b26232835806746814051f55b650dde82bffe40f4
+DIST xtensa-esp-elf-13.2.0_20230928-x86_64-linux-gnu.tar.xz 112588084 BLAKE2B 9b462426d09f0071d205066d6e9897d035a3c65bef6c9bf2cccefdbcbb3629af38cec5b5411e5f32c1e0b19d51c78675e264544c1f730a1b0554262c9b6dd7d1 SHA512 60e718d8bc4007966d4b66ca57a56b144ac6614e6a283ceb6681a29aab60f1f621049e3b691440e3da38a47d7260467a06c91c190d383aeb5c915df2dd908b94
 DIST xtensa-esp-elf-gdb-12.1_20221002-x86_64-linux-gnu.tar.gz 32006939 BLAKE2B 3963f402f65a1503d4fcef0b68c8efcd1f17407809f77a5b76da03e89a0fdd47cd06545ab958aa444fc2ce822b20b4e7c88d921de723bae81bd74bd93a34e047 SHA512 013641d87729f7387a29afac0715a1fc1012edf88092e1dd51682df07730ab71c511f6824c77f52b17c06dca1a04a85c157730da80d1e5cb61bc6dcbe48e199e
+DIST xtensa-esp-elf-gdb-12.1_20231023-x86_64-linux-gnu.tar.gz 36942094 BLAKE2B ecb04aacb864ad625d603b59fb39df9e76ff63cbbab39fa2370154c939e5113e56fc7eeff03411c33d73adf05376531f8d107c6da55e5b619390b5272d4f1ad5 SHA512 7afee5aa9919420d847d5dc351598ba7a0ba41c61e20647501b62d83c65868fd1673f45065b0563204cd30049e5dcceb3a0c095f7f0382d7166904ee202ea730
 DIST xtensa-esp32-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz 67006496 BLAKE2B 343803d0511f8fd5d382221b57c68d964565e36bbd397d5ee5747f75224498db306120c10b7d664c2d0449888d5fa6c1aa423f5681097f06810c257c922d83aa SHA512 6bba61d3f05a08cb0e0f238c60af1b69caeb950e598849aa1edea6e4e95838938c1006afee8d19ea0533d9747342cb57b9010f52500db8a38b13987bea3a827a
 DIST xtensa-esp32s2-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz 64374532 BLAKE2B 7fe7c185e4561e34981615a3b7b96998cc11c473166bf54c2db57eecd617ab2c6c94c62fe6bc632e821cc98cf3e82d6f2b35a9210b56245442b1c6206b135617 SHA512 5381167aff6a2d023fb5b210dc092b610d72ae00484dae17d7c4e016bda9d457e597698895fcd2de755e6a86b9af2b2c5ca993cf89f12c3570f223671f6144da
 DIST xtensa-esp32s3-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz 67512340 BLAKE2B 10859b0fbb1f8c2e3c229e4f87ccac00dda4f1f54827a556772badf2dd85b04c6cf50a79cc89f80a2596fc7fb7253e5750158e5499ab2c4062717de50d04473c SHA512 c23f35f01a938e96ff85bd06fd25db929be3027ab1cd0d57f2c3c355b7abb1d2629f193deae2dfa2f2684faf2c516f96029be28e230dc73b70ea935121ab62ba

diff --git a/dev-embedded/esp-idf/esp-idf-5.2.ebuild b/dev-embedded/esp-idf/esp-idf-5.2.ebuild
new file mode 100644
index 0000000000..6036f9efe5
--- /dev/null
+++ b/dev-embedded/esp-idf/esp-idf-5.2.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11,12} )
+
+VER="13.2.0_20230928"
+
+CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-${VER}"
+
+inherit python-r1
+
+DESCRIPTION="Espressif IoT Development Framework"
+HOMEPAGE="https://www.espressif.com/"
+
+#	https://github.com/espressif/binutils-esp32ulp/releases/download/v2.28.51-esp-20191205/binutils-esp32ulp-linux-amd64-2.28.51-esp-20191205.tar.gz
+SRC_URI="https://dl.espressif.com/github_assets/espressif/${PN}/releases/download/v${PV}/${PN}-v${PV}.zip -> ${P}.zip
+	https://github.com/espressif/openocd-esp32/releases/download/v0.12.0-esp32-20230921/openocd-esp32-linux-amd64-0.12.0-esp32-20230921.tar.gz
+	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20231023/xtensa-esp-elf-gdb-12.1_20231023-x86_64-linux-gnu.tar.gz"
+SRC_URI+=" ${CROSSTOOL_URL}/xtensa-esp-elf-${VER}-x86_64-linux-gnu.tar.xz"
+SRC_URI+=" riscv32? ( ${CROSSTOOL_URL}/riscv32-esp-elf-${VER}-x86_64-linux-gnu.tar.xz )"
+
+#https://dl.espressif.com/dl/toolchains/preview/riscv32-esp-elf-gcc8_4_0-crosstool-ng-1.24.0-123-g64eb9ff-linux-amd64.tar.gz
+
+KEYWORDS="~amd64"
+LICENSE="Apache-2.0"
+IUSE="riscv32"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+SLOT="0"
+
+BDEPEND="app-arch/unzip"
+RDEPEND="
+	${PYTHON_DEPS}
+
+	dev-libs/libusb:1
+	dev-python/click[${PYTHON_USEDEP}]
+	dev-python/pyserial[${PYTHON_USEDEP}]
+	dev-python/cryptography[${PYTHON_USEDEP}]
+	dev-python/pyparsing[${PYTHON_USEDEP}]
+	dev-python/pyelftools[${PYTHON_USEDEP}]
+	dev-embedded/esp-coredump[${PYTHON_USEDEP}]
+	dev-embedded/esptool
+	dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-panic-decoder[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-size[${PYTHON_USEDEP}]
+	dev-embedded/freertos-gdb[${PYTHON_USEDEP}]
+	dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
+"
+
+RESTRICT="strip"
+
+QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
+QA_PRESTRIPPED="opt/*"
+
+PATCHES=(
+	"${FILESDIR}/allow-system-install-${PN}-5.1.2.patch"
+)
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+install_tool() {
+	shopt -s globstar
+
+	into /opt/${1}
+
+	if [[ -d "../${1}/lib" ]]; then
+		if stat *.so &>/dev/null; then
+		for i in ../${1}/lib/**/*.so*; do
+			dolib.so ${i}
+		done
+		fi
+
+		if stat *.a &>/dev/null; then
+		for i in ../${1}/lib/**/*.a*; do
+			dolib.a ${i}
+		done
+		fi
+
+		insinto /opt/${1}/lib
+		doins -r ../${1}/lib/*
+	fi
+
+	exeinto /opt/${1}/bin
+	doexe ../${1}/bin/*
+	(
+	cd ../${1}
+	for i in libexec/**/*; do
+		exeinto /opt/${1}/$(dirname ${i})
+		if [[ -x "${i}" && ! -d "${i}" ]]; then
+			doexe ${i}
+		fi
+	done
+
+	if [[ -d "include" ]]; then
+		insinto /opt/${1}
+		doins -r include
+	fi
+
+	if [[ -d "share" ]]; then
+		insinto /opt/${1}
+		doins -r share
+	fi
+	)
+
+	(
+		cd "${D}"/opt/${1}/bin/ || die
+		for i in *; do
+			dodir /opt/bin
+			cd "${D}"/opt/bin || die
+			dosym ../${1}/bin/${i} /opt/bin/${i}
+		done
+	)
+
+	shopt -u globstar
+}
+
+src_install() {
+	echo -e "#!/bin/sh\npython /usr/share/${PN}/tools/idf.py \"\$@\"" > idf
+	dobin idf
+
+	install_tool xtensa-esp-elf
+	install_tool xtensa-esp-elf/xtensa-esp-elf
+
+	if use riscv32; then
+		install_tool riscv32-esp-elf
+		install_tool riscv32-esp-elf/riscv32-esp-elf
+	fi
+
+	install_tool openocd-esp32
+
+	# Remove unsupported python versions
+	rm "${WORKDIR}"/xtensa-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{6..10} || die
+	install_tool xtensa-esp-elf-gdb
+
+	echo "IDF_PATH=/usr/share/${PN}" > 99esp-idf || die
+	doenvd 99esp-idf
+
+	insinto /usr/share/${PN}
+
+	rm -r .git || die
+	find . -name ".git" -exec rm -rf {} \; || die
+	doins -r .
+}


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2024-02-19 15:43 David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2024-02-19 15:43 UTC (permalink / raw
  To: gentoo-commits

commit:     020852a4c6ddf063073875b23bc1f515ca105eac
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Mon Feb 19 15:43:29 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Feb 19 15:43:40 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=020852a4

dev-embedded/esp-idf: drop 5.1.1

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/Manifest             |   2 -
 dev-embedded/esp-idf/esp-idf-5.1.1.ebuild | 159 ------------------------------
 2 files changed, 161 deletions(-)

diff --git a/dev-embedded/esp-idf/Manifest b/dev-embedded/esp-idf/Manifest
index 870daf7b25..6bbd06ed71 100644
--- a/dev-embedded/esp-idf/Manifest
+++ b/dev-embedded/esp-idf/Manifest
@@ -1,7 +1,5 @@
-DIST esp-idf-5.1.1.zip 1131279692 BLAKE2B 87a74ec1ae7f54a067cddf3d4e4b0797ced4b8164019c68b33e89d356a56232a17ca350363298868af4eb27b003b2d96f48aa30d41a085b6460a800ccbb50eb2 SHA512 88fc90a0f74b9e3dd90b9d32aa473e8943b89abd6684249659553d4cae6c90d2c31409bd2d29cd4e9653f3770f6b3a03e684041ca1c9d7770925062ddd3a71e3
 DIST esp-idf-5.1.2.zip 1200519153 BLAKE2B d8714163e3a449e24bec8a93ce666d269ddb7d406d7e3dc0b5db0845b7a9c05f6a5186796f8bbda68bb0a8e40a2743a88792eb341e72a276e4ec1e3e8b04c34d SHA512 46e96419b5f58d8b41d5b7b35f6e96beee94f6c1e20ba22eaf48a7f3d3cf4f3c9b8aa79468e6ea95718f598f6e30e7b72be616d1fb856045758191eb244151c8
 DIST esp-idf-5.2.zip 1287699728 BLAKE2B d91d69da49423afa1c5345053af1da65d0c2d610f72a9a0c30a56bf9d4d2a9f10d2d30a2187e6db63953d5b9547877240cda8ff2d31032e7b4b9f2fad74c21e9 SHA512 fbbdd08aff3fe310638312d46a61466f97a039906a7766cc4ab5343b41a66f742b065b375695f8b2e749104bb7214eb31a1357e24c231048fc03fc81a615c90e
-DIST openocd-esp32-linux-amd64-0.12.0-esp32-20230419.tar.gz 2126949 BLAKE2B ae53bf574c60a7f004b49946f03fe936fefeee2574bf47ac71b2144d066e77e64190889b3650e39010aaf568fef13e05dc773355f1b7f59f547b181346c78080 SHA512 3a7f0e2ff4e68d203847271b1b95fc9c9581adf5d4f503cdc20770985f2b8b59d39f358e46d0d7358e8c94c8ff1437c4747579e02dd92b7a07a0ba23a885d191
 DIST openocd-esp32-linux-amd64-0.12.0-esp32-20230921.tar.gz 2193783 BLAKE2B 8f94d628bb415ab75daa85d51c94e8d2a9a1d9399b706963b8bd663d145e440a9e86d7f29000f196d1c9e2585c24882739a80ba29c5b83a96ada384f262f0941 SHA512 8ca3c932c5b7b236133c2a305d95b8059d9db14640efc077e34c256390da05e177479a973aa974005f34fba4a74119dcdb59d876344bdef8940b58c3c948c9f7
 DIST riscv32-esp-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz 131410024 BLAKE2B 6961ddad1570aa69cbe7a4b1cd6722831d725b83a2d865b5babeea9b2d1762e4dda3cf35bdd4c5137758e15267a229136439387ff72577d5d558a924cd6161aa SHA512 dd0a95408fb487d444cb2c1efc9a0d21404eba2080b16cd9958dd9a9d22c5bf36f3c5e0309b082a226b39e4aeaf9a07ac89af740e2d5c01f85147d26dff7d233
 DIST riscv32-esp-elf-13.2.0_20230928-x86_64-linux-gnu.tar.xz 143575940 BLAKE2B a888291f4b2c482cf2f3620519fc02607ba22d99f8d02e20415daf58cf2eecfa96144b0fc6fdbf98b3569ff0e5755d854650735e30cbfab56701a3d61627ddba SHA512 71b5def3d291eb80ab98adfbd23626ea4c6c5d8b30ab34a9f8a100013df58c4867044b974d8ced9405b5b45b26232835806746814051f55b650dde82bffe40f4

diff --git a/dev-embedded/esp-idf/esp-idf-5.1.1.ebuild b/dev-embedded/esp-idf/esp-idf-5.1.1.ebuild
deleted file mode 100644
index 1b4e013e1a..0000000000
--- a/dev-embedded/esp-idf/esp-idf-5.1.1.ebuild
+++ /dev/null
@@ -1,159 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_11 )
-
-VER="12.2.0_20230208"
-
-CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-${VER}"
-
-inherit python-r1
-
-DESCRIPTION="Espressif IoT Development Framework"
-HOMEPAGE="https://www.espressif.com/"
-
-#	https://github.com/espressif/binutils-esp32ulp/releases/download/v2.28.51-esp-20191205/binutils-esp32ulp-linux-amd64-2.28.51-esp-20191205.tar.gz
-SRC_URI="https://dl.espressif.com/github_assets/espressif/${PN}/releases/download/v${PV}/${PN}-v${PV}.zip -> ${P}.zip
-	https://github.com/espressif/openocd-esp32/releases/download/v0.12.0-esp32-20230419/openocd-esp32-linux-amd64-0.12.0-esp32-20230419.tar.gz
-	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/xtensa-esp-elf-gdb-12.1_20221002-x86_64-linux-gnu.tar.gz"
-SRC_URI+=" esp32? ( ${CROSSTOOL_URL}/xtensa-esp32-elf-${VER}-x86_64-linux-gnu.tar.xz )"
-SRC_URI+=" esp32s2? ( ${CROSSTOOL_URL}/xtensa-esp32s2-elf-${VER}-x86_64-linux-gnu.tar.xz )"
-SRC_URI+=" esp32s3? ( ${CROSSTOOL_URL}/xtensa-esp32s3-elf-${VER}-x86_64-linux-gnu.tar.xz )"
-SRC_URI+=" riscv32? ( ${CROSSTOOL_URL}/riscv32-esp-elf-${VER}-x86_64-linux-gnu.tar.xz )"
-
-#https://dl.espressif.com/dl/toolchains/preview/riscv32-esp-elf-gcc8_4_0-crosstool-ng-1.24.0-123-g64eb9ff-linux-amd64.tar.gz
-
-KEYWORDS="~amd64"
-LICENSE="Apache-2.0"
-IUSE="+esp32 esp32s2 esp32s3 riscv32"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-SLOT="0"
-
-BDEPEND="app-arch/unzip"
-RDEPEND="
-	${PYTHON_DEPS}
-
-	dev-libs/libusb:1
-	dev-python/click[${PYTHON_USEDEP}]
-	dev-python/pyserial[${PYTHON_USEDEP}]
-	dev-python/cryptography[${PYTHON_USEDEP}]
-	dev-python/pyparsing[${PYTHON_USEDEP}]
-	dev-python/pyelftools[${PYTHON_USEDEP}]
-	dev-embedded/esp-coredump[${PYTHON_USEDEP}]
-	dev-embedded/esptool
-	dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
-	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
-	dev-embedded/esp-idf-size[${PYTHON_USEDEP}]
-	dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
-"
-
-RESTRICT="strip"
-
-QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
-QA_PRESTRIPPED="opt/*"
-
-PATCHES=(
-	"${FILESDIR}/allow-system-install-${PN}-5.0.2.patch"
-)
-
-S="${WORKDIR}/${PN}-v${PV}"
-
-install_tool() {
-	shopt -s globstar
-
-	into /opt/${1}
-
-	if [[ -d "../${1}/lib" ]]; then
-		if stat *.so &>/dev/null; then
-		for i in ../${1}/lib/**/*.so*; do
-			dolib.so ${i}
-		done
-		fi
-
-		if stat *.a &>/dev/null; then
-		for i in ../${1}/lib/**/*.a*; do
-			dolib.a ${i}
-		done
-		fi
-
-		insinto /opt/${1}/lib
-		doins -r ../${1}/lib/*
-	fi
-
-	exeinto /opt/${1}/bin
-	doexe ../${1}/bin/*
-	(
-	cd ../${1}
-	for i in libexec/**/*; do
-		exeinto /opt/${1}/$(dirname ${i})
-		if [[ -x "${i}" && ! -d "${i}" ]]; then
-			doexe ${i}
-		fi
-	done
-
-	if [[ -d "include" ]]; then
-		insinto /opt/${1}
-		doins -r include
-	fi
-
-	if [[ -d "share" ]]; then
-		insinto /opt/${1}
-		doins -r share
-	fi
-	)
-
-	(
-		cd "${D}"/opt/${1}/bin/ || die
-		for i in *; do
-			dodir /opt/bin
-			cd "${D}"/opt/bin || die
-			dosym ../${1}/bin/${i} /opt/bin/${i}
-		done
-	)
-
-	shopt -u globstar
-}
-
-src_install() {
-
-	echo -e "#!/bin/sh\npython /usr/share/${PN}/tools/idf.py \"\$@\"" > idf
-	dobin idf
-
-	if use esp32; then
-		install_tool xtensa-esp32-elf
-		install_tool xtensa-esp32-elf/xtensa-esp32-elf
-	fi
-
-	if use esp32s2; then
-		install_tool xtensa-esp32s2-elf
-		install_tool xtensa-esp32s2-elf/xtensa-esp32s2-elf
-	fi
-
-	if use esp32s3; then
-		install_tool xtensa-esp32s3-elf
-		install_tool xtensa-esp32s3-elf/xtensa-esp32s3-elf
-	fi
-
-	if use riscv32; then
-		install_tool riscv32-esp-elf
-		install_tool riscv32-esp-elf/riscv32-esp-elf
-	fi
-
-	install_tool openocd-esp32
-
-	# Remove unsupported python versions
-	rm "${WORKDIR}"/xtensa-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{6..10} || die
-	install_tool xtensa-esp-elf-gdb
-
-	echo "IDF_PATH=/usr/share/${PN}" > 99esp-idf || die
-	doenvd 99esp-idf
-
-	insinto /usr/share/${PN}
-
-	rm -r .git || die
-	find . -name ".git" -exec rm -rf {} \; || die
-	doins -r .
-}


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
  2024-03-14 10:19 [gentoo-commits] repo/proj/guru:master " David Roman
@ 2024-03-14  9:40 ` David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2024-03-14  9:40 UTC (permalink / raw
  To: gentoo-commits

commit:     7277aebcdce95566c721ddfd58c4fc35d78a7e5a
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Thu Mar 14 09:40:09 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Mar 14 09:40:09 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7277aebc

dev-embedded/esp-idf: add 5.2.1

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/Manifest             |   1 +
 dev-embedded/esp-idf/esp-idf-5.2.1.ebuild | 146 ++++++++++++++++++++++++++++++
 2 files changed, 147 insertions(+)

diff --git a/dev-embedded/esp-idf/Manifest b/dev-embedded/esp-idf/Manifest
index 6bbd06ed71..6385383b8b 100644
--- a/dev-embedded/esp-idf/Manifest
+++ b/dev-embedded/esp-idf/Manifest
@@ -1,4 +1,5 @@
 DIST esp-idf-5.1.2.zip 1200519153 BLAKE2B d8714163e3a449e24bec8a93ce666d269ddb7d406d7e3dc0b5db0845b7a9c05f6a5186796f8bbda68bb0a8e40a2743a88792eb341e72a276e4ec1e3e8b04c34d SHA512 46e96419b5f58d8b41d5b7b35f6e96beee94f6c1e20ba22eaf48a7f3d3cf4f3c9b8aa79468e6ea95718f598f6e30e7b72be616d1fb856045758191eb244151c8
+DIST esp-idf-5.2.1.zip 1300409360 BLAKE2B a55ee7852165bd14fcc72fd0bc9c8f1dbfeb3a0f86766b5354112c54d3081709d192b87e368bf31502629e6a85cd9a75055fb0a20ee20a755f9d3951fb14b3ce SHA512 bbcfcbbec38ffc0f7d07c57bb8a3431e0237d0f61a02b176bfb222b71cff0f3065fadbdcf43221b33f14565fc646a3e287ce5fde7d5d7dae2d036b2e11d113e4
 DIST esp-idf-5.2.zip 1287699728 BLAKE2B d91d69da49423afa1c5345053af1da65d0c2d610f72a9a0c30a56bf9d4d2a9f10d2d30a2187e6db63953d5b9547877240cda8ff2d31032e7b4b9f2fad74c21e9 SHA512 fbbdd08aff3fe310638312d46a61466f97a039906a7766cc4ab5343b41a66f742b065b375695f8b2e749104bb7214eb31a1357e24c231048fc03fc81a615c90e
 DIST openocd-esp32-linux-amd64-0.12.0-esp32-20230921.tar.gz 2193783 BLAKE2B 8f94d628bb415ab75daa85d51c94e8d2a9a1d9399b706963b8bd663d145e440a9e86d7f29000f196d1c9e2585c24882739a80ba29c5b83a96ada384f262f0941 SHA512 8ca3c932c5b7b236133c2a305d95b8059d9db14640efc077e34c256390da05e177479a973aa974005f34fba4a74119dcdb59d876344bdef8940b58c3c948c9f7
 DIST riscv32-esp-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz 131410024 BLAKE2B 6961ddad1570aa69cbe7a4b1cd6722831d725b83a2d865b5babeea9b2d1762e4dda3cf35bdd4c5137758e15267a229136439387ff72577d5d558a924cd6161aa SHA512 dd0a95408fb487d444cb2c1efc9a0d21404eba2080b16cd9958dd9a9d22c5bf36f3c5e0309b082a226b39e4aeaf9a07ac89af740e2d5c01f85147d26dff7d233

diff --git a/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild b/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild
new file mode 100644
index 0000000000..6036f9efe5
--- /dev/null
+++ b/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11,12} )
+
+VER="13.2.0_20230928"
+
+CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-${VER}"
+
+inherit python-r1
+
+DESCRIPTION="Espressif IoT Development Framework"
+HOMEPAGE="https://www.espressif.com/"
+
+#	https://github.com/espressif/binutils-esp32ulp/releases/download/v2.28.51-esp-20191205/binutils-esp32ulp-linux-amd64-2.28.51-esp-20191205.tar.gz
+SRC_URI="https://dl.espressif.com/github_assets/espressif/${PN}/releases/download/v${PV}/${PN}-v${PV}.zip -> ${P}.zip
+	https://github.com/espressif/openocd-esp32/releases/download/v0.12.0-esp32-20230921/openocd-esp32-linux-amd64-0.12.0-esp32-20230921.tar.gz
+	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20231023/xtensa-esp-elf-gdb-12.1_20231023-x86_64-linux-gnu.tar.gz"
+SRC_URI+=" ${CROSSTOOL_URL}/xtensa-esp-elf-${VER}-x86_64-linux-gnu.tar.xz"
+SRC_URI+=" riscv32? ( ${CROSSTOOL_URL}/riscv32-esp-elf-${VER}-x86_64-linux-gnu.tar.xz )"
+
+#https://dl.espressif.com/dl/toolchains/preview/riscv32-esp-elf-gcc8_4_0-crosstool-ng-1.24.0-123-g64eb9ff-linux-amd64.tar.gz
+
+KEYWORDS="~amd64"
+LICENSE="Apache-2.0"
+IUSE="riscv32"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+SLOT="0"
+
+BDEPEND="app-arch/unzip"
+RDEPEND="
+	${PYTHON_DEPS}
+
+	dev-libs/libusb:1
+	dev-python/click[${PYTHON_USEDEP}]
+	dev-python/pyserial[${PYTHON_USEDEP}]
+	dev-python/cryptography[${PYTHON_USEDEP}]
+	dev-python/pyparsing[${PYTHON_USEDEP}]
+	dev-python/pyelftools[${PYTHON_USEDEP}]
+	dev-embedded/esp-coredump[${PYTHON_USEDEP}]
+	dev-embedded/esptool
+	dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-panic-decoder[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-size[${PYTHON_USEDEP}]
+	dev-embedded/freertos-gdb[${PYTHON_USEDEP}]
+	dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
+"
+
+RESTRICT="strip"
+
+QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
+QA_PRESTRIPPED="opt/*"
+
+PATCHES=(
+	"${FILESDIR}/allow-system-install-${PN}-5.1.2.patch"
+)
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+install_tool() {
+	shopt -s globstar
+
+	into /opt/${1}
+
+	if [[ -d "../${1}/lib" ]]; then
+		if stat *.so &>/dev/null; then
+		for i in ../${1}/lib/**/*.so*; do
+			dolib.so ${i}
+		done
+		fi
+
+		if stat *.a &>/dev/null; then
+		for i in ../${1}/lib/**/*.a*; do
+			dolib.a ${i}
+		done
+		fi
+
+		insinto /opt/${1}/lib
+		doins -r ../${1}/lib/*
+	fi
+
+	exeinto /opt/${1}/bin
+	doexe ../${1}/bin/*
+	(
+	cd ../${1}
+	for i in libexec/**/*; do
+		exeinto /opt/${1}/$(dirname ${i})
+		if [[ -x "${i}" && ! -d "${i}" ]]; then
+			doexe ${i}
+		fi
+	done
+
+	if [[ -d "include" ]]; then
+		insinto /opt/${1}
+		doins -r include
+	fi
+
+	if [[ -d "share" ]]; then
+		insinto /opt/${1}
+		doins -r share
+	fi
+	)
+
+	(
+		cd "${D}"/opt/${1}/bin/ || die
+		for i in *; do
+			dodir /opt/bin
+			cd "${D}"/opt/bin || die
+			dosym ../${1}/bin/${i} /opt/bin/${i}
+		done
+	)
+
+	shopt -u globstar
+}
+
+src_install() {
+	echo -e "#!/bin/sh\npython /usr/share/${PN}/tools/idf.py \"\$@\"" > idf
+	dobin idf
+
+	install_tool xtensa-esp-elf
+	install_tool xtensa-esp-elf/xtensa-esp-elf
+
+	if use riscv32; then
+		install_tool riscv32-esp-elf
+		install_tool riscv32-esp-elf/riscv32-esp-elf
+	fi
+
+	install_tool openocd-esp32
+
+	# Remove unsupported python versions
+	rm "${WORKDIR}"/xtensa-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{6..10} || die
+	install_tool xtensa-esp-elf-gdb
+
+	echo "IDF_PATH=/usr/share/${PN}" > 99esp-idf || die
+	doenvd 99esp-idf
+
+	insinto /usr/share/${PN}
+
+	rm -r .git || die
+	find . -name ".git" -exec rm -rf {} \; || die
+	doins -r .
+}


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2024-04-16  7:05 Florian Schmaus
  0 siblings, 0 replies; 29+ messages in thread
From: Florian Schmaus @ 2024-04-16  7:05 UTC (permalink / raw
  To: gentoo-commits

commit:     0274405eaaaca041cb05a80f0736190b5ef13d91
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 16 06:25:30 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Tue Apr 16 07:04:23 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0274405e

dev-embedded/esp-idf: correct variable declaration order

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 dev-embedded/esp-idf/esp-idf-5.2.1.ebuild | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild b/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild
index 0edfe91fb1..f6219e94f6 100644
--- a/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild
+++ b/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild
@@ -23,13 +23,15 @@ SRC_URI+=" riscv32? ( ${CROSSTOOL_URL}/riscv32-esp-elf-${VER}-x86_64-linux-gnu.t
 
 #https://dl.espressif.com/dl/toolchains/preview/riscv32-esp-elf-gcc8_4_0-crosstool-ng-1.24.0-123-g64eb9ff-linux-amd64.tar.gz
 
-KEYWORDS="~amd64"
+S="${WORKDIR}/${PN}-v${PV}"
+
 LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
 IUSE="riscv32"
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
-SLOT="0"
-
 BDEPEND="app-arch/unzip"
 RDEPEND="
 	${PYTHON_DEPS}
@@ -59,8 +61,6 @@ PATCHES=(
 	"${FILESDIR}/allow-system-install-${PN}-5.1.2.patch"
 )
 
-S="${WORKDIR}/${PN}-v${PV}"
-
 install_tool() {
 	shopt -s globstar
 


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2024-04-16  7:05 Florian Schmaus
  0 siblings, 0 replies; 29+ messages in thread
From: Florian Schmaus @ 2024-04-16  7:05 UTC (permalink / raw
  To: gentoo-commits

commit:     0f0e764b52c89a4c3935529d4919a80d337c79ad
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 16 06:23:09 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Tue Apr 16 06:23:23 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0f0e764b

dev-embedded/esp-idf: add [] to dev-embedded/esptool

Now that dev-embedded/esptool is Python multi impl, we can go ahead and
add [${PYTHON_USEDEP}] to its dependency declaration.

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 dev-embedded/esp-idf/esp-idf-5.1.2.ebuild | 4 ++--
 dev-embedded/esp-idf/esp-idf-5.2.1.ebuild | 4 ++--
 dev-embedded/esp-idf/esp-idf-5.2.ebuild   | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dev-embedded/esp-idf/esp-idf-5.1.2.ebuild b/dev-embedded/esp-idf/esp-idf-5.1.2.ebuild
index be9240fbf0..6a0cd0a1de 100644
--- a/dev-embedded/esp-idf/esp-idf-5.1.2.ebuild
+++ b/dev-embedded/esp-idf/esp-idf-5.1.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -43,7 +43,7 @@ RDEPEND="
 	dev-python/pyparsing[${PYTHON_USEDEP}]
 	dev-python/pyelftools[${PYTHON_USEDEP}]
 	dev-embedded/esp-coredump[${PYTHON_USEDEP}]
-	dev-embedded/esptool
+	dev-embedded/esptool[${PYTHON_USEDEP}]
 	dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
 	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
 	dev-embedded/esp-idf-panic-decoder[${PYTHON_USEDEP}]

diff --git a/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild b/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild
index 6036f9efe5..0edfe91fb1 100644
--- a/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild
+++ b/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -41,7 +41,7 @@ RDEPEND="
 	dev-python/pyparsing[${PYTHON_USEDEP}]
 	dev-python/pyelftools[${PYTHON_USEDEP}]
 	dev-embedded/esp-coredump[${PYTHON_USEDEP}]
-	dev-embedded/esptool
+	dev-embedded/esptool[${PYTHON_USEDEP}]
 	dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
 	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
 	dev-embedded/esp-idf-panic-decoder[${PYTHON_USEDEP}]

diff --git a/dev-embedded/esp-idf/esp-idf-5.2.ebuild b/dev-embedded/esp-idf/esp-idf-5.2.ebuild
index 6036f9efe5..0edfe91fb1 100644
--- a/dev-embedded/esp-idf/esp-idf-5.2.ebuild
+++ b/dev-embedded/esp-idf/esp-idf-5.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -41,7 +41,7 @@ RDEPEND="
 	dev-python/pyparsing[${PYTHON_USEDEP}]
 	dev-python/pyelftools[${PYTHON_USEDEP}]
 	dev-embedded/esp-coredump[${PYTHON_USEDEP}]
-	dev-embedded/esptool
+	dev-embedded/esptool[${PYTHON_USEDEP}]
 	dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
 	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
 	dev-embedded/esp-idf-panic-decoder[${PYTHON_USEDEP}]


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
  2024-05-08 12:34 [gentoo-commits] repo/proj/guru:master " David Roman
@ 2024-05-08 12:27 ` David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2024-05-08 12:27 UTC (permalink / raw
  To: gentoo-commits

commit:     fc9433b9eeee480cc14e81a2729723566faa7019
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Wed May  8 12:22:22 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Wed May  8 12:22:22 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fc9433b9

dev-embedded/esp-idf: drop 5.1.2

Closes: https://bugs.gentoo.org/931365
Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/Manifest             |   6 --
 dev-embedded/esp-idf/esp-idf-5.1.2.ebuild | 159 ------------------------------
 2 files changed, 165 deletions(-)

diff --git a/dev-embedded/esp-idf/Manifest b/dev-embedded/esp-idf/Manifest
index 6385383b8b..883f507997 100644
--- a/dev-embedded/esp-idf/Manifest
+++ b/dev-embedded/esp-idf/Manifest
@@ -1,12 +1,6 @@
-DIST esp-idf-5.1.2.zip 1200519153 BLAKE2B d8714163e3a449e24bec8a93ce666d269ddb7d406d7e3dc0b5db0845b7a9c05f6a5186796f8bbda68bb0a8e40a2743a88792eb341e72a276e4ec1e3e8b04c34d SHA512 46e96419b5f58d8b41d5b7b35f6e96beee94f6c1e20ba22eaf48a7f3d3cf4f3c9b8aa79468e6ea95718f598f6e30e7b72be616d1fb856045758191eb244151c8
 DIST esp-idf-5.2.1.zip 1300409360 BLAKE2B a55ee7852165bd14fcc72fd0bc9c8f1dbfeb3a0f86766b5354112c54d3081709d192b87e368bf31502629e6a85cd9a75055fb0a20ee20a755f9d3951fb14b3ce SHA512 bbcfcbbec38ffc0f7d07c57bb8a3431e0237d0f61a02b176bfb222b71cff0f3065fadbdcf43221b33f14565fc646a3e287ce5fde7d5d7dae2d036b2e11d113e4
 DIST esp-idf-5.2.zip 1287699728 BLAKE2B d91d69da49423afa1c5345053af1da65d0c2d610f72a9a0c30a56bf9d4d2a9f10d2d30a2187e6db63953d5b9547877240cda8ff2d31032e7b4b9f2fad74c21e9 SHA512 fbbdd08aff3fe310638312d46a61466f97a039906a7766cc4ab5343b41a66f742b065b375695f8b2e749104bb7214eb31a1357e24c231048fc03fc81a615c90e
 DIST openocd-esp32-linux-amd64-0.12.0-esp32-20230921.tar.gz 2193783 BLAKE2B 8f94d628bb415ab75daa85d51c94e8d2a9a1d9399b706963b8bd663d145e440a9e86d7f29000f196d1c9e2585c24882739a80ba29c5b83a96ada384f262f0941 SHA512 8ca3c932c5b7b236133c2a305d95b8059d9db14640efc077e34c256390da05e177479a973aa974005f34fba4a74119dcdb59d876344bdef8940b58c3c948c9f7
-DIST riscv32-esp-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz 131410024 BLAKE2B 6961ddad1570aa69cbe7a4b1cd6722831d725b83a2d865b5babeea9b2d1762e4dda3cf35bdd4c5137758e15267a229136439387ff72577d5d558a924cd6161aa SHA512 dd0a95408fb487d444cb2c1efc9a0d21404eba2080b16cd9958dd9a9d22c5bf36f3c5e0309b082a226b39e4aeaf9a07ac89af740e2d5c01f85147d26dff7d233
 DIST riscv32-esp-elf-13.2.0_20230928-x86_64-linux-gnu.tar.xz 143575940 BLAKE2B a888291f4b2c482cf2f3620519fc02607ba22d99f8d02e20415daf58cf2eecfa96144b0fc6fdbf98b3569ff0e5755d854650735e30cbfab56701a3d61627ddba SHA512 71b5def3d291eb80ab98adfbd23626ea4c6c5d8b30ab34a9f8a100013df58c4867044b974d8ced9405b5b45b26232835806746814051f55b650dde82bffe40f4
 DIST xtensa-esp-elf-13.2.0_20230928-x86_64-linux-gnu.tar.xz 112588084 BLAKE2B 9b462426d09f0071d205066d6e9897d035a3c65bef6c9bf2cccefdbcbb3629af38cec5b5411e5f32c1e0b19d51c78675e264544c1f730a1b0554262c9b6dd7d1 SHA512 60e718d8bc4007966d4b66ca57a56b144ac6614e6a283ceb6681a29aab60f1f621049e3b691440e3da38a47d7260467a06c91c190d383aeb5c915df2dd908b94
-DIST xtensa-esp-elf-gdb-12.1_20221002-x86_64-linux-gnu.tar.gz 32006939 BLAKE2B 3963f402f65a1503d4fcef0b68c8efcd1f17407809f77a5b76da03e89a0fdd47cd06545ab958aa444fc2ce822b20b4e7c88d921de723bae81bd74bd93a34e047 SHA512 013641d87729f7387a29afac0715a1fc1012edf88092e1dd51682df07730ab71c511f6824c77f52b17c06dca1a04a85c157730da80d1e5cb61bc6dcbe48e199e
 DIST xtensa-esp-elf-gdb-12.1_20231023-x86_64-linux-gnu.tar.gz 36942094 BLAKE2B ecb04aacb864ad625d603b59fb39df9e76ff63cbbab39fa2370154c939e5113e56fc7eeff03411c33d73adf05376531f8d107c6da55e5b619390b5272d4f1ad5 SHA512 7afee5aa9919420d847d5dc351598ba7a0ba41c61e20647501b62d83c65868fd1673f45065b0563204cd30049e5dcceb3a0c095f7f0382d7166904ee202ea730
-DIST xtensa-esp32-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz 67006496 BLAKE2B 343803d0511f8fd5d382221b57c68d964565e36bbd397d5ee5747f75224498db306120c10b7d664c2d0449888d5fa6c1aa423f5681097f06810c257c922d83aa SHA512 6bba61d3f05a08cb0e0f238c60af1b69caeb950e598849aa1edea6e4e95838938c1006afee8d19ea0533d9747342cb57b9010f52500db8a38b13987bea3a827a
-DIST xtensa-esp32s2-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz 64374532 BLAKE2B 7fe7c185e4561e34981615a3b7b96998cc11c473166bf54c2db57eecd617ab2c6c94c62fe6bc632e821cc98cf3e82d6f2b35a9210b56245442b1c6206b135617 SHA512 5381167aff6a2d023fb5b210dc092b610d72ae00484dae17d7c4e016bda9d457e597698895fcd2de755e6a86b9af2b2c5ca993cf89f12c3570f223671f6144da
-DIST xtensa-esp32s3-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz 67512340 BLAKE2B 10859b0fbb1f8c2e3c229e4f87ccac00dda4f1f54827a556772badf2dd85b04c6cf50a79cc89f80a2596fc7fb7253e5750158e5499ab2c4062717de50d04473c SHA512 c23f35f01a938e96ff85bd06fd25db929be3027ab1cd0d57f2c3c355b7abb1d2629f193deae2dfa2f2684faf2c516f96029be28e230dc73b70ea935121ab62ba

diff --git a/dev-embedded/esp-idf/esp-idf-5.1.2.ebuild b/dev-embedded/esp-idf/esp-idf-5.1.2.ebuild
deleted file mode 100644
index 83ca81f689..0000000000
--- a/dev-embedded/esp-idf/esp-idf-5.1.2.ebuild
+++ /dev/null
@@ -1,159 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_11 )
-
-VER="12.2.0_20230208"
-
-CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-${VER}"
-
-inherit python-r1
-
-DESCRIPTION="Espressif IoT Development Framework"
-HOMEPAGE="https://www.espressif.com/"
-
-#	https://github.com/espressif/binutils-esp32ulp/releases/download/v2.28.51-esp-20191205/binutils-esp32ulp-linux-amd64-2.28.51-esp-20191205.tar.gz
-SRC_URI="https://dl.espressif.com/github_assets/espressif/${PN}/releases/download/v${PV}/${PN}-v${PV}.zip -> ${P}.zip
-	https://github.com/espressif/openocd-esp32/releases/download/v0.12.0-esp32-20230921/openocd-esp32-linux-amd64-0.12.0-esp32-20230921.tar.gz
-	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/xtensa-esp-elf-gdb-12.1_20221002-x86_64-linux-gnu.tar.gz
-	esp32? ( ${CROSSTOOL_URL}/xtensa-esp32-elf-${VER}-x86_64-linux-gnu.tar.xz )
-	esp32s2? ( ${CROSSTOOL_URL}/xtensa-esp32s2-elf-${VER}-x86_64-linux-gnu.tar.xz )
-	esp32s3? ( ${CROSSTOOL_URL}/xtensa-esp32s3-elf-${VER}-x86_64-linux-gnu.tar.xz )
-	riscv32? ( ${CROSSTOOL_URL}/riscv32-esp-elf-${VER}-x86_64-linux-gnu.tar.xz )"
-#https://dl.espressif.com/dl/toolchains/preview/riscv32-esp-elf-gcc8_4_0-crosstool-ng-1.24.0-123-g64eb9ff-linux-amd64.tar.gz
-
-S="${WORKDIR}/${PN}-v${PV}"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-IUSE="+esp32 esp32s2 esp32s3 riscv32"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-RESTRICT="strip"
-
-BDEPEND="app-arch/unzip"
-RDEPEND="
-	${PYTHON_DEPS}
-
-	dev-libs/libusb:1
-	dev-python/click[${PYTHON_USEDEP}]
-	dev-python/pyserial[${PYTHON_USEDEP}]
-	dev-python/cryptography[${PYTHON_USEDEP}]
-	dev-python/pyparsing[${PYTHON_USEDEP}]
-	dev-python/pyelftools[${PYTHON_USEDEP}]
-	dev-embedded/esp-coredump[${PYTHON_USEDEP}]
-	dev-embedded/esptool[${PYTHON_USEDEP}]
-	dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
-	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
-	dev-embedded/esp-idf-panic-decoder[${PYTHON_USEDEP}]
-	dev-embedded/esp-idf-size[${PYTHON_USEDEP}]
-	dev-embedded/freertos-gdb[${PYTHON_USEDEP}]
-	dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
-"
-
-QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
-QA_PRESTRIPPED="opt/*"
-
-PATCHES=(
-	"${FILESDIR}/allow-system-install-${PN}-5.1.2.patch"
-)
-
-install_tool() {
-	shopt -s globstar
-
-	into /opt/${1}
-
-	if [[ -d "../${1}/lib" ]]; then
-		if stat *.so &>/dev/null; then
-		for i in ../${1}/lib/**/*.so*; do
-			dolib.so ${i}
-		done
-		fi
-
-		if stat *.a &>/dev/null; then
-		for i in ../${1}/lib/**/*.a*; do
-			dolib.a ${i}
-		done
-		fi
-
-		insinto /opt/${1}/lib
-		doins -r ../${1}/lib/*
-	fi
-
-	exeinto /opt/${1}/bin
-	doexe ../${1}/bin/*
-	(
-	cd ../${1}
-	for i in libexec/**/*; do
-		exeinto /opt/${1}/$(dirname ${i})
-		if [[ -x "${i}" && ! -d "${i}" ]]; then
-			doexe ${i}
-		fi
-	done
-
-	if [[ -d "include" ]]; then
-		insinto /opt/${1}
-		doins -r include
-	fi
-
-	if [[ -d "share" ]]; then
-		insinto /opt/${1}
-		doins -r share
-	fi
-	)
-
-	(
-		cd "${D}"/opt/${1}/bin/ || die
-		for i in *; do
-			dodir /opt/bin
-			cd "${D}"/opt/bin || die
-			dosym ../${1}/bin/${i} /opt/bin/${i}
-		done
-	)
-
-	shopt -u globstar
-}
-
-src_install() {
-	echo -e "#!/bin/sh\npython /usr/share/${PN}/tools/idf.py \"\$@\"" > idf
-	dobin idf
-
-	if use esp32; then
-		install_tool xtensa-esp32-elf
-		install_tool xtensa-esp32-elf/xtensa-esp32-elf
-	fi
-
-	if use esp32s2; then
-		install_tool xtensa-esp32s2-elf
-		install_tool xtensa-esp32s2-elf/xtensa-esp32s2-elf
-	fi
-
-	if use esp32s3; then
-		install_tool xtensa-esp32s3-elf
-		install_tool xtensa-esp32s3-elf/xtensa-esp32s3-elf
-	fi
-
-	if use riscv32; then
-		install_tool riscv32-esp-elf
-		install_tool riscv32-esp-elf/riscv32-esp-elf
-	fi
-
-	install_tool openocd-esp32
-
-	# Remove unsupported python versions
-	rm "${WORKDIR}"/xtensa-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{6..10} || die
-	install_tool xtensa-esp-elf-gdb
-
-	echo "IDF_PATH=/usr/share/${PN}" > 99esp-idf || die
-	doenvd 99esp-idf
-
-	insinto /usr/share/${PN}
-
-	rm -r .git || die
-	find . -name ".git" -exec rm -rf {} \; || die
-	doins -r .
-}


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
  2024-06-04 12:26 [gentoo-commits] repo/proj/guru:master " David Roman
@ 2024-06-04  9:18 ` David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2024-06-04  9:18 UTC (permalink / raw
  To: gentoo-commits

commit:     044f1412b145c8b2c67b762a4338e10821ddf180
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Tue Jun  4 09:17:14 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Tue Jun  4 09:17:14 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=044f1412

dev-embedded/esp-idf: add missing RDEPEND

Closes: https://bugs.gentoo.org/932344
Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/esp-idf-5.2.1.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild b/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild
index f6219e94f..a7de0c9cd 100644
--- a/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild
+++ b/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild
@@ -50,6 +50,7 @@ RDEPEND="
 	dev-embedded/esp-idf-size[${PYTHON_USEDEP}]
 	dev-embedded/freertos-gdb[${PYTHON_USEDEP}]
 	dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
+	sys-libs/zlib
 "
 
 RESTRICT="strip"


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2024-06-04  9:18 David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2024-06-04  9:18 UTC (permalink / raw
  To: gentoo-commits

commit:     91f9d185f9748ffddb9c8e40ed7a9a1e068ed89c
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Tue Jun  4 09:16:24 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Tue Jun  4 09:16:24 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=91f9d185

dev-embedded/esp-idf: add 5.2.2

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/Manifest             |   4 +
 dev-embedded/esp-idf/esp-idf-5.2.2.ebuild | 155 ++++++++++++++++++++++++++++++
 2 files changed, 159 insertions(+)

diff --git a/dev-embedded/esp-idf/Manifest b/dev-embedded/esp-idf/Manifest
index 46f062765..efac7275b 100644
--- a/dev-embedded/esp-idf/Manifest
+++ b/dev-embedded/esp-idf/Manifest
@@ -1,5 +1,9 @@
 DIST esp-idf-5.2.1.zip 1300409360 BLAKE2B a55ee7852165bd14fcc72fd0bc9c8f1dbfeb3a0f86766b5354112c54d3081709d192b87e368bf31502629e6a85cd9a75055fb0a20ee20a755f9d3951fb14b3ce SHA512 bbcfcbbec38ffc0f7d07c57bb8a3431e0237d0f61a02b176bfb222b71cff0f3065fadbdcf43221b33f14565fc646a3e287ce5fde7d5d7dae2d036b2e11d113e4
+DIST esp-idf-5.2.2.zip 1488330027 BLAKE2B 00ba4c6f6a08ff1a8a398b8fea3dff1cb23e9f61435d9b69035df81579b65a026030f7fc67bb1b43c90484b5c4cfbd5143383b4171f0fed70931e58718c906fa SHA512 35b2b6ab028a9075702e7441b0354e7c30deaabc97da1b758a6206e2c78760b415ed5d60cbaf7b90b5fdce95f9faeb99d6ae1ad4991635024e2a3cfcbc8c38f2
 DIST openocd-esp32-linux-amd64-0.12.0-esp32-20230921.tar.gz 2193783 BLAKE2B 8f94d628bb415ab75daa85d51c94e8d2a9a1d9399b706963b8bd663d145e440a9e86d7f29000f196d1c9e2585c24882739a80ba29c5b83a96ada384f262f0941 SHA512 8ca3c932c5b7b236133c2a305d95b8059d9db14640efc077e34c256390da05e177479a973aa974005f34fba4a74119dcdb59d876344bdef8940b58c3c948c9f7
+DIST openocd-esp32-linux-amd64-0.12.0-esp32-20240318.tar.gz 2252682 BLAKE2B fbec39f77c7e2d423eacaf45d0f8c3373e24c65c3d5e2db0edf5b952945edcc838dd41f8c852ff0b2104dce62184b3b0803014e53d8dd4dcf6427955ec18f194 SHA512 5acb5d90740ea8b54be57fe80956c2bbcc6bb3c48dc4969043a7d49da7e9135ede4add8bdf8f7d772681867aca1faa72594fa8f70e7e8d2bc7ed93128ff1ec8d
 DIST riscv32-esp-elf-13.2.0_20230928-x86_64-linux-gnu.tar.xz 143575940 BLAKE2B a888291f4b2c482cf2f3620519fc02607ba22d99f8d02e20415daf58cf2eecfa96144b0fc6fdbf98b3569ff0e5755d854650735e30cbfab56701a3d61627ddba SHA512 71b5def3d291eb80ab98adfbd23626ea4c6c5d8b30ab34a9f8a100013df58c4867044b974d8ced9405b5b45b26232835806746814051f55b650dde82bffe40f4
+DIST riscv32-esp-elf-gdb-14.2_20240403-x86_64-linux-gnu.tar.gz 30707431 BLAKE2B 99809fbd5abe99c4890fbf4edd964ee53bc9269b9bb15f487316d0092a9d7aae9d3f9f61f7597f5721aec4f95813908c8ce6a3f6f97cd453d1610a5caa7dc42e SHA512 1ad4854c53f435b08d634f8e5e1a9169037745684b13972876176483badc7ebf5a6c38109e7ac5c3f484df76e82bf790244661ac70b1e52dd3b2fc8a4956e5ff
 DIST xtensa-esp-elf-13.2.0_20230928-x86_64-linux-gnu.tar.xz 112588084 BLAKE2B 9b462426d09f0071d205066d6e9897d035a3c65bef6c9bf2cccefdbcbb3629af38cec5b5411e5f32c1e0b19d51c78675e264544c1f730a1b0554262c9b6dd7d1 SHA512 60e718d8bc4007966d4b66ca57a56b144ac6614e6a283ceb6681a29aab60f1f621049e3b691440e3da38a47d7260467a06c91c190d383aeb5c915df2dd908b94
 DIST xtensa-esp-elf-gdb-12.1_20231023-x86_64-linux-gnu.tar.gz 36942094 BLAKE2B ecb04aacb864ad625d603b59fb39df9e76ff63cbbab39fa2370154c939e5113e56fc7eeff03411c33d73adf05376531f8d107c6da55e5b619390b5272d4f1ad5 SHA512 7afee5aa9919420d847d5dc351598ba7a0ba41c61e20647501b62d83c65868fd1673f45065b0563204cd30049e5dcceb3a0c095f7f0382d7166904ee202ea730
+DIST xtensa-esp-elf-gdb-14.2_20240403-x86_64-linux-gnu.tar.gz 31010320 BLAKE2B dcca888811260e86f9cde19ee1a2e7737c73de6a8060d100a362a4c41a606779b82cb04ff62184c5dfa226e6ac9b81b018f4da30e748cbcd644a80ff2122b86a SHA512 8b224393345b45124d5f0698e01e8e465d785c62cea6845eefd7ff852463966dc13ae94f6edb9a6b16871a6cfaa43b4d275740173579994d352303359c122deb

diff --git a/dev-embedded/esp-idf/esp-idf-5.2.2.ebuild b/dev-embedded/esp-idf/esp-idf-5.2.2.ebuild
new file mode 100644
index 000000000..c100d333a
--- /dev/null
+++ b/dev-embedded/esp-idf/esp-idf-5.2.2.ebuild
@@ -0,0 +1,155 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11,12} )
+
+VER="13.2.0_20230928"
+GDB_VER="14.2_20240403"
+
+CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-${VER}"
+
+inherit python-r1
+
+DESCRIPTION="Espressif IoT Development Framework"
+HOMEPAGE="https://www.espressif.com/"
+
+#	https://github.com/espressif/binutils-esp32ulp/releases/download/v2.28.51-esp-20191205/binutils-esp32ulp-linux-amd64-2.28.51-esp-20191205.tar.gz
+SRC_URI="https://dl.espressif.com/github_assets/espressif/${PN}/releases/download/v${PV}/${PN}-v${PV}.zip -> ${P}.zip
+	https://github.com/espressif/openocd-esp32/releases/download/v0.12.0-esp32-20240318/openocd-esp32-linux-amd64-0.12.0-esp32-20240318.tar.gz
+	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v${GDB_VER}/xtensa-esp-elf-gdb-${GDB_VER}-x86_64-linux-gnu.tar.gz"
+SRC_URI+=" ${CROSSTOOL_URL}/xtensa-esp-elf-${VER}-x86_64-linux-gnu.tar.xz"
+SRC_URI+=" riscv32? (
+	${CROSSTOOL_URL}/riscv32-esp-elf-${VER}-x86_64-linux-gnu.tar.xz
+	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v${GDB_VER}/riscv32-esp-elf-gdb-${GDB_VER}-x86_64-linux-gnu.tar.gz
+)"
+
+#https://dl.espressif.com/dl/toolchains/preview/riscv32-esp-elf-gcc8_4_0-crosstool-ng-1.24.0-123-g64eb9ff-linux-amd64.tar.gz
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="riscv32"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+BDEPEND="app-arch/unzip"
+RDEPEND="
+	${PYTHON_DEPS}
+
+	dev-libs/libusb:1
+	dev-python/click[${PYTHON_USEDEP}]
+	dev-python/pyserial[${PYTHON_USEDEP}]
+	dev-python/cryptography[${PYTHON_USEDEP}]
+	dev-python/pyparsing[${PYTHON_USEDEP}]
+	dev-python/pyelftools[${PYTHON_USEDEP}]
+	dev-embedded/esp-coredump[${PYTHON_USEDEP}]
+	dev-embedded/esptool[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-panic-decoder[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-size[${PYTHON_USEDEP}]
+	dev-embedded/freertos-gdb[${PYTHON_USEDEP}]
+	dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
+	sys-libs/zlib
+"
+
+RESTRICT="strip"
+
+QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
+QA_PRESTRIPPED="opt/*"
+
+PATCHES=(
+	"${FILESDIR}/allow-system-install-${PN}-5.1.2.patch"
+)
+
+install_tool() {
+	shopt -s globstar
+
+	into /opt/${1}
+
+	if [[ -d "../${1}/lib" ]]; then
+		if stat *.so &>/dev/null; then
+		for i in ../${1}/lib/**/*.so*; do
+			dolib.so ${i}
+		done
+		fi
+
+		if stat *.a &>/dev/null; then
+		for i in ../${1}/lib/**/*.a*; do
+			dolib.a ${i}
+		done
+		fi
+
+		insinto /opt/${1}/lib
+		doins -r ../${1}/lib/*
+	fi
+
+	exeinto /opt/${1}/bin
+	doexe ../${1}/bin/*
+	(
+	cd ../${1}
+	for i in libexec/**/*; do
+		exeinto /opt/${1}/$(dirname ${i})
+		if [[ -x "${i}" && ! -d "${i}" ]]; then
+			doexe ${i}
+		fi
+	done
+
+	if [[ -d "include" ]]; then
+		insinto /opt/${1}
+		doins -r include
+	fi
+
+	if [[ -d "share" ]]; then
+		insinto /opt/${1}
+		doins -r share
+	fi
+	)
+
+	(
+		cd "${D}"/opt/${1}/bin/ || die
+		for i in *; do
+			dodir /opt/bin
+			cd "${D}"/opt/bin || die
+			dosym ../${1}/bin/${i} /opt/bin/${i}
+		done
+	)
+
+	shopt -u globstar
+}
+
+src_install() {
+	echo -e "#!/bin/sh\npython /usr/share/${PN}/tools/idf.py \"\$@\"" > idf
+	dobin idf
+
+	install_tool xtensa-esp-elf
+	install_tool xtensa-esp-elf/xtensa-esp-elf
+
+	if use riscv32; then
+		install_tool riscv32-esp-elf
+		install_tool riscv32-esp-elf/riscv32-esp-elf
+	fi
+
+	install_tool openocd-esp32
+
+	# Remove unsupported python versions
+	rm "${WORKDIR}"/xtensa-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{8..10} || die
+	install_tool xtensa-esp-elf-gdb
+	if use riscv32; then
+		rm "${WORKDIR}"/riscv32-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{8..10} || die
+		install_tool riscv32-esp-elf-gdb
+	fi
+
+	echo "IDF_PATH=/usr/share/${PN}" > 99esp-idf || die
+	doenvd 99esp-idf
+
+	insinto /usr/share/${PN}
+
+	rm -r .git || die
+	find . -name ".git" -exec rm -rf {} \; || die
+	doins -r .
+}


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
  2024-06-04 12:26 [gentoo-commits] repo/proj/guru:master " David Roman
@ 2024-06-04  9:18 ` David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2024-06-04  9:18 UTC (permalink / raw
  To: gentoo-commits

commit:     3202c15b42e29591bf18a6b203f692f4f6e3893b
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Tue Jun  4 09:18:13 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Tue Jun  4 09:18:13 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3202c15b

dev-embedded/esp-idf: remove unused USE flags

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/metadata.xml | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/dev-embedded/esp-idf/metadata.xml b/dev-embedded/esp-idf/metadata.xml
index 97ea39c78..ed8aadb34 100644
--- a/dev-embedded/esp-idf/metadata.xml
+++ b/dev-embedded/esp-idf/metadata.xml
@@ -6,9 +6,6 @@
 		<name>David Roman</name>
 	</maintainer>
 	<use>
-		<flag name="esp32">Enable support for esp32</flag>
-		<flag name="esp32s2">Enable support for esp32s2</flag>
-		<flag name="esp32s3">Enable support for esp32s3</flag>
 		<flag name="riscv32">Enable support for riscv32</flag>
 	</use>
 	<upstream>


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2024-06-19  7:15 Florian Schmaus
  0 siblings, 0 replies; 29+ messages in thread
From: Florian Schmaus @ 2024-06-19  7:15 UTC (permalink / raw
  To: gentoo-commits

commit:     b8d29619de43a844d6b94f313cbf1c94fd01c6f8
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 19 07:14:49 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Wed Jun 19 07:14:56 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b8d29619

dev-embedded/esp-idf: use estack.eclass and newbin with heredoc

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 dev-embedded/esp-idf/esp-idf-5.2.2.ebuild | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/dev-embedded/esp-idf/esp-idf-5.2.2.ebuild b/dev-embedded/esp-idf/esp-idf-5.2.2.ebuild
index af3eb9ab0..075aec06e 100644
--- a/dev-embedded/esp-idf/esp-idf-5.2.2.ebuild
+++ b/dev-embedded/esp-idf/esp-idf-5.2.2.ebuild
@@ -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


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2024-06-19  7:15 Florian Schmaus
  0 siblings, 0 replies; 29+ messages in thread
From: Florian Schmaus @ 2024-06-19  7:15 UTC (permalink / raw
  To: gentoo-commits

commit:     4855e0c86879a54e58851e688232f47814c1acd2
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 19 07:01:03 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Wed Jun 19 07:14:55 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4855e0c8

dev-embedded/esp-idf: drop failing rm in case of USE=riscv32

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 dev-embedded/esp-idf/esp-idf-5.2.2.ebuild | 1 -
 1 file changed, 1 deletion(-)

diff --git a/dev-embedded/esp-idf/esp-idf-5.2.2.ebuild b/dev-embedded/esp-idf/esp-idf-5.2.2.ebuild
index c100d333a..af3eb9ab0 100644
--- a/dev-embedded/esp-idf/esp-idf-5.2.2.ebuild
+++ b/dev-embedded/esp-idf/esp-idf-5.2.2.ebuild
@@ -140,7 +140,6 @@ src_install() {
 	rm "${WORKDIR}"/xtensa-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{8..10} || die
 	install_tool xtensa-esp-elf-gdb
 	if use riscv32; then
-		rm "${WORKDIR}"/riscv32-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{8..10} || die
 		install_tool riscv32-esp-elf-gdb
 	fi
 


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2024-07-04  3:51 Lucio Sauer
  0 siblings, 0 replies; 29+ messages in thread
From: Lucio Sauer @ 2024-07-04  3:51 UTC (permalink / raw
  To: gentoo-commits

commit:     63906109b24a2d56fee00c208a1484878c4d4ec2
Author:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Thu Jul  4 03:38:30 2024 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Thu Jul  4 03:48:33 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=63906109

dev-embedded/esp-idf: remove [] from dev-embedded/esptool; #933646

dev-embedded/esptool is single-impl again, so let's reverse the dep
changes made in 0f0e764b52c89a4c3935529d4919a80d337c79ad.
A potentially saner solution could be to convert this package to
single-impl.

Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>

 dev-embedded/esp-idf/esp-idf-5.2.1.ebuild | 2 +-
 dev-embedded/esp-idf/esp-idf-5.2.2.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild b/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild
index a7de0c9cd..271a3d190 100644
--- a/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild
+++ b/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild
@@ -43,7 +43,7 @@ RDEPEND="
 	dev-python/pyparsing[${PYTHON_USEDEP}]
 	dev-python/pyelftools[${PYTHON_USEDEP}]
 	dev-embedded/esp-coredump[${PYTHON_USEDEP}]
-	dev-embedded/esptool[${PYTHON_USEDEP}]
+	dev-embedded/esptool
 	dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
 	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
 	dev-embedded/esp-idf-panic-decoder[${PYTHON_USEDEP}]

diff --git a/dev-embedded/esp-idf/esp-idf-5.2.2.ebuild b/dev-embedded/esp-idf/esp-idf-5.2.2.ebuild
index 075aec06e..b0a3e3318 100644
--- a/dev-embedded/esp-idf/esp-idf-5.2.2.ebuild
+++ b/dev-embedded/esp-idf/esp-idf-5.2.2.ebuild
@@ -47,7 +47,7 @@ RDEPEND="
 	dev-python/pyparsing[${PYTHON_USEDEP}]
 	dev-python/pyelftools[${PYTHON_USEDEP}]
 	dev-embedded/esp-coredump[${PYTHON_USEDEP}]
-	dev-embedded/esptool[${PYTHON_USEDEP}]
+	dev-embedded/esptool
 	dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
 	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
 	dev-embedded/esp-idf-panic-decoder[${PYTHON_USEDEP}]


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2024-07-25  9:20 David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2024-07-25  9:20 UTC (permalink / raw
  To: gentoo-commits

commit:     c8b1878e5357bd2a4e2ab8c7367d8631e9cf65fd
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Thu Jul 25 09:20:40 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Jul 25 09:20:40 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c8b1878e

dev-embedded/esp-idf: drop 5.2.1

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/Manifest             |   3 -
 dev-embedded/esp-idf/esp-idf-5.2.1.ebuild | 147 ------------------------------
 2 files changed, 150 deletions(-)

diff --git a/dev-embedded/esp-idf/Manifest b/dev-embedded/esp-idf/Manifest
index efac7275b..86ecf0c47 100644
--- a/dev-embedded/esp-idf/Manifest
+++ b/dev-embedded/esp-idf/Manifest
@@ -1,9 +1,6 @@
-DIST esp-idf-5.2.1.zip 1300409360 BLAKE2B a55ee7852165bd14fcc72fd0bc9c8f1dbfeb3a0f86766b5354112c54d3081709d192b87e368bf31502629e6a85cd9a75055fb0a20ee20a755f9d3951fb14b3ce SHA512 bbcfcbbec38ffc0f7d07c57bb8a3431e0237d0f61a02b176bfb222b71cff0f3065fadbdcf43221b33f14565fc646a3e287ce5fde7d5d7dae2d036b2e11d113e4
 DIST esp-idf-5.2.2.zip 1488330027 BLAKE2B 00ba4c6f6a08ff1a8a398b8fea3dff1cb23e9f61435d9b69035df81579b65a026030f7fc67bb1b43c90484b5c4cfbd5143383b4171f0fed70931e58718c906fa SHA512 35b2b6ab028a9075702e7441b0354e7c30deaabc97da1b758a6206e2c78760b415ed5d60cbaf7b90b5fdce95f9faeb99d6ae1ad4991635024e2a3cfcbc8c38f2
-DIST openocd-esp32-linux-amd64-0.12.0-esp32-20230921.tar.gz 2193783 BLAKE2B 8f94d628bb415ab75daa85d51c94e8d2a9a1d9399b706963b8bd663d145e440a9e86d7f29000f196d1c9e2585c24882739a80ba29c5b83a96ada384f262f0941 SHA512 8ca3c932c5b7b236133c2a305d95b8059d9db14640efc077e34c256390da05e177479a973aa974005f34fba4a74119dcdb59d876344bdef8940b58c3c948c9f7
 DIST openocd-esp32-linux-amd64-0.12.0-esp32-20240318.tar.gz 2252682 BLAKE2B fbec39f77c7e2d423eacaf45d0f8c3373e24c65c3d5e2db0edf5b952945edcc838dd41f8c852ff0b2104dce62184b3b0803014e53d8dd4dcf6427955ec18f194 SHA512 5acb5d90740ea8b54be57fe80956c2bbcc6bb3c48dc4969043a7d49da7e9135ede4add8bdf8f7d772681867aca1faa72594fa8f70e7e8d2bc7ed93128ff1ec8d
 DIST riscv32-esp-elf-13.2.0_20230928-x86_64-linux-gnu.tar.xz 143575940 BLAKE2B a888291f4b2c482cf2f3620519fc02607ba22d99f8d02e20415daf58cf2eecfa96144b0fc6fdbf98b3569ff0e5755d854650735e30cbfab56701a3d61627ddba SHA512 71b5def3d291eb80ab98adfbd23626ea4c6c5d8b30ab34a9f8a100013df58c4867044b974d8ced9405b5b45b26232835806746814051f55b650dde82bffe40f4
 DIST riscv32-esp-elf-gdb-14.2_20240403-x86_64-linux-gnu.tar.gz 30707431 BLAKE2B 99809fbd5abe99c4890fbf4edd964ee53bc9269b9bb15f487316d0092a9d7aae9d3f9f61f7597f5721aec4f95813908c8ce6a3f6f97cd453d1610a5caa7dc42e SHA512 1ad4854c53f435b08d634f8e5e1a9169037745684b13972876176483badc7ebf5a6c38109e7ac5c3f484df76e82bf790244661ac70b1e52dd3b2fc8a4956e5ff
 DIST xtensa-esp-elf-13.2.0_20230928-x86_64-linux-gnu.tar.xz 112588084 BLAKE2B 9b462426d09f0071d205066d6e9897d035a3c65bef6c9bf2cccefdbcbb3629af38cec5b5411e5f32c1e0b19d51c78675e264544c1f730a1b0554262c9b6dd7d1 SHA512 60e718d8bc4007966d4b66ca57a56b144ac6614e6a283ceb6681a29aab60f1f621049e3b691440e3da38a47d7260467a06c91c190d383aeb5c915df2dd908b94
-DIST xtensa-esp-elf-gdb-12.1_20231023-x86_64-linux-gnu.tar.gz 36942094 BLAKE2B ecb04aacb864ad625d603b59fb39df9e76ff63cbbab39fa2370154c939e5113e56fc7eeff03411c33d73adf05376531f8d107c6da55e5b619390b5272d4f1ad5 SHA512 7afee5aa9919420d847d5dc351598ba7a0ba41c61e20647501b62d83c65868fd1673f45065b0563204cd30049e5dcceb3a0c095f7f0382d7166904ee202ea730
 DIST xtensa-esp-elf-gdb-14.2_20240403-x86_64-linux-gnu.tar.gz 31010320 BLAKE2B dcca888811260e86f9cde19ee1a2e7737c73de6a8060d100a362a4c41a606779b82cb04ff62184c5dfa226e6ac9b81b018f4da30e748cbcd644a80ff2122b86a SHA512 8b224393345b45124d5f0698e01e8e465d785c62cea6845eefd7ff852463966dc13ae94f6edb9a6b16871a6cfaa43b4d275740173579994d352303359c122deb

diff --git a/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild b/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild
deleted file mode 100644
index 271a3d190..000000000
--- a/dev-embedded/esp-idf/esp-idf-5.2.1.ebuild
+++ /dev/null
@@ -1,147 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{11,12} )
-
-VER="13.2.0_20230928"
-
-CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-${VER}"
-
-inherit python-r1
-
-DESCRIPTION="Espressif IoT Development Framework"
-HOMEPAGE="https://www.espressif.com/"
-
-#	https://github.com/espressif/binutils-esp32ulp/releases/download/v2.28.51-esp-20191205/binutils-esp32ulp-linux-amd64-2.28.51-esp-20191205.tar.gz
-SRC_URI="https://dl.espressif.com/github_assets/espressif/${PN}/releases/download/v${PV}/${PN}-v${PV}.zip -> ${P}.zip
-	https://github.com/espressif/openocd-esp32/releases/download/v0.12.0-esp32-20230921/openocd-esp32-linux-amd64-0.12.0-esp32-20230921.tar.gz
-	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20231023/xtensa-esp-elf-gdb-12.1_20231023-x86_64-linux-gnu.tar.gz"
-SRC_URI+=" ${CROSSTOOL_URL}/xtensa-esp-elf-${VER}-x86_64-linux-gnu.tar.xz"
-SRC_URI+=" riscv32? ( ${CROSSTOOL_URL}/riscv32-esp-elf-${VER}-x86_64-linux-gnu.tar.xz )"
-
-#https://dl.espressif.com/dl/toolchains/preview/riscv32-esp-elf-gcc8_4_0-crosstool-ng-1.24.0-123-g64eb9ff-linux-amd64.tar.gz
-
-S="${WORKDIR}/${PN}-v${PV}"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-IUSE="riscv32"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-BDEPEND="app-arch/unzip"
-RDEPEND="
-	${PYTHON_DEPS}
-
-	dev-libs/libusb:1
-	dev-python/click[${PYTHON_USEDEP}]
-	dev-python/pyserial[${PYTHON_USEDEP}]
-	dev-python/cryptography[${PYTHON_USEDEP}]
-	dev-python/pyparsing[${PYTHON_USEDEP}]
-	dev-python/pyelftools[${PYTHON_USEDEP}]
-	dev-embedded/esp-coredump[${PYTHON_USEDEP}]
-	dev-embedded/esptool
-	dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
-	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
-	dev-embedded/esp-idf-panic-decoder[${PYTHON_USEDEP}]
-	dev-embedded/esp-idf-size[${PYTHON_USEDEP}]
-	dev-embedded/freertos-gdb[${PYTHON_USEDEP}]
-	dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
-	sys-libs/zlib
-"
-
-RESTRICT="strip"
-
-QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
-QA_PRESTRIPPED="opt/*"
-
-PATCHES=(
-	"${FILESDIR}/allow-system-install-${PN}-5.1.2.patch"
-)
-
-install_tool() {
-	shopt -s globstar
-
-	into /opt/${1}
-
-	if [[ -d "../${1}/lib" ]]; then
-		if stat *.so &>/dev/null; then
-		for i in ../${1}/lib/**/*.so*; do
-			dolib.so ${i}
-		done
-		fi
-
-		if stat *.a &>/dev/null; then
-		for i in ../${1}/lib/**/*.a*; do
-			dolib.a ${i}
-		done
-		fi
-
-		insinto /opt/${1}/lib
-		doins -r ../${1}/lib/*
-	fi
-
-	exeinto /opt/${1}/bin
-	doexe ../${1}/bin/*
-	(
-	cd ../${1}
-	for i in libexec/**/*; do
-		exeinto /opt/${1}/$(dirname ${i})
-		if [[ -x "${i}" && ! -d "${i}" ]]; then
-			doexe ${i}
-		fi
-	done
-
-	if [[ -d "include" ]]; then
-		insinto /opt/${1}
-		doins -r include
-	fi
-
-	if [[ -d "share" ]]; then
-		insinto /opt/${1}
-		doins -r share
-	fi
-	)
-
-	(
-		cd "${D}"/opt/${1}/bin/ || die
-		for i in *; do
-			dodir /opt/bin
-			cd "${D}"/opt/bin || die
-			dosym ../${1}/bin/${i} /opt/bin/${i}
-		done
-	)
-
-	shopt -u globstar
-}
-
-src_install() {
-	echo -e "#!/bin/sh\npython /usr/share/${PN}/tools/idf.py \"\$@\"" > idf
-	dobin idf
-
-	install_tool xtensa-esp-elf
-	install_tool xtensa-esp-elf/xtensa-esp-elf
-
-	if use riscv32; then
-		install_tool riscv32-esp-elf
-		install_tool riscv32-esp-elf/riscv32-esp-elf
-	fi
-
-	install_tool openocd-esp32
-
-	# Remove unsupported python versions
-	rm "${WORKDIR}"/xtensa-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{6..10} || die
-	install_tool xtensa-esp-elf-gdb
-
-	echo "IDF_PATH=/usr/share/${PN}" > 99esp-idf || die
-	doenvd 99esp-idf
-
-	insinto /usr/share/${PN}
-
-	rm -r .git || die
-	find . -name ".git" -exec rm -rf {} \; || die
-	doins -r .
-}


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2024-09-05 10:38 David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2024-09-05 10:38 UTC (permalink / raw
  To: gentoo-commits

commit:     7694d33c3df0e286d5056ebaf51e01ce715a8cc9
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Thu Sep  5 09:58:54 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Sep  5 09:58:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7694d33c

dev-embedded/esp-idf: drop 5.3

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/esp-idf-5.3.ebuild | 158 --------------------------------
 1 file changed, 158 deletions(-)

diff --git a/dev-embedded/esp-idf/esp-idf-5.3.ebuild b/dev-embedded/esp-idf/esp-idf-5.3.ebuild
deleted file mode 100644
index fba617de1..000000000
--- a/dev-embedded/esp-idf/esp-idf-5.3.ebuild
+++ /dev/null
@@ -1,158 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{11,12} )
-
-VER="13.2.0_20240530"
-GDB_VER="14.2_20240403"
-
-CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-${VER}"
-
-inherit estack python-r1
-
-DESCRIPTION="Espressif IoT Development Framework"
-HOMEPAGE="https://www.espressif.com/"
-
-# See https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.3.txt for information about version dependencies
-
-SRC_URI="https://dl.espressif.com/github_assets/espressif/${PN}/releases/download/v${PV}/${PN}-v${PV}.zip -> ${P}.zip
-	https://github.com/espressif/openocd-esp32/releases/download/v0.12.0-esp32-20240318/openocd-esp32-linux-amd64-0.12.0-esp32-20240318.tar.gz
-	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v${GDB_VER}/xtensa-esp-elf-gdb-${GDB_VER}-x86_64-linux-gnu.tar.gz"
-SRC_URI+=" ${CROSSTOOL_URL}/xtensa-esp-elf-${VER}-x86_64-linux-gnu.tar.xz"
-SRC_URI+=" riscv32? (
-	${CROSSTOOL_URL}/riscv32-esp-elf-${VER}-x86_64-linux-gnu.tar.xz
-	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v${GDB_VER}/riscv32-esp-elf-gdb-${GDB_VER}-x86_64-linux-gnu.tar.gz
-)"
-
-S="${WORKDIR}/${PN}-v${PV}"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-IUSE="riscv32"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-BDEPEND="app-arch/unzip"
-RDEPEND="
-	${PYTHON_DEPS}
-
-	dev-libs/libusb:1
-	dev-python/click[${PYTHON_USEDEP}]
-	dev-python/pyserial[${PYTHON_USEDEP}]
-	dev-python/cryptography[${PYTHON_USEDEP}]
-	dev-python/pyparsing[${PYTHON_USEDEP}]
-	dev-python/pyelftools[${PYTHON_USEDEP}]
-	dev-embedded/esp-coredump[${PYTHON_USEDEP}]
-	dev-embedded/esptool
-	dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
-	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
-	dev-embedded/esp-idf-panic-decoder[${PYTHON_USEDEP}]
-	dev-embedded/esp-idf-size[${PYTHON_USEDEP}]
-	dev-embedded/freertos-gdb[${PYTHON_USEDEP}]
-	dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
-	sys-libs/zlib
-"
-
-RESTRICT="strip"
-
-QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
-QA_PRESTRIPPED="opt/*"
-
-PATCHES=(
-	"${FILESDIR}/allow-system-install-${PN}-5.3.patch"
-)
-
-install_tool() {
-	eshopts_push -s globstar
-
-	into /opt/${1}
-
-	if [[ -d "../${1}/lib" ]]; then
-		if stat *.so &>/dev/null; then
-		for i in ../${1}/lib/**/*.so*; do
-			dolib.so ${i}
-		done
-		fi
-
-		if stat *.a &>/dev/null; then
-		for i in ../${1}/lib/**/*.a*; do
-			dolib.a ${i}
-		done
-		fi
-
-		insinto /opt/${1}/lib
-		doins -r ../${1}/lib/*
-	fi
-
-	exeinto /opt/${1}/bin
-	doexe ../${1}/bin/*
-	(
-	cd ../${1}
-	for i in libexec/**/*; do
-		exeinto /opt/${1}/$(dirname ${i})
-		if [[ -x "${i}" && ! -d "${i}" ]]; then
-			doexe ${i}
-		fi
-	done
-
-	if [[ -d "include" ]]; then
-		insinto /opt/${1}
-		doins -r include
-	fi
-
-	if [[ -d "share" ]]; then
-		insinto /opt/${1}
-		doins -r share
-	fi
-	)
-
-	(
-		cd "${D}"/opt/${1}/bin/ || die
-		for i in *; do
-			dodir /opt/bin
-			cd "${D}"/opt/bin || die
-			dosym ../${1}/bin/${i} /opt/bin/${i}
-		done
-	)
-
-	eshopts_pop
-}
-
-src_install() {
-	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
-
-	if use riscv32; then
-		install_tool riscv32-esp-elf
-		install_tool riscv32-esp-elf/riscv32-esp-elf
-	fi
-
-	install_tool openocd-esp32
-
-	# Remove unsupported python versions
-	rm "${WORKDIR}"/xtensa-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{8..10} || die
-	install_tool xtensa-esp-elf-gdb
-	if use riscv32; then
-		install_tool riscv32-esp-elf-gdb
-	fi
-
-	echo "IDF_PATH=/usr/share/${PN}" > 99esp-idf || die
-	doenvd 99esp-idf
-
-	insinto /usr/share/${PN}
-
-	rm -r .git || die
-	find . -name ".git" -exec rm -rf {} \; || die
-	doins -r .
-}


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2024-09-05 10:38 David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2024-09-05 10:38 UTC (permalink / raw
  To: gentoo-commits

commit:     807ca1dfd69b02b5809c0cf891a9b262de71a019
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Thu Sep  5 10:37:31 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Sep  5 10:37:31 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=807ca1df

dev-embedded/esp-idf: add 5.3.1

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/Manifest             |   1 +
 dev-embedded/esp-idf/esp-idf-5.3.1.ebuild | 158 ++++++++++++++++++++++++++++++
 2 files changed, 159 insertions(+)

diff --git a/dev-embedded/esp-idf/Manifest b/dev-embedded/esp-idf/Manifest
index e47926ecb..9ca2e77f9 100644
--- a/dev-embedded/esp-idf/Manifest
+++ b/dev-embedded/esp-idf/Manifest
@@ -1,4 +1,5 @@
 DIST esp-idf-5.2.2.zip 1488330027 BLAKE2B 00ba4c6f6a08ff1a8a398b8fea3dff1cb23e9f61435d9b69035df81579b65a026030f7fc67bb1b43c90484b5c4cfbd5143383b4171f0fed70931e58718c906fa SHA512 35b2b6ab028a9075702e7441b0354e7c30deaabc97da1b758a6206e2c78760b415ed5d60cbaf7b90b5fdce95f9faeb99d6ae1ad4991635024e2a3cfcbc8c38f2
+DIST esp-idf-5.3.1.zip 1695394487 BLAKE2B 97168a8ab5c482a86588e87d42caafb5bbeb4192966294fa56cb237883490b86746571ba6d00b6306b06b3ede8e7b041726e17fe09e2a7e747021e580e575a10 SHA512 c82517801628a6f5d74a5d22a0cc1320226cac6a0d79120273e500b8e8cfbc49e4129b3dfa7eda45f94a9220221b7894ef77e208aeab17d3d452bf06a3419678
 DIST esp-idf-5.3.zip 1617510710 BLAKE2B 423c993efc32af9bd4b25509439c94ae06d474a20db70fc14b2dffaeb476aa647ff0f774cd58b5872de3e4c1768ce8b9e5dd7a99c6d36cba54cd7fea2eb2f5fa SHA512 3a5a7668a7c1419cfd0ead032a856d55a99e70d306c7db6bd3301d1349a128ed95a220c9a5adf310dd749e70ba460acb0c502d64b54d54e7a082422885c2b619
 DIST openocd-esp32-linux-amd64-0.12.0-esp32-20240318.tar.gz 2252682 BLAKE2B fbec39f77c7e2d423eacaf45d0f8c3373e24c65c3d5e2db0edf5b952945edcc838dd41f8c852ff0b2104dce62184b3b0803014e53d8dd4dcf6427955ec18f194 SHA512 5acb5d90740ea8b54be57fe80956c2bbcc6bb3c48dc4969043a7d49da7e9135ede4add8bdf8f7d772681867aca1faa72594fa8f70e7e8d2bc7ed93128ff1ec8d
 DIST riscv32-esp-elf-13.2.0_20230928-x86_64-linux-gnu.tar.xz 143575940 BLAKE2B a888291f4b2c482cf2f3620519fc02607ba22d99f8d02e20415daf58cf2eecfa96144b0fc6fdbf98b3569ff0e5755d854650735e30cbfab56701a3d61627ddba SHA512 71b5def3d291eb80ab98adfbd23626ea4c6c5d8b30ab34a9f8a100013df58c4867044b974d8ced9405b5b45b26232835806746814051f55b650dde82bffe40f4

diff --git a/dev-embedded/esp-idf/esp-idf-5.3.1.ebuild b/dev-embedded/esp-idf/esp-idf-5.3.1.ebuild
new file mode 100644
index 000000000..fba617de1
--- /dev/null
+++ b/dev-embedded/esp-idf/esp-idf-5.3.1.ebuild
@@ -0,0 +1,158 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11,12} )
+
+VER="13.2.0_20240530"
+GDB_VER="14.2_20240403"
+
+CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-${VER}"
+
+inherit estack python-r1
+
+DESCRIPTION="Espressif IoT Development Framework"
+HOMEPAGE="https://www.espressif.com/"
+
+# See https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.3.txt for information about version dependencies
+
+SRC_URI="https://dl.espressif.com/github_assets/espressif/${PN}/releases/download/v${PV}/${PN}-v${PV}.zip -> ${P}.zip
+	https://github.com/espressif/openocd-esp32/releases/download/v0.12.0-esp32-20240318/openocd-esp32-linux-amd64-0.12.0-esp32-20240318.tar.gz
+	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v${GDB_VER}/xtensa-esp-elf-gdb-${GDB_VER}-x86_64-linux-gnu.tar.gz"
+SRC_URI+=" ${CROSSTOOL_URL}/xtensa-esp-elf-${VER}-x86_64-linux-gnu.tar.xz"
+SRC_URI+=" riscv32? (
+	${CROSSTOOL_URL}/riscv32-esp-elf-${VER}-x86_64-linux-gnu.tar.xz
+	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v${GDB_VER}/riscv32-esp-elf-gdb-${GDB_VER}-x86_64-linux-gnu.tar.gz
+)"
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="riscv32"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+BDEPEND="app-arch/unzip"
+RDEPEND="
+	${PYTHON_DEPS}
+
+	dev-libs/libusb:1
+	dev-python/click[${PYTHON_USEDEP}]
+	dev-python/pyserial[${PYTHON_USEDEP}]
+	dev-python/cryptography[${PYTHON_USEDEP}]
+	dev-python/pyparsing[${PYTHON_USEDEP}]
+	dev-python/pyelftools[${PYTHON_USEDEP}]
+	dev-embedded/esp-coredump[${PYTHON_USEDEP}]
+	dev-embedded/esptool
+	dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-panic-decoder[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-size[${PYTHON_USEDEP}]
+	dev-embedded/freertos-gdb[${PYTHON_USEDEP}]
+	dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
+	sys-libs/zlib
+"
+
+RESTRICT="strip"
+
+QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
+QA_PRESTRIPPED="opt/*"
+
+PATCHES=(
+	"${FILESDIR}/allow-system-install-${PN}-5.3.patch"
+)
+
+install_tool() {
+	eshopts_push -s globstar
+
+	into /opt/${1}
+
+	if [[ -d "../${1}/lib" ]]; then
+		if stat *.so &>/dev/null; then
+		for i in ../${1}/lib/**/*.so*; do
+			dolib.so ${i}
+		done
+		fi
+
+		if stat *.a &>/dev/null; then
+		for i in ../${1}/lib/**/*.a*; do
+			dolib.a ${i}
+		done
+		fi
+
+		insinto /opt/${1}/lib
+		doins -r ../${1}/lib/*
+	fi
+
+	exeinto /opt/${1}/bin
+	doexe ../${1}/bin/*
+	(
+	cd ../${1}
+	for i in libexec/**/*; do
+		exeinto /opt/${1}/$(dirname ${i})
+		if [[ -x "${i}" && ! -d "${i}" ]]; then
+			doexe ${i}
+		fi
+	done
+
+	if [[ -d "include" ]]; then
+		insinto /opt/${1}
+		doins -r include
+	fi
+
+	if [[ -d "share" ]]; then
+		insinto /opt/${1}
+		doins -r share
+	fi
+	)
+
+	(
+		cd "${D}"/opt/${1}/bin/ || die
+		for i in *; do
+			dodir /opt/bin
+			cd "${D}"/opt/bin || die
+			dosym ../${1}/bin/${i} /opt/bin/${i}
+		done
+	)
+
+	eshopts_pop
+}
+
+src_install() {
+	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
+
+	if use riscv32; then
+		install_tool riscv32-esp-elf
+		install_tool riscv32-esp-elf/riscv32-esp-elf
+	fi
+
+	install_tool openocd-esp32
+
+	# Remove unsupported python versions
+	rm "${WORKDIR}"/xtensa-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{8..10} || die
+	install_tool xtensa-esp-elf-gdb
+	if use riscv32; then
+		install_tool riscv32-esp-elf-gdb
+	fi
+
+	echo "IDF_PATH=/usr/share/${PN}" > 99esp-idf || die
+	doenvd 99esp-idf
+
+	insinto /usr/share/${PN}
+
+	rm -r .git || die
+	find . -name ".git" -exec rm -rf {} \; || die
+	doins -r .
+}


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2024-09-05 10:38 David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2024-09-05 10:38 UTC (permalink / raw
  To: gentoo-commits

commit:     c9826f192ab374ce0ff222c43f9e6ea9459678a3
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Thu Sep  5 10:37:58 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Sep  5 10:37:58 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c9826f19

dev-embedded/esp-idf: drop 5.2.2

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/Manifest             |   3 -
 dev-embedded/esp-idf/esp-idf-5.2.2.ebuild | 159 ------------------------------
 2 files changed, 162 deletions(-)

diff --git a/dev-embedded/esp-idf/Manifest b/dev-embedded/esp-idf/Manifest
index 9ca2e77f9..5cee93b88 100644
--- a/dev-embedded/esp-idf/Manifest
+++ b/dev-embedded/esp-idf/Manifest
@@ -1,10 +1,7 @@
-DIST esp-idf-5.2.2.zip 1488330027 BLAKE2B 00ba4c6f6a08ff1a8a398b8fea3dff1cb23e9f61435d9b69035df81579b65a026030f7fc67bb1b43c90484b5c4cfbd5143383b4171f0fed70931e58718c906fa SHA512 35b2b6ab028a9075702e7441b0354e7c30deaabc97da1b758a6206e2c78760b415ed5d60cbaf7b90b5fdce95f9faeb99d6ae1ad4991635024e2a3cfcbc8c38f2
 DIST esp-idf-5.3.1.zip 1695394487 BLAKE2B 97168a8ab5c482a86588e87d42caafb5bbeb4192966294fa56cb237883490b86746571ba6d00b6306b06b3ede8e7b041726e17fe09e2a7e747021e580e575a10 SHA512 c82517801628a6f5d74a5d22a0cc1320226cac6a0d79120273e500b8e8cfbc49e4129b3dfa7eda45f94a9220221b7894ef77e208aeab17d3d452bf06a3419678
 DIST esp-idf-5.3.zip 1617510710 BLAKE2B 423c993efc32af9bd4b25509439c94ae06d474a20db70fc14b2dffaeb476aa647ff0f774cd58b5872de3e4c1768ce8b9e5dd7a99c6d36cba54cd7fea2eb2f5fa SHA512 3a5a7668a7c1419cfd0ead032a856d55a99e70d306c7db6bd3301d1349a128ed95a220c9a5adf310dd749e70ba460acb0c502d64b54d54e7a082422885c2b619
 DIST openocd-esp32-linux-amd64-0.12.0-esp32-20240318.tar.gz 2252682 BLAKE2B fbec39f77c7e2d423eacaf45d0f8c3373e24c65c3d5e2db0edf5b952945edcc838dd41f8c852ff0b2104dce62184b3b0803014e53d8dd4dcf6427955ec18f194 SHA512 5acb5d90740ea8b54be57fe80956c2bbcc6bb3c48dc4969043a7d49da7e9135ede4add8bdf8f7d772681867aca1faa72594fa8f70e7e8d2bc7ed93128ff1ec8d
-DIST riscv32-esp-elf-13.2.0_20230928-x86_64-linux-gnu.tar.xz 143575940 BLAKE2B a888291f4b2c482cf2f3620519fc02607ba22d99f8d02e20415daf58cf2eecfa96144b0fc6fdbf98b3569ff0e5755d854650735e30cbfab56701a3d61627ddba SHA512 71b5def3d291eb80ab98adfbd23626ea4c6c5d8b30ab34a9f8a100013df58c4867044b974d8ced9405b5b45b26232835806746814051f55b650dde82bffe40f4
 DIST riscv32-esp-elf-13.2.0_20240530-x86_64-linux-gnu.tar.xz 145544808 BLAKE2B b55513bf4cd6526a438aa5460806f0886438a52932631f5d142bc9c5f0b0affcda7a830b2f9b13c83ed356a4cebd7e3e0c0b5c29e718e880d312b6aa2f61c5b2 SHA512 fb4c868877bd9e68bedceb816c1aeec1736e2876bc1adf3138d59b73f0e9b0fb14eb826c885749b6070e6cf1e8e794f0a53c85bf5c5c896d8b3a6c7e6d0d821b
 DIST riscv32-esp-elf-gdb-14.2_20240403-x86_64-linux-gnu.tar.gz 30707431 BLAKE2B 99809fbd5abe99c4890fbf4edd964ee53bc9269b9bb15f487316d0092a9d7aae9d3f9f61f7597f5721aec4f95813908c8ce6a3f6f97cd453d1610a5caa7dc42e SHA512 1ad4854c53f435b08d634f8e5e1a9169037745684b13972876176483badc7ebf5a6c38109e7ac5c3f484df76e82bf790244661ac70b1e52dd3b2fc8a4956e5ff
-DIST xtensa-esp-elf-13.2.0_20230928-x86_64-linux-gnu.tar.xz 112588084 BLAKE2B 9b462426d09f0071d205066d6e9897d035a3c65bef6c9bf2cccefdbcbb3629af38cec5b5411e5f32c1e0b19d51c78675e264544c1f730a1b0554262c9b6dd7d1 SHA512 60e718d8bc4007966d4b66ca57a56b144ac6614e6a283ceb6681a29aab60f1f621049e3b691440e3da38a47d7260467a06c91c190d383aeb5c915df2dd908b94
 DIST xtensa-esp-elf-13.2.0_20240530-x86_64-linux-gnu.tar.xz 112073272 BLAKE2B 88b6abb5202ebb2ffa03f3cdeca2fc0ef23cb02d96e86388e3334620d7a36ff6401a6e886380f10a4eff68638c60705f3d66d68fa047dc3e37744b41b643da73 SHA512 ecb11e32269513d778d320a429c4403ce50e8556b7e547dee7efb3a1ae333ad526732415cabe79bef30e2e9626305f83f6ca60dc1bd1864adfbfc7b9240e5c46
 DIST xtensa-esp-elf-gdb-14.2_20240403-x86_64-linux-gnu.tar.gz 31010320 BLAKE2B dcca888811260e86f9cde19ee1a2e7737c73de6a8060d100a362a4c41a606779b82cb04ff62184c5dfa226e6ac9b81b018f4da30e748cbcd644a80ff2122b86a SHA512 8b224393345b45124d5f0698e01e8e465d785c62cea6845eefd7ff852463966dc13ae94f6edb9a6b16871a6cfaa43b4d275740173579994d352303359c122deb

diff --git a/dev-embedded/esp-idf/esp-idf-5.2.2.ebuild b/dev-embedded/esp-idf/esp-idf-5.2.2.ebuild
deleted file mode 100644
index b0a3e3318..000000000
--- a/dev-embedded/esp-idf/esp-idf-5.2.2.ebuild
+++ /dev/null
@@ -1,159 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{11,12} )
-
-VER="13.2.0_20230928"
-GDB_VER="14.2_20240403"
-
-CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-${VER}"
-
-inherit estack python-r1
-
-DESCRIPTION="Espressif IoT Development Framework"
-HOMEPAGE="https://www.espressif.com/"
-
-#	https://github.com/espressif/binutils-esp32ulp/releases/download/v2.28.51-esp-20191205/binutils-esp32ulp-linux-amd64-2.28.51-esp-20191205.tar.gz
-SRC_URI="https://dl.espressif.com/github_assets/espressif/${PN}/releases/download/v${PV}/${PN}-v${PV}.zip -> ${P}.zip
-	https://github.com/espressif/openocd-esp32/releases/download/v0.12.0-esp32-20240318/openocd-esp32-linux-amd64-0.12.0-esp32-20240318.tar.gz
-	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v${GDB_VER}/xtensa-esp-elf-gdb-${GDB_VER}-x86_64-linux-gnu.tar.gz"
-SRC_URI+=" ${CROSSTOOL_URL}/xtensa-esp-elf-${VER}-x86_64-linux-gnu.tar.xz"
-SRC_URI+=" riscv32? (
-	${CROSSTOOL_URL}/riscv32-esp-elf-${VER}-x86_64-linux-gnu.tar.xz
-	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v${GDB_VER}/riscv32-esp-elf-gdb-${GDB_VER}-x86_64-linux-gnu.tar.gz
-)"
-
-#https://dl.espressif.com/dl/toolchains/preview/riscv32-esp-elf-gcc8_4_0-crosstool-ng-1.24.0-123-g64eb9ff-linux-amd64.tar.gz
-
-S="${WORKDIR}/${PN}-v${PV}"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-IUSE="riscv32"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-BDEPEND="app-arch/unzip"
-RDEPEND="
-	${PYTHON_DEPS}
-
-	dev-libs/libusb:1
-	dev-python/click[${PYTHON_USEDEP}]
-	dev-python/pyserial[${PYTHON_USEDEP}]
-	dev-python/cryptography[${PYTHON_USEDEP}]
-	dev-python/pyparsing[${PYTHON_USEDEP}]
-	dev-python/pyelftools[${PYTHON_USEDEP}]
-	dev-embedded/esp-coredump[${PYTHON_USEDEP}]
-	dev-embedded/esptool
-	dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
-	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
-	dev-embedded/esp-idf-panic-decoder[${PYTHON_USEDEP}]
-	dev-embedded/esp-idf-size[${PYTHON_USEDEP}]
-	dev-embedded/freertos-gdb[${PYTHON_USEDEP}]
-	dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
-	sys-libs/zlib
-"
-
-RESTRICT="strip"
-
-QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
-QA_PRESTRIPPED="opt/*"
-
-PATCHES=(
-	"${FILESDIR}/allow-system-install-${PN}-5.1.2.patch"
-)
-
-install_tool() {
-	eshopts_push -s globstar
-
-	into /opt/${1}
-
-	if [[ -d "../${1}/lib" ]]; then
-		if stat *.so &>/dev/null; then
-		for i in ../${1}/lib/**/*.so*; do
-			dolib.so ${i}
-		done
-		fi
-
-		if stat *.a &>/dev/null; then
-		for i in ../${1}/lib/**/*.a*; do
-			dolib.a ${i}
-		done
-		fi
-
-		insinto /opt/${1}/lib
-		doins -r ../${1}/lib/*
-	fi
-
-	exeinto /opt/${1}/bin
-	doexe ../${1}/bin/*
-	(
-	cd ../${1}
-	for i in libexec/**/*; do
-		exeinto /opt/${1}/$(dirname ${i})
-		if [[ -x "${i}" && ! -d "${i}" ]]; then
-			doexe ${i}
-		fi
-	done
-
-	if [[ -d "include" ]]; then
-		insinto /opt/${1}
-		doins -r include
-	fi
-
-	if [[ -d "share" ]]; then
-		insinto /opt/${1}
-		doins -r share
-	fi
-	)
-
-	(
-		cd "${D}"/opt/${1}/bin/ || die
-		for i in *; do
-			dodir /opt/bin
-			cd "${D}"/opt/bin || die
-			dosym ../${1}/bin/${i} /opt/bin/${i}
-		done
-	)
-
-	eshopts_pop
-}
-
-src_install() {
-	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
-
-	if use riscv32; then
-		install_tool riscv32-esp-elf
-		install_tool riscv32-esp-elf/riscv32-esp-elf
-	fi
-
-	install_tool openocd-esp32
-
-	# Remove unsupported python versions
-	rm "${WORKDIR}"/xtensa-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{8..10} || die
-	install_tool xtensa-esp-elf-gdb
-	if use riscv32; then
-		install_tool riscv32-esp-elf-gdb
-	fi
-
-	echo "IDF_PATH=/usr/share/${PN}" > 99esp-idf || die
-	doenvd 99esp-idf
-
-	insinto /usr/share/${PN}
-
-	rm -r .git || die
-	find . -name ".git" -exec rm -rf {} \; || die
-	doins -r .
-}


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2024-09-05 10:43 David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2024-09-05 10:43 UTC (permalink / raw
  To: gentoo-commits

commit:     7e252486bafb8fc3f6c0719e93978a65e24f6560
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Thu Sep  5 10:43:40 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Sep  5 10:43:40 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7e252486

dev-embedded/esp-idf: add patch

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/esp-idf-5.3.1.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-embedded/esp-idf/esp-idf-5.3.1.ebuild b/dev-embedded/esp-idf/esp-idf-5.3.1.ebuild
index fba617de1..71b9fe3b4 100644
--- a/dev-embedded/esp-idf/esp-idf-5.3.1.ebuild
+++ b/dev-embedded/esp-idf/esp-idf-5.3.1.ebuild
@@ -63,6 +63,7 @@ QA_PRESTRIPPED="opt/*"
 
 PATCHES=(
 	"${FILESDIR}/allow-system-install-${PN}-5.3.patch"
+	"${FILESDIR}/${PN}-5.3-fix-cpp-build-eth.patch"
 )
 
 install_tool() {


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2024-09-05 12:08 David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2024-09-05 12:08 UTC (permalink / raw
  To: gentoo-commits

commit:     c1e1362b56bf1bfde0f9612de201414a980dd6b9
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Thu Sep  5 12:07:54 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Sep  5 12:07:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c1e1362b

dev-embedded/esp-idf: add version.txt with current esp-idf version

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/esp-idf-5.3.1.ebuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dev-embedded/esp-idf/esp-idf-5.3.1.ebuild b/dev-embedded/esp-idf/esp-idf-5.3.1.ebuild
index 71b9fe3b4..43246f0d9 100644
--- a/dev-embedded/esp-idf/esp-idf-5.3.1.ebuild
+++ b/dev-embedded/esp-idf/esp-idf-5.3.1.ebuild
@@ -123,6 +123,8 @@ install_tool() {
 }
 
 src_install() {
+	echo "v${PV}" > version.txt || die
+
 	newbin - idf <<-EOF
 	#!/bin/sh
 


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2024-09-19 13:49 David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2024-09-19 13:49 UTC (permalink / raw
  To: gentoo-commits

commit:     671d559cb4cae89ceb4be5f2989027912ce1ad8e
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Thu Sep 19 13:48:47 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Sep 19 13:48:47 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=671d559c

dev-embedded/esp-idf: add missing RDEPEND

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/{esp-idf-5.3.1.ebuild => esp-idf-5.3.1-r1.ebuild} | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-embedded/esp-idf/esp-idf-5.3.1.ebuild b/dev-embedded/esp-idf/esp-idf-5.3.1-r1.ebuild
similarity index 98%
rename from dev-embedded/esp-idf/esp-idf-5.3.1.ebuild
rename to dev-embedded/esp-idf/esp-idf-5.3.1-r1.ebuild
index 43246f0d9..f13f4efaa 100644
--- a/dev-embedded/esp-idf/esp-idf-5.3.1.ebuild
+++ b/dev-embedded/esp-idf/esp-idf-5.3.1-r1.ebuild
@@ -49,6 +49,7 @@ RDEPEND="
 	dev-embedded/esptool
 	dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
 	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
+	dev-embedded/esp-idf-nvs-partition-gen[${PYTHON_USEDEP}]
 	dev-embedded/esp-idf-panic-decoder[${PYTHON_USEDEP}]
 	dev-embedded/esp-idf-size[${PYTHON_USEDEP}]
 	dev-embedded/freertos-gdb[${PYTHON_USEDEP}]


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/
@ 2024-10-07 10:02 David Roman
  0 siblings, 0 replies; 29+ messages in thread
From: David Roman @ 2024-10-07 10:02 UTC (permalink / raw
  To: gentoo-commits

commit:     5e35aab15f363d24f84ced03c0a5b58483e57310
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Mon Oct  7 10:02:05 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Oct  7 10:02:05 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5e35aab1

dev-embedded/esp-idf: drop 5.3-r1

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/Manifest              |   1 -
 dev-embedded/esp-idf/esp-idf-5.3-r1.ebuild | 159 -----------------------------
 2 files changed, 160 deletions(-)

diff --git a/dev-embedded/esp-idf/Manifest b/dev-embedded/esp-idf/Manifest
index 5cee93b88..2d56b030b 100644
--- a/dev-embedded/esp-idf/Manifest
+++ b/dev-embedded/esp-idf/Manifest
@@ -1,5 +1,4 @@
 DIST esp-idf-5.3.1.zip 1695394487 BLAKE2B 97168a8ab5c482a86588e87d42caafb5bbeb4192966294fa56cb237883490b86746571ba6d00b6306b06b3ede8e7b041726e17fe09e2a7e747021e580e575a10 SHA512 c82517801628a6f5d74a5d22a0cc1320226cac6a0d79120273e500b8e8cfbc49e4129b3dfa7eda45f94a9220221b7894ef77e208aeab17d3d452bf06a3419678
-DIST esp-idf-5.3.zip 1617510710 BLAKE2B 423c993efc32af9bd4b25509439c94ae06d474a20db70fc14b2dffaeb476aa647ff0f774cd58b5872de3e4c1768ce8b9e5dd7a99c6d36cba54cd7fea2eb2f5fa SHA512 3a5a7668a7c1419cfd0ead032a856d55a99e70d306c7db6bd3301d1349a128ed95a220c9a5adf310dd749e70ba460acb0c502d64b54d54e7a082422885c2b619
 DIST openocd-esp32-linux-amd64-0.12.0-esp32-20240318.tar.gz 2252682 BLAKE2B fbec39f77c7e2d423eacaf45d0f8c3373e24c65c3d5e2db0edf5b952945edcc838dd41f8c852ff0b2104dce62184b3b0803014e53d8dd4dcf6427955ec18f194 SHA512 5acb5d90740ea8b54be57fe80956c2bbcc6bb3c48dc4969043a7d49da7e9135ede4add8bdf8f7d772681867aca1faa72594fa8f70e7e8d2bc7ed93128ff1ec8d
 DIST riscv32-esp-elf-13.2.0_20240530-x86_64-linux-gnu.tar.xz 145544808 BLAKE2B b55513bf4cd6526a438aa5460806f0886438a52932631f5d142bc9c5f0b0affcda7a830b2f9b13c83ed356a4cebd7e3e0c0b5c29e718e880d312b6aa2f61c5b2 SHA512 fb4c868877bd9e68bedceb816c1aeec1736e2876bc1adf3138d59b73f0e9b0fb14eb826c885749b6070e6cf1e8e794f0a53c85bf5c5c896d8b3a6c7e6d0d821b
 DIST riscv32-esp-elf-gdb-14.2_20240403-x86_64-linux-gnu.tar.gz 30707431 BLAKE2B 99809fbd5abe99c4890fbf4edd964ee53bc9269b9bb15f487316d0092a9d7aae9d3f9f61f7597f5721aec4f95813908c8ce6a3f6f97cd453d1610a5caa7dc42e SHA512 1ad4854c53f435b08d634f8e5e1a9169037745684b13972876176483badc7ebf5a6c38109e7ac5c3f484df76e82bf790244661ac70b1e52dd3b2fc8a4956e5ff

diff --git a/dev-embedded/esp-idf/esp-idf-5.3-r1.ebuild b/dev-embedded/esp-idf/esp-idf-5.3-r1.ebuild
deleted file mode 100644
index 7a658ac3c..000000000
--- a/dev-embedded/esp-idf/esp-idf-5.3-r1.ebuild
+++ /dev/null
@@ -1,159 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{11,12} )
-
-VER="13.2.0_20240530"
-GDB_VER="14.2_20240403"
-
-CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-${VER}"
-
-inherit estack python-r1
-
-DESCRIPTION="Espressif IoT Development Framework"
-HOMEPAGE="https://www.espressif.com/"
-
-# See https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.3.txt for information about version dependencies
-
-SRC_URI="https://dl.espressif.com/github_assets/espressif/${PN}/releases/download/v${PV}/${PN}-v${PV}.zip -> ${P}.zip
-	https://github.com/espressif/openocd-esp32/releases/download/v0.12.0-esp32-20240318/openocd-esp32-linux-amd64-0.12.0-esp32-20240318.tar.gz
-	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v${GDB_VER}/xtensa-esp-elf-gdb-${GDB_VER}-x86_64-linux-gnu.tar.gz"
-SRC_URI+=" ${CROSSTOOL_URL}/xtensa-esp-elf-${VER}-x86_64-linux-gnu.tar.xz"
-SRC_URI+=" riscv32? (
-	${CROSSTOOL_URL}/riscv32-esp-elf-${VER}-x86_64-linux-gnu.tar.xz
-	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v${GDB_VER}/riscv32-esp-elf-gdb-${GDB_VER}-x86_64-linux-gnu.tar.gz
-)"
-
-S="${WORKDIR}/${PN}-v${PV}"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-IUSE="riscv32"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-BDEPEND="app-arch/unzip"
-RDEPEND="
-	${PYTHON_DEPS}
-
-	dev-libs/libusb:1
-	dev-python/click[${PYTHON_USEDEP}]
-	dev-python/pyserial[${PYTHON_USEDEP}]
-	dev-python/cryptography[${PYTHON_USEDEP}]
-	dev-python/pyparsing[${PYTHON_USEDEP}]
-	dev-python/pyelftools[${PYTHON_USEDEP}]
-	dev-embedded/esp-coredump[${PYTHON_USEDEP}]
-	dev-embedded/esptool
-	dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
-	dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
-	dev-embedded/esp-idf-panic-decoder[${PYTHON_USEDEP}]
-	dev-embedded/esp-idf-size[${PYTHON_USEDEP}]
-	dev-embedded/freertos-gdb[${PYTHON_USEDEP}]
-	dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
-	sys-libs/zlib
-"
-
-RESTRICT="strip"
-
-QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
-QA_PRESTRIPPED="opt/*"
-
-PATCHES=(
-	"${FILESDIR}/allow-system-install-${PN}-5.3.patch"
-	"${FILESDIR}/${P}-fix-cpp-build-eth.patch"
-)
-
-install_tool() {
-	eshopts_push -s globstar
-
-	into /opt/${1}
-
-	if [[ -d "../${1}/lib" ]]; then
-		if stat *.so &>/dev/null; then
-		for i in ../${1}/lib/**/*.so*; do
-			dolib.so ${i}
-		done
-		fi
-
-		if stat *.a &>/dev/null; then
-		for i in ../${1}/lib/**/*.a*; do
-			dolib.a ${i}
-		done
-		fi
-
-		insinto /opt/${1}/lib
-		doins -r ../${1}/lib/*
-	fi
-
-	exeinto /opt/${1}/bin
-	doexe ../${1}/bin/*
-	(
-	cd ../${1}
-	for i in libexec/**/*; do
-		exeinto /opt/${1}/$(dirname ${i})
-		if [[ -x "${i}" && ! -d "${i}" ]]; then
-			doexe ${i}
-		fi
-	done
-
-	if [[ -d "include" ]]; then
-		insinto /opt/${1}
-		doins -r include
-	fi
-
-	if [[ -d "share" ]]; then
-		insinto /opt/${1}
-		doins -r share
-	fi
-	)
-
-	(
-		cd "${D}"/opt/${1}/bin/ || die
-		for i in *; do
-			dodir /opt/bin
-			cd "${D}"/opt/bin || die
-			dosym ../${1}/bin/${i} /opt/bin/${i}
-		done
-	)
-
-	eshopts_pop
-}
-
-src_install() {
-	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
-
-	if use riscv32; then
-		install_tool riscv32-esp-elf
-		install_tool riscv32-esp-elf/riscv32-esp-elf
-	fi
-
-	install_tool openocd-esp32
-
-	# Remove unsupported python versions
-	rm "${WORKDIR}"/xtensa-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{8..10} || die
-	install_tool xtensa-esp-elf-gdb
-	if use riscv32; then
-		install_tool riscv32-esp-elf-gdb
-	fi
-
-	echo "IDF_PATH=/usr/share/${PN}" > 99esp-idf || die
-	doenvd 99esp-idf
-
-	insinto /usr/share/${PN}
-
-	rm -r .git || die
-	find . -name ".git" -exec rm -rf {} \; || die
-	doins -r .
-}


^ permalink raw reply related	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2024-10-07 10:02 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-19 15:43 [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/ David Roman
  -- strict thread matches above, loose matches on Subject: below --
2024-10-07 10:02 David Roman
2024-09-19 13:49 David Roman
2024-09-05 12:08 David Roman
2024-09-05 10:43 David Roman
2024-09-05 10:38 David Roman
2024-09-05 10:38 David Roman
2024-09-05 10:38 David Roman
2024-07-25  9:20 David Roman
2024-07-04  3:51 Lucio Sauer
2024-06-19  7:15 Florian Schmaus
2024-06-19  7:15 Florian Schmaus
2024-06-04 12:26 [gentoo-commits] repo/proj/guru:master " David Roman
2024-06-04  9:18 ` [gentoo-commits] repo/proj/guru:dev " David Roman
2024-06-04 12:26 [gentoo-commits] repo/proj/guru:master " David Roman
2024-06-04  9:18 ` [gentoo-commits] repo/proj/guru:dev " David Roman
2024-06-04  9:18 David Roman
2024-05-08 12:34 [gentoo-commits] repo/proj/guru:master " David Roman
2024-05-08 12:27 ` [gentoo-commits] repo/proj/guru:dev " David Roman
2024-04-16  7:05 Florian Schmaus
2024-04-16  7:05 Florian Schmaus
2024-03-14 10:19 [gentoo-commits] repo/proj/guru:master " David Roman
2024-03-14  9:40 ` [gentoo-commits] repo/proj/guru:dev " David Roman
2024-02-19 15:43 David Roman
2023-11-20 14:14 [gentoo-commits] repo/proj/guru:master " David Roman
2023-11-20 14:05 ` [gentoo-commits] repo/proj/guru:dev " David Roman
2023-11-20 14:14 [gentoo-commits] repo/proj/guru:master " David Roman
2023-11-20 13:58 ` [gentoo-commits] repo/proj/guru:dev " David Roman
2023-09-04 10:54 David Roman
2023-07-25 14:57 David Roman
2023-07-17 23:00 Anna Vyalkova
2023-07-05 14:49 David Roman
2023-07-05 13:44 David Roman
2022-05-28 10:17 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2022-05-28 10:17 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2022-05-25  8:24 David Roman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox