public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/micropython/
Date: Fri, 13 Jun 2025 00:09:20 +0000 (UTC)	[thread overview]
Message-ID: <1749773312.ea02deeec1ffec0e391c400cf458939ebdf41d9c.sam@gentoo> (raw)

commit:     ea02deeec1ffec0e391c400cf458939ebdf41d9c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 12 23:45:35 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jun 13 00:08:32 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea02deee

dev-lang/micropython: respect python-any-r1 more

The Makefiles call $(PYTHON) in places which defaults to 'python3' and
tests have their own variable.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-lang/micropython/micropython-1.25.0.ebuild | 24 ++++++++++++++++--------
 1 file changed, 16 insertions(+), 8 deletions(-)

diff --git a/dev-lang/micropython/micropython-1.25.0.ebuild b/dev-lang/micropython/micropython-1.25.0.ebuild
index 2632c621e07e..c6f41ebfd277 100644
--- a/dev-lang/micropython/micropython-1.25.0.ebuild
+++ b/dev-lang/micropython/micropython-1.25.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{9..13} )
+PYTHON_COMPAT=( python3_{11..13} )
 
 inherit toolchain-funcs python-any-r1
 
@@ -17,10 +17,10 @@ KEYWORDS="~amd64 ~arm64 ~x86"
 IUSE="test"
 RESTRICT="!test? ( test )"
 
-DEPEND="
-	dev-libs/libffi:=
-	virtual/pkgconfig
+DEPEND="dev-libs/libffi:="
+BDEPEND="
 	${PYTHON_DEPS}
+	virtual/pkgconfig
 "
 
 src_prepare() {
@@ -50,7 +50,7 @@ src_compile() {
 	einfo ""
 	einfo "Building the mpy-crosscompiler."
 	einfo ""
-	emake V=1 -C mpy-cross CC="$(tc-getCC)"
+	emake V=1 -C mpy-cross PYTHON="${EPYTHON}" CC="$(tc-getCC)"
 
 	# Finally, build the unix port.
 	einfo ""
@@ -58,15 +58,23 @@ src_compile() {
 	einfo ""
 	# Empty `STRIP=` leaves symbols + debug info intact. Let portage handle it.
 	# https://github.com/micropython/micropython/tree/master/ports/unix/README.md
-	emake V=1 -C ports/unix CC="$(tc-getCC)" STRIP=
+	emake V=1 -C ports/unix PYTHON="${EPYTHON}" CC="$(tc-getCC)" STRIP=
 }
 
 src_test() {
-	emake V=1 -C ports/unix CC="$(tc-getCC)" test
+	emake V=1 -C ports/unix \
+		PYTHON="${EPYTHON}" \
+		MICROPY_CPYTHON3="${EPYTHON}" \
+		CC="$(tc-getCC)" \
+		test
 }
 
 src_install() {
-	emake V=1 -C ports/unix CC="$(tc-getCC)" DESTDIR="${D}" install
+	emake V=1 -C ports/unix \
+		PYTHON="${EPYTHON}" \
+		CC="$(tc-getCC)" \
+		DESTDIR="${D}" \
+		install
 
 	# remove .git files
 	find tools -type f -name '.git*' -delete || die


             reply	other threads:[~2025-06-13  0:09 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-13  0:09 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-06-22  9:47 [gentoo-commits] repo/gentoo:master commit in: dev-lang/micropython/ Sam James
2025-06-13  0:11 Sam James
2025-06-13  0:11 Sam James
2025-06-13  0:09 Sam James
2025-06-13  0:09 Sam James
2025-06-13  0:09 Sam James
2025-03-21 18:32 Arthur Zamarin
2024-07-26  7:40 Joonas Niilola
2022-11-18 15:06 Arthur Zamarin
2021-07-10 18:54 Sam James
2021-06-16 11:14 Michał Górny
2020-11-16 22:53 Sergei Trofimovich
2020-06-04 15:36 Patrice Clement
2020-06-04  7:03 Patrice Clement
2020-06-03 20:54 Patrice Clement
2020-05-04  9:45 Michał Górny
2019-12-22 15:24 Patrice Clement
2019-11-27 23:29 Patrice Clement

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1749773312.ea02deeec1ffec0e391c400cf458939ebdf41d9c.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox