aboutsummaryrefslogtreecommitdiffstats
path: root/lang/micropython
diff options
context:
space:
mode:
authorKoop Mast <kwm@rainbow-runner.nl>2017-02-08 15:45:16 +0800
committerKoop Mast <kwm@rainbow-runner.nl>2017-02-08 15:45:16 +0800
commit8c10568a8bad15bd4e148e5298d61c75faa3c30d (patch)
tree8ec8a8ad03e47a7286399402357b1c326bf89c9d /lang/micropython
parentccabcd384d766804d3ce54b6a7ae1d257ce0fc11 (diff)
parent39324c127c7b2461bbbbbb06c5dd94442e997b46 (diff)
downloadfreebsd-ports-gnome-mate-1.16.tar.gz
freebsd-ports-gnome-mate-1.16.tar.zst
freebsd-ports-gnome-mate-1.16.zip
Merge branch 'master' into mate-1.16mate-1.16
Diffstat (limited to 'lang/micropython')
-rw-r--r--lang/micropython/Makefile21
1 files changed, 6 insertions, 15 deletions
diff --git a/lang/micropython/Makefile b/lang/micropython/Makefile
index 873f43d4e218..d33850afc50a 100644
--- a/lang/micropython/Makefile
+++ b/lang/micropython/Makefile
@@ -6,7 +6,7 @@ PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= lang python
-MAINTAINER= mva@FreeBSD.org
+MAINTAINER= ports@FreeBSD.org
COMMENT= Implementation of the Python language for microcontrollers
LICENSE= MIT
@@ -19,20 +19,12 @@ USE_GITHUB= yes
PLIST_FILES= bin/micropython
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/unix
+WRKSRC_SUBDIR= unix
SHEBANG_FILES= ../tools/make-frozen.py
MAKE_ARGS+= V=1
MAKE_ENV+= PYTHON=${PYTHON_CMD} CFLAGS_EXTRA="${CPPFLAGS} ${CFLAGS}"
-
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 1000024
-# Our default GCC 4.2.1 build can't handle some quirks correctly.
-# Use an up to date version for FreeBSD releases, which use GCC
-# as default compiler
-USE_GCC= yes
-.endif
+TEST_TARGET= test
post-patch:
@${REINPLACE_CMD} -e 's|-Werror||;/^COPT =/d; \
@@ -49,8 +41,7 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/micropython ${STAGEDIR}${PREFIX}/bin
-regression-test: build
- ${RM} ${WRKSRC}/../tests/basics/memoryerror.py
- cd ${WRKSRC} && ${MAKE_CMD} test
+pre-test:
+ @${RM} ${WRKSRC}/../tests/basics/memoryerror.py
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>