Large rework/update to EAPI=7
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
AUX micropython-1.11-prevent-stripping.patch 787 BLAKE2B 6e92c4fdfd44b89d1fad69c056dbab1493d9dc45c4223cfd2f011254db72400c6ac9a62afe84f54c301a86abd92deb56866dc25e2f1bf8af74edf308b15eb29f SHA512 8f994394f42d7fed5fa35b62c01c37ebea3b487c029d659134a263ef8d65e1ec17bec755fdf57cde2f234969bc4f7f4ab30858562d7f8cdb2bc6cb819ba2ae0d
|
||||
DIST micropython-1.11.tar.gz 23010708 BLAKE2B 8deb29f2a27b8299f62c8c3d332654889e610ddc6854dc38c6cf7504c89f2f9cbbacccdc2d8e471d96b8bb28bbb920fe7ec1b8fd49b14209924262f54687c3c1 SHA512 255860e56bf51c4f35a00cf66fff3ee37fbef1e0d674af6ed580367d8b3d2d60fb88609a675e8f322fd466a23006e38078b67edd6f306e639d6be12abb2972d2
|
||||
EBUILD micropython-1.11.ebuild 1161 BLAKE2B 9bc660c6e4e93cf30ec20a9ca1758a13024ec2c16cfcf442f406912e59a3bf3009dfda29dbc0947d0dc966538fd802d551728019abd9212fa851153224a56713 SHA512 d22375deb3c95e317b8a8cde81f0366b1d83a90ffddd3f52b253b78313e96cc93b5e8e07c4efb4f997ac3f204cfbbca159d698136c4cbfe0151433246335e9d6
|
||||
MISC metadata.xml 1347 BLAKE2B c121e2eafde4ab3c49a352ab96ffbcc042ecddb5a765f3192589a41f5b3bc5f92e6a6f1a58df21ef2812424aac94e6cd579cfe1d29b4dd16983048768f1694ed SHA512 e8dd8f7cc3d0c570da6b9982596e39891e78e302581dbc0601d622831f976f16b9e9f78d7e0b55ae58ed3c81c3e7113a4217ca1671cdd8929f0b34b4647efc3a
|
||||
@@ -1,22 +0,0 @@
|
||||
--- a/py/mkenv.mk 2017-11-25 09:52:30.921836372 +0000
|
||||
+++ a/py/mkenv.mk 2017-11-25 09:52:35.257861233 +0000
|
||||
@@ -50,7 +50,6 @@
|
||||
LD = $(CROSS_COMPILE)ld
|
||||
OBJCOPY = $(CROSS_COMPILE)objcopy
|
||||
SIZE = $(CROSS_COMPILE)size
|
||||
-STRIP = $(CROSS_COMPILE)strip
|
||||
AR = $(CROSS_COMPILE)ar
|
||||
ifeq ($(MICROPY_FORCE_32BIT),1)
|
||||
CC += -m32
|
||||
--- a/py/mkrules.mk 2017-11-25 09:53:13.107078063 +0000
|
||||
+++ a/py/mkrules.mk 2017-11-25 09:53:31.898185592 +0000
|
||||
@@ -129,9 +129,6 @@
|
||||
# Do not pass COPT here - it's *C* compiler optimizations. For example,
|
||||
# we may want to compile using Thumb, but link with non-Thumb libc.
|
||||
$(Q)$(CC) -o $@ $^ $(LIB) $(LDFLAGS)
|
||||
-ifndef DEBUG
|
||||
- $(Q)$(STRIP) $(STRIPFLAGS_EXTRA) $(PROG)
|
||||
-endif
|
||||
$(Q)$(SIZE) $$(find $(BUILD) -path "$(BUILD)/build/frozen*.o") $(PROG)
|
||||
|
||||
clean: clean-prog
|
||||
@@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>monsieurp@gentoo.org</email>
|
||||
<name>Patrice Clement</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">micropython/micropython</remote-id>
|
||||
</upstream>
|
||||
<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>
|
||||
</pkgmetadata>
|
||||
@@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Python implementation for microcontrollers"
|
||||
HOMEPAGE="https://github.com/micropython/micropython"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="
|
||||
virtual/libffi
|
||||
virtual/pkgconfig"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-prevent-stripping.patch" )
|
||||
|
||||
src_compile() {
|
||||
cd ports/unix || die
|
||||
|
||||
# 1) don't die on compiler warnings
|
||||
# 2) remove /usr/local prefix references in favour of /usr
|
||||
sed -i \
|
||||
-e 's#-Werror##g;' \
|
||||
-e 's#\/usr\/local#\/usr#g;' \
|
||||
Makefile || die
|
||||
emake CC="$(tc-getCC)" axtls
|
||||
emake CC="$(tc-getCC)"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# TODO: find out why these tests fail
|
||||
rm -v tests/stress/recursive_iternext* || die
|
||||
|
||||
cd ports/unix || die
|
||||
emake test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd ports/unix > /dev/null || die
|
||||
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" DESTDIR="${D}" install
|
||||
popd > /dev/null || die
|
||||
|
||||
# remove .git files
|
||||
find tools -type f -name '.git*' -exec rm {} \; || die
|
||||
|
||||
dodoc -r tools
|
||||
einstalldocs
|
||||
}
|
||||
Reference in New Issue
Block a user