diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-07 12:37:21 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-07 12:37:21 +0100 |
commit | b8c7370a682e4e29cda623222d17a790c01c3642 (patch) | |
tree | f6caa14689bd00a5760eadaa381ff41e50ef3c1b /dev-lang/micropython | |
parent | 8a4997a7e2d1e36c089d4d76935b5a902d98d3d0 (diff) |
gentoo auto-resync : 07:08:2024 - 12:37:20
Diffstat (limited to 'dev-lang/micropython')
-rw-r--r-- | dev-lang/micropython/Manifest | 3 | ||||
-rw-r--r-- | dev-lang/micropython/files/micropython-1.23.0-gcc13-build-fix.patch | 11 | ||||
-rw-r--r-- | dev-lang/micropython/micropython-1.23.0.ebuild | 73 |
3 files changed, 87 insertions, 0 deletions
diff --git a/dev-lang/micropython/Manifest b/dev-lang/micropython/Manifest index b9a9124ce48b..2c20359ab2fb 100644 --- a/dev-lang/micropython/Manifest +++ b/dev-lang/micropython/Manifest @@ -1,6 +1,9 @@ AUX micropython-1.17-exclude-float-parse-tests.patch 525 BLAKE2B f9a3b7c8f625edcac31be6df9dd7936e9f9099995875e55882206241a24c252148b64ec726643d1700ad59d615cabdaa69377d2d303e4572dc2f600255c76930 SHA512 e5c67b461fd132b71ca87325cb4a4fe5608b18d6b1e058746d87d39832c92bcc9673366755292d6cb51fd2770a2ddea0688bcdd7f2052a2c2ee2f180e9b63c69 AUX micropython-1.17-gcc13-build-fix.patch 1826 BLAKE2B 3212ce3d7ef51f9163a143b1a3727770a6c9b049e7a4b386117366af7cc451ac1740cf217772f6b9a6fe531ec9c610bd61b143e428fad19cccf96c295e58b97d SHA512 540a38b845f7e457fa19e8645f62bc1bd7972e29d5414dba76d8f72d9c4279e49f906b04e7e96c2f61a60da9cac4a9d5c2ca688a436376e8c203fe0959249b25 AUX micropython-1.17-prevent-stripping.patch 461 BLAKE2B 9daee505d5c446a3a6756336cfc5fb016053f36f5f567cf35aa6ab9a1b794a28fd92b81a27ffc2ce077a75c422c9b2a957c417b561edcf85ffa5653e1eddec41 SHA512 0cd5a8c499552b0728242af531406e0d26d91f560d7d4b38ea6fd0bc0b43639e77af9e56b6b89cba5d5661131357fa1a714c3fe734e3ab59f60fc63258d00c4c +AUX micropython-1.23.0-gcc13-build-fix.patch 387 BLAKE2B c33adce39efba0e1acdc3dee8dac3438eac15f12cd79cbb5b3c708fc741f42ff26a477b62cabd71f993fdf29cc0e5dc92bd10f7543c6b93a2b985a6061eebc7e SHA512 29cee711ea5c70fbe6707074fcbc71fac4cabd69939070879bca7f2480d052e136e10542df54a9aa6371479350397518697f42fe56db26ca594ed10dc1410e98 DIST micropython-1.17.tar.xz 56606868 BLAKE2B a6338d173de646764c1573ebabdb9818746a479fd2dd618f9be9955881e3829c4d89da4602934e71655734ec1c6f2150a6ac2c54a5fed9bee998905a00d5c6ea SHA512 8074214040e35ae1ca99721ec442f4cef70fa03380b7662016c55cb3acff9178fc54140c0d818c9581389b4daaade142ecf75b65a2919c666a50255423a39a54 +DIST micropython-1.23.0.tar.xz 85748224 BLAKE2B 3fca138bbe9a676c671812625ac374e82c3c91bb41db32557747ea4d28941de92be80bbf2e642f9094427dbcf6ee285c63ddad66510287074edb716017599384 SHA512 16f065bbbed1469587597193e7131ed9278ca2b22c8614098b5c79060f853db2a5a38ffe85688126cee86a5cb110d74840f50be4b009a687d7d310b54de2b2b5 EBUILD micropython-1.17.ebuild 1429 BLAKE2B 9779c5a596e49068b07a91f635928a842d71927c389ca55403040c84dc6d02510948975112688d4924945bf7c119fc20fba1caf72f4b13ba46b0f7aade5f6ef9 SHA512 f2e43607d1abee316ddb8ea80ffcee828eb9785285574696266c55c3cfa0f5872f731232ee14158dc55970bfe9d9d72a50b4f905558465effc7fe440e558bf6e +EBUILD micropython-1.23.0.ebuild 1591 BLAKE2B bbf3f6d9de6e09eaceee4320a60f957011dfc5d4fad55f4565f442c9ebccade3a50b3c8acf198129c37c260d59a7654a0224dfdd807c65bea15bc65f800b7c5f SHA512 cfa9bc6fcbe33c1fcff1d36f6b73a1f53ce44c928f2754d2db339a86d1528b316ce62b3555828ead20038a00b90844cc1175b211d37a4810a929a9c62ab17f9e MISC metadata.xml 1163 BLAKE2B 6edfd7148dc0686e3cfc81e429f8a1643eab9fba88bdf9264adf737ea03761a5e15a3b4994ba901d9655fa419d27ea29adbea7e6fb5ac0d7dfebd1c0115ea885 SHA512 5e658e8b5e364741a4d020f8331effeed21dd4508f6048bb6c192f3721e91cba503846d741d56886714f462f7f68d21e79e9989d46c858ffb71584c7d6ca7c00 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 new file mode 100644 index 000000000000..bf418bcd7421 --- /dev/null +++ b/dev-lang/micropython/files/micropython-1.23.0-gcc13-build-fix.patch @@ -0,0 +1,11 @@ +--- 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/micropython-1.23.0.ebuild b/dev-lang/micropython/micropython-1.23.0.ebuild new file mode 100644 index 000000000000..a35b07da8c2f --- /dev/null +++ b/dev-lang/micropython/micropython-1.23.0.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2024 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 + 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 +} |