diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 11:50:53 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 11:50:53 -0500 |
| commit | 290aebdea65a02557706eaeda477fef0437b6a48 (patch) | |
| tree | f87a939169a508a2e943570501b64cc16b411cda /dev-lang/micropython | |
| parent | 6783ddcd4b73d9ce586a71770caed352bec93b16 (diff) | |
| download | baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.gz baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.xz baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.zip | |
Adding metadata
Diffstat (limited to 'dev-lang/micropython')
| -rw-r--r-- | dev-lang/micropython/Manifest | 2 | ||||
| -rw-r--r-- | dev-lang/micropython/files/micropython-1.23.0-gcc13-build-fix.patch | 11 | ||||
| -rw-r--r-- | dev-lang/micropython/metadata.xml | 20 | ||||
| -rw-r--r-- | dev-lang/micropython/micropython-1.23.0.ebuild | 82 | ||||
| -rw-r--r-- | dev-lang/micropython/micropython-1.25.0.ebuild | 107 |
5 files changed, 0 insertions, 222 deletions
diff --git a/dev-lang/micropython/Manifest b/dev-lang/micropython/Manifest deleted file mode 100644 index c5d4867b2d7b..000000000000 --- a/dev-lang/micropython/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST micropython-1.23.0.tar.xz 85748224 BLAKE2B 3fca138bbe9a676c671812625ac374e82c3c91bb41db32557747ea4d28941de92be80bbf2e642f9094427dbcf6ee285c63ddad66510287074edb716017599384 SHA512 16f065bbbed1469587597193e7131ed9278ca2b22c8614098b5c79060f853db2a5a38ffe85688126cee86a5cb110d74840f50be4b009a687d7d310b54de2b2b5 -DIST micropython-1.25.0.tar.xz 109072312 BLAKE2B ac72d26fc2550bc7411749ba36d67a9cdc8d712c1a9789fd8ff162c651217b2e2417edbec0063285a982dc3f42955a3a324acc6fcb7e8e463f6fe5f47032fbbb SHA512 c20b2357d7bfda3bafbff73e7c991db14c2aa5041a3caa8f4c2e092e54f6b15953c3aa2f67129e7271efda180b69ebe8609101fce5f569d8470af900be560935 diff --git a/dev-lang/micropython/files/micropython-1.23.0-gcc13-build-fix.patch b/dev-lang/micropython/files/micropython-1.23.0-gcc13-build-fix.patch deleted file mode 100644 index bf418bcd7421..000000000000 --- a/dev-lang/micropython/files/micropython-1.23.0-gcc13-build-fix.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/py/mkrules.mk 2024-06-09 04:22:17.760512031 +1000 -+++ b/py/mkrules.mk 2024-06-09 21:02:24.926427912 +1000 -@@ -234,9 +234,6 @@ - # we may want to compile using Thumb, but link with non-Thumb libc. - $(Q)$(CC) -o $@ $^ $(LIB) $(LDFLAGS) - ifndef DEBUG --ifdef STRIP -- $(Q)$(STRIP) $(STRIPFLAGS_EXTRA) $@ --endif - endif - $(Q)$(SIZE) $$(find $(BUILD) -path "$(BUILD)/build/frozen*.o") $@ diff --git a/dev-lang/micropython/metadata.xml b/dev-lang/micropython/metadata.xml deleted file mode 100644 index 41385c6394bd..000000000000 --- a/dev-lang/micropython/metadata.xml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <longdescription lang="en"> -The MicroPython project aims to put an implementation of Python 3.x on -microcontrollers and small embedded systems. -MicroPython implements the entire Python 3.4 syntax (including exceptions, -with, yield from, etc., and additionally async/await keywords from Python 3.5). -The following core datatypes are provided: str (including basic Unicode -support), bytes, bytearray, tuple, list, dict, set, frozenset, array.array, -collections.namedtuple, classes and instances. Builtin modules include sys, -time, and struct, etc. Select ports have support for _thread module -(multithreading). Note that only a subset of Python 3 functionality is -implemented for the data types and modules. -MicroPython can execute scripts in textual source form or from precompiled -bytecode, in both cases either from an on-device filesystem or "frozen" into -the MicroPython executable. - </longdescription> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-lang/micropython/micropython-1.23.0.ebuild b/dev-lang/micropython/micropython-1.23.0.ebuild deleted file mode 100644 index 6d07e5dbd032..000000000000 --- a/dev-lang/micropython/micropython-1.23.0.ebuild +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit toolchain-funcs - -DESCRIPTION="Python implementation for microcontrollers" -HOMEPAGE="https://micropython.org https://github.com/micropython/micropython" -SRC_URI="https://micropython.org/resources/source/${P}.tar.xz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" -IUSE="test" -RESTRICT="!test? ( test )" - -DEPEND=" - dev-libs/libffi:= - virtual/pkgconfig -" - -PATCHES=( - "${FILESDIR}/${P}-gcc13-build-fix.patch" -) - -src_prepare() { - default - - tc-ld-is-mold && { - # mold doesn't support --cref, bug #937354 - find . -name Makefile -exec sed -r \ - -e 's:map,--cref\s:map :g' \ - -e 's:\s(-Wl,)?--cref(\s|$): :g' \ - -i {} + || die - } - - cd ports/unix || die - - # 1) don't die on compiler warning - # 2) remove /usr/local prefix references in favour of /usr - # 3) enforce our CFLAGS - # 4) enforce our LDFLAGS - sed -e 's#-Werror##g;' \ - -e 's#\/usr\/local#\/usr#g;' \ - -e "s#^CFLAGS = \(.*\)#CFLAGS = \1 ${CFLAGS}#g" \ - -e "s#^LDFLAGS = \(.*\)#LDFLAGS = \1 ${LDFLAGS}#g" \ - -i Makefile || die "can't patch Makefile" -} - -src_compile() { - # Build the cross-compiler first. Build fails without this. - einfo "" - einfo "Building the mpy-crosscompiler." - einfo "" - cd "${S}/mpy-cross" || die - emake CC="$(tc-getCC)" - - # Finally, build the unix port. - einfo "" - einfo "Building the micropython unix port." - einfo "" - cd "${S}/ports/unix" || die - emake CC="$(tc-getCC)" -} - -src_test() { - cd ports/unix || die - emake CC="$(tc-getCC)" test -} - -src_install() { - pushd ports/unix > /dev/null || die - emake CC="$(tc-getCC)" DESTDIR="${D}" install - popd > /dev/null || die - - # remove .git files - find tools -type f -name '.git*' -exec rm {} \; || die - - dodoc -r tools - einstalldocs -} diff --git a/dev-lang/micropython/micropython-1.25.0.ebuild b/dev-lang/micropython/micropython-1.25.0.ebuild deleted file mode 100644 index e556612f830e..000000000000 --- a/dev-lang/micropython/micropython-1.25.0.ebuild +++ /dev/null @@ -1,107 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) - -inherit toolchain-funcs python-any-r1 - -DESCRIPTION="Python implementation for microcontrollers" -HOMEPAGE="https://micropython.org https://github.com/micropython/micropython" -SRC_URI="https://micropython.org/resources/source/${P}.tar.xz" - -LICENSE="Apache-2.0 BSD BSD-1 BSD-4 GPL-2 GPL-2+ ISC LGPL-3 MIT OFL-1.1 ZLIB" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" -IUSE="test" -RESTRICT="!test? ( test )" - -DEPEND="dev-libs/libffi:=" -RDEPEND="${DEPEND}" -BDEPEND=" - ${PYTHON_DEPS} - virtual/pkgconfig -" - -src_prepare() { - default - - tc-ld-is-mold && { - # mold doesn't support --cref, bug #937354 - find . -name Makefile -exec sed -r \ - -e 's:map,--cref\s:map :g' \ - -e 's:\s(-Wl,)?--cref(\s|$): :g' \ - -i {} + || die - } - - micropython_skip_test() { - local file - for file in "$@" ; do - cat <<-EOF > "${file}" || die - print("SKIP") - raise SystemExit - EOF - done - } - - # Fails with minor output differences but also seems sensitive - # to timeout. - micropython_skip_test tests/extmod/select_poll_fd.py - # These fail with Python 3.14 - micropython_skip_test tests/basics/try_finally_break{,{2..5}}.py - micropython_skip_test tests/basics/try_finally_return{,{2..5}}.py - micropython_skip_test tests/float/math_fun{,_special}.py - micropython_skip_test tests/float/complex1.py - - # Both ports/unix and mpy-cross need their Makefile changed. - # 1) don't die on compiler warning - # 2) remove /usr/local prefix references in favour of /usr - # 3) enforce our CFLAGS (Only change the first `CFLAGS +=`) - # 4) enforce our LDFLAGS (Only change the first `LDFLAGS +=`) - sed -e 's#-Werror##g;' \ - -e "s#/usr/local#${EPREFIX}#g" \ - -e "0,/^CFLAGS +=/{s#^CFLAGS += \(.*\)#CFLAGS += \1 ${CFLAGS}#g}" \ - -e "0,/^LDFLAGS +=/{s#^LDFLAGS += \(.*\)#LDFLAGS += \1 ${LDFLAGS}#g}" \ - -i ports/unix/Makefile mpy-cross/Makefile || die "can't patch Makefile" -} - -src_compile() { - # Build the cross-compiler first. Build fails without this. - einfo "" - einfo "Building the mpy-crosscompiler." - einfo "" - emake V=1 -C mpy-cross PYTHON="${EPYTHON}" CC="$(tc-getCC)" - - # Finally, build the unix port. - einfo "" - einfo "Building the micropython unix port." - 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 PYTHON="${EPYTHON}" CC="$(tc-getCC)" STRIP= -} - -src_test() { - # TODO: Switch this to using run-tests.py so we get better output - # on failures and can skip tests using regex? - emake V=1 -C ports/unix \ - PYTHON="${EPYTHON}" \ - MICROPY_CPYTHON3="${EPYTHON}" \ - CC="$(tc-getCC)" \ - test -} - -src_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 - - dodoc -r tools - einstalldocs -} |
