From e5437e0990d15e9da9af7744fdc7f8788ad5eb4f Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 10 Jul 2021 19:15:28 +0100 Subject: dev-lang/micropython: add dev-libs/libffi subslot dep Signed-off-by: Sam James --- dev-lang/micropython/micropython-1.11-r1.ebuild | 65 +++++++++++++++++++++++++ dev-lang/micropython/micropython-1.11.ebuild | 65 ------------------------- 2 files changed, 65 insertions(+), 65 deletions(-) create mode 100644 dev-lang/micropython/micropython-1.11-r1.ebuild delete mode 100644 dev-lang/micropython/micropython-1.11.ebuild (limited to 'dev-lang/micropython') diff --git a/dev-lang/micropython/micropython-1.11-r1.ebuild b/dev-lang/micropython/micropython-1.11-r1.ebuild new file mode 100644 index 000000000000..57a5d6bee6a3 --- /dev/null +++ b/dev-lang/micropython/micropython-1.11-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2021 Gentoo Authors +# 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" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-libs/libffi:= + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${P}-prevent-stripping.patch" + "${FILESDIR}/${P}-exclude-float-parse-tests.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() { + cd ports/unix || die + + emake CC="$(tc-getCC)" axtls + 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.11.ebuild b/dev-lang/micropython/micropython-1.11.ebuild deleted file mode 100644 index 218dea6ed460..000000000000 --- a/dev-lang/micropython/micropython-1.11.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# 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" -RESTRICT="!test? ( test )" - -DEPEND=" - dev-libs/libffi - virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}/${P}-prevent-stripping.patch" - "${FILESDIR}/${P}-exclude-float-parse-tests.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() { - cd ports/unix || die - - emake CC="$(tc-getCC)" axtls - 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 -} -- cgit v1.2.3-65-gdbad