Browse Source

lang/micropython: Update to 1.10

master
Charlie Root 3 months ago
parent
commit
4e9076f807
3 changed files with 14 additions and 34 deletions
  1. 7
    30
      lang/micropython/Makefile
  2. 3
    2
      lang/micropython/distinfo
  3. 4
    2
      lang/micropython/pkg-descr

+ 7
- 30
lang/micropython/Makefile View File

@@ -1,10 +1,9 @@
# $FreeBSD: head/lang/micropython/Makefile 498476 2019-04-09 14:04:49Z sunpoet $

PORTNAME= micropython
PORTVERSION= 1.5.1
DISTVERSIONPREFIX= v
PORTREVISION= 3
PORTVERSION= 1.10
CATEGORIES= lang python
MASTER_SITES= https://github.com/micropython/micropython/releases/download/v${PORTVERSION}/

MAINTAINER= ports@FreeBSD.org
COMMENT= Implementation of the Python language for microcontrollers
@@ -13,38 +12,16 @@ LICENSE= MIT

LIB_DEPENDS= libffi.so:devel/libffi

USES= gmake pkgconfig python:3.4+,build readline shebangfix
BUILD_DEPENDS= bash:shells/bash
RUN_DEPENDS= bash:shells/bash

USE_GITHUB= yes
USES= compiler gmake pkgconfig python,build

PLIST_FILES= bin/micropython

BROKEN_armv6= fails to assemble: error: invalid operand for instruction
BROKEN_armv7= fails to assemble: error: invalid operand for instruction
WRKSRC_SUBDIR= ports/unix

WRKSRC_SUBDIR= unix

SHEBANG_FILES= ../tools/make-frozen.py
MAKE_ARGS+= V=1
MAKE_ENV+= PYTHON=${PYTHON_CMD} CFLAGS_EXTRA="${CPPFLAGS} ${CFLAGS}"
TEST_TARGET= test

post-patch:
@${REINPLACE_CMD} -e 's|-Werror||;/^COPT =/d; \
s|ls -1 -v|ls -1|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|re_exec|mp_re_exec|' \
${WRKSRC}/../extmod/modure.c
@${REINPLACE_CMD} -e 's|AS =|AS ?=|;s|LD =|LD ?=|; \
s|CC =|CC ?=|;s|PYTHON =|PYTHON ?=|' \
${WRKSRC}/../py/mkenv.mk
@${REINPLACE_CMD} -e 's|libc\.so\.6|libc\.so\.7|;' \
${WRKSRC}/../tests/unix/ffi_callback.py \
${WRKSRC}/../tests/unix/ffi_float.py

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/micropython ${STAGEDIR}${PREFIX}/bin

pre-test:
@${RM} ${WRKSRC}/../tests/basics/memoryerror.py
ALL_TARGET= axtls micropython

.include <bsd.port.mk>

+ 3
- 2
lang/micropython/distinfo View File

@@ -1,2 +1,3 @@
SHA256 (micropython-micropython-v1.5.1_GH0.tar.gz) = 95cc34089a1e40a992065ff9c9b67c121674c3bd6136a50882054fcac27485c2
SIZE (micropython-micropython-v1.5.1_GH0.tar.gz) = 6635550
TIMESTAMP = 1557861410
SHA256 (micropython-1.10.tar.gz) = 207de28a243d5be59c1d5433670a5c76472ece532b446cc25da6cf3c6e943fbc
SIZE (micropython-1.10.tar.gz) = 22489684

+ 4
- 2
lang/micropython/pkg-descr View File

@@ -1,4 +1,6 @@
Micro Python is a lean and fast implementation of the Python 3 programming
language that is optimised to run on a microcontroller.
Micro Python is a lean and efficient implementation of the Python 3
programming language that includes a small subset of the Python
standard library and is optimised to run on microcontrollers and in
constrained environments.

WWW: https://www.micropython.org/

Loading…
Cancel
Save