blob: a1c006dd5cfdfe0875188fdebd2691cfdd400219 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
PORTNAME= micropython
PORTVERSION= 1.5.1
DISTVERSIONPREFIX= v
PORTREVISION= 4
CATEGORIES= lang python
MAINTAINER= ports@FreeBSD.org
COMMENT= Implementation of the Python language for microcontrollers
LICENSE= MIT
LIB_DEPENDS= libffi.so:devel/libffi
USES= gmake pkgconfig python:3.4+,build readline shebangfix
USE_GITHUB= yes
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= 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
.include <bsd.port.mk>
|