mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
82848e4600
Changes: https://mesonbuild.com/Release-notes-for-0-56-0.html Changes: https://github.com/mesonbuild/meson/compare/0.55.3...0.56.0 Reported by: GitHub (watch releases) PR: 250736 Exp-run by: antoine Approved by: tcberner
38 lines
1.1 KiB
Makefile
38 lines
1.1 KiB
Makefile
# Created by: Ting-Wei Lan <lantw44@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= meson
|
|
PORTVERSION= 0.56.0
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= https://github.com/mesonbuild/${PORTNAME}/releases/download/${PORTVERSION}/
|
|
|
|
MAINTAINER= desktop@FreeBSD.org
|
|
COMMENT= High performance build system
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
RUN_DEPENDS= ninja:devel/ninja
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR}
|
|
|
|
USES= python:3.5+ shebangfix
|
|
USE_PYTHON= autoplist distutils noflavors
|
|
SHEBANG_FILES= mesonbuild/rewriter.py \
|
|
mesonbuild/scripts/cmake_run_ctgt.py
|
|
NO_ARCH= yes
|
|
|
|
# https://github.com/mesonbuild/meson/issues/6016
|
|
TEST_ENV= ${MAKE_ENV:NCC=*:NCXX=*}
|
|
|
|
# Hide from regular build to avoid accidental dependency on symlinks
|
|
.if make(test)
|
|
# helper_create_binary_wrapper, test_python_module, test cases/*.py
|
|
BINARY_ALIAS+= python3=${PYTHON_CMD:T} python=${PYTHON_CMD:T}
|
|
do-test: create-binary-alias # force if run late
|
|
.endif
|
|
|
|
do-test:
|
|
@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${WRKSRC}/run_unittests.py)
|
|
|
|
.include <bsd.port.mk>
|