Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/micropython/files/, dev-lang/micropython/
Date: Mon, 29 Aug 2022 18:39:57
Message-Id: 1661798348.317434e07e6f785b6857d504cbd6225c688f1c21.asturm@gentoo
1 commit: 317434e07e6f785b6857d504cbd6225c688f1c21
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 28 14:44:54 2022 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 29 18:39:08 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=317434e0
7
8 dev-lang/micropython: drop 1.11-r1, EAPI-6--
9
10 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
11
12 dev-lang/micropython/Manifest | 1 -
13 ...icropython-1.11-exclude-float-parse-tests.patch | 12 ----
14 .../files/micropython-1.11-prevent-stripping.patch | 26 ---------
15 dev-lang/micropython/micropython-1.11-r1.ebuild | 65 ----------------------
16 4 files changed, 104 deletions(-)
17
18 diff --git a/dev-lang/micropython/Manifest b/dev-lang/micropython/Manifest
19 index e6e1460bf548..74304d0b18d1 100644
20 --- a/dev-lang/micropython/Manifest
21 +++ b/dev-lang/micropython/Manifest
22 @@ -1,2 +1 @@
23 -DIST micropython-1.11.tar.gz 23010708 BLAKE2B 8deb29f2a27b8299f62c8c3d332654889e610ddc6854dc38c6cf7504c89f2f9cbbacccdc2d8e471d96b8bb28bbb920fe7ec1b8fd49b14209924262f54687c3c1 SHA512 255860e56bf51c4f35a00cf66fff3ee37fbef1e0d674af6ed580367d8b3d2d60fb88609a675e8f322fd466a23006e38078b67edd6f306e639d6be12abb2972d2
24 DIST micropython-1.17.tar.xz 56606868 BLAKE2B a6338d173de646764c1573ebabdb9818746a479fd2dd618f9be9955881e3829c4d89da4602934e71655734ec1c6f2150a6ac2c54a5fed9bee998905a00d5c6ea SHA512 8074214040e35ae1ca99721ec442f4cef70fa03380b7662016c55cb3acff9178fc54140c0d818c9581389b4daaade142ecf75b65a2919c666a50255423a39a54
25
26 diff --git a/dev-lang/micropython/files/micropython-1.11-exclude-float-parse-tests.patch b/dev-lang/micropython/files/micropython-1.11-exclude-float-parse-tests.patch
27 deleted file mode 100644
28 index 6d81661790e9..000000000000
29 --- a/dev-lang/micropython/files/micropython-1.11-exclude-float-parse-tests.patch
30 +++ /dev/null
31 @@ -1,12 +0,0 @@
32 ---- a/tests/run-tests 2020-06-09 13:09:24.239121947 -0000
33 -+++ b/tests/run-tests 2020-06-09 13:09:57.315476363 -0000
34 -@@ -377,6 +377,9 @@
35 - skip_tests.add('micropython/heapalloc_traceback.py') # because native doesn't have proper traceback info
36 - skip_tests.add('micropython/schedule.py') # native code doesn't check pending events
37 -
38 -+ skip_tests.add('float/float_parse.py')
39 -+ skip_tests.add('float/float_parse_doubleprec.py')
40 -+ # these two tests fail for some reason.
41 - for test_file in tests:
42 - test_file = test_file.replace('\\', '/')
43 -
44
45 diff --git a/dev-lang/micropython/files/micropython-1.11-prevent-stripping.patch b/dev-lang/micropython/files/micropython-1.11-prevent-stripping.patch
46 deleted file mode 100644
47 index 7b78b6fb9f60..000000000000
48 --- a/dev-lang/micropython/files/micropython-1.11-prevent-stripping.patch
49 +++ /dev/null
50 @@ -1,26 +0,0 @@
51 -diff --git a/py/mkenv.mk b/py/mkenv.mk
52 -index 46eedf9..2f3f3ca 100644
53 ---- a/py/mkenv.mk
54 -+++ b/py/mkenv.mk
55 -@@ -52,7 +52,6 @@ CXX = $(CROSS_COMPILE)g++
56 - LD = $(CROSS_COMPILE)ld
57 - OBJCOPY = $(CROSS_COMPILE)objcopy
58 - SIZE = $(CROSS_COMPILE)size
59 --STRIP = $(CROSS_COMPILE)strip
60 - AR = $(CROSS_COMPILE)ar
61 - ifeq ($(MICROPY_FORCE_32BIT),1)
62 - CC += -m32
63 -diff --git a/py/mkrules.mk b/py/mkrules.mk
64 -index 4e4fdef..149b337 100644
65 ---- a/py/mkrules.mk
66 -+++ b/py/mkrules.mk
67 -@@ -133,9 +133,6 @@ $(PROG): $(OBJ)
68 - # Do not pass COPT here - it's *C* compiler optimizations. For example,
69 - # we may want to compile using Thumb, but link with non-Thumb libc.
70 - $(Q)$(CC) -o $@ $^ $(LIB) $(LDFLAGS)
71 --ifndef DEBUG
72 -- $(Q)$(STRIP) $(STRIPFLAGS_EXTRA) $(PROG)
73 --endif
74 - $(Q)$(SIZE) $$(find $(BUILD) -path "$(BUILD)/build/frozen*.o") $(PROG)
75 -
76 - clean: clean-prog
77
78 diff --git a/dev-lang/micropython/micropython-1.11-r1.ebuild b/dev-lang/micropython/micropython-1.11-r1.ebuild
79 deleted file mode 100644
80 index 57a5d6bee6a3..000000000000
81 --- a/dev-lang/micropython/micropython-1.11-r1.ebuild
82 +++ /dev/null
83 @@ -1,65 +0,0 @@
84 -# Copyright 1999-2021 Gentoo Authors
85 -# Distributed under the terms of the GNU General Public License v2
86 -
87 -EAPI=6
88 -
89 -inherit toolchain-funcs
90 -
91 -DESCRIPTION="Python implementation for microcontrollers"
92 -HOMEPAGE="https://github.com/micropython/micropython"
93 -SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz"
94 -
95 -KEYWORDS="~amd64 ~x86"
96 -LICENSE="MIT"
97 -SLOT="0"
98 -IUSE="test"
99 -RESTRICT="!test? ( test )"
100 -
101 -DEPEND="
102 - dev-libs/libffi:=
103 - virtual/pkgconfig"
104 -
105 -PATCHES=(
106 - "${FILESDIR}/${P}-prevent-stripping.patch"
107 - "${FILESDIR}/${P}-exclude-float-parse-tests.patch"
108 -)
109 -
110 -src_prepare() {
111 - default
112 -
113 - cd ports/unix || die
114 -
115 - # 1) don't die on compiler warning
116 - # 2) remove /usr/local prefix references in favour of /usr
117 - # 3) enforce our CFLAGS
118 - # 4) enforce our LDFLAGS
119 - sed -e 's#-Werror##g;' \
120 - -e 's#\/usr\/local#\/usr#g;' \
121 - -e "s#^CFLAGS = \(.*\)#CFLAGS = \1 ${CFLAGS}#g" \
122 - -e "s#^LDFLAGS = \(.*\)#LDFLAGS = \1 ${LDFLAGS}#g" \
123 - -i Makefile || die "can't patch Makefile"
124 -}
125 -
126 -src_compile() {
127 - cd ports/unix || die
128 -
129 - emake CC="$(tc-getCC)" axtls
130 - emake CC="$(tc-getCC)"
131 -}
132 -
133 -src_test() {
134 - cd ports/unix || die
135 - emake CC="$(tc-getCC)" test
136 -}
137 -
138 -src_install() {
139 - pushd ports/unix > /dev/null || die
140 - emake CC="$(tc-getCC)" DESTDIR="${D}" install
141 - popd > /dev/null || die
142 -
143 - # remove .git files
144 - find tools -type f -name '.git*' -exec rm {} \; || die
145 -
146 - dodoc -r tools
147 - einstalldocs
148 -}