From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1644652-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 4D5B515817D
	for <garchives@archives.gentoo.org>; Wed, 19 Jun 2024 07:15:33 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B3281E2A34;
	Wed, 19 Jun 2024 07:15:31 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 95C5DE2A34
	for <gentoo-commits@lists.gentoo.org>; Wed, 19 Jun 2024 07:15:31 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 4FD4E33BDF5
	for <gentoo-commits@lists.gentoo.org>; Wed, 19 Jun 2024 07:15:30 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id D30C11D2F
	for <gentoo-commits@lists.gentoo.org>; Wed, 19 Jun 2024 07:15:27 +0000 (UTC)
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" <flow@gentoo.org>
Message-ID: <1718781296.b8d29619de43a844d6b94f313cbf1c94fd01c6f8.flow@gentoo>
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-embedded/esp-idf/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: dev-embedded/esp-idf/esp-idf-5.2.2.ebuild
X-VCS-Directories: dev-embedded/esp-idf/
X-VCS-Committer: flow
X-VCS-Committer-Name: Florian Schmaus
X-VCS-Revision: b8d29619de43a844d6b94f313cbf1c94fd01c6f8
X-VCS-Branch: master
Date: Wed, 19 Jun 2024 07:15:27 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 3e45852c-d63a-454c-90a8-9a6563f97450
X-Archives-Hash: 2a52dc5f6f693c35c15f40c14ab3b5a6
Message-ID: <20240619071527.N4NhrbgKbyj-zfbAtpegGUxKuxBUQBTWbh6At9XJYxM@z>

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