# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
github.setup mesonbuild meson 0.51.2
github.tarball_from releases
maintainers {soap.za.net:git @SoapZA} openmaintainer
homepage https://mesonbuild.com/
description Meson - a high productivity build system
long_description Meson is a build system designed to optimize programmer productivity. \
It aims to do this by providing simple, out-of-the-box support for modern \
software development tools and practices, such as unit tests, coverage reports, \
Valgrind, CCache and the like. It is both extremely fast, and, even more importantly, \
as user friendly as possible.
checksums rmd160 f437a4b5e50a5e4842b4de89ed6b65fa60244419 \
sha256 23688f0fc90be623d98e80e1defeea92bbb7103bf9336a5f5b9865d36e892d76 \
# as of verison 0.45.0,requires python 3.5 or better
python.default_version 37
port:py${python.version}-setuptools
port:py${python.version}-setuptools \
# requires a newer install_name_tool on older systems
if {${os.platform} eq "darwin" && ${os.major} <= 9} {
set python_prefix ${frameworks_dir}/Python.framework/Versions/${python.branch}
ln -s ${python_prefix}/bin/meson ${destroot}${prefix}/bin/meson
ln -s ${python_prefix}/share/man/man1/meson.1 ${destroot}${prefix}/share/man/man1
# the following block avoids requiring users to 'sudo port select python3 python37'
# doing a file test for ${prefix}/bin/python3 and requiring this
# to be honest would have been much simpler, but not the "MacPorts way"
reinplace "s|/usr/bin/env python3|/usr/bin/env python3.7|" \
${worksrcpath}/run_tests.py \
${worksrcpath}/run_cross_test.py \
${worksrcpath}/run_meson_command_tests.py \
${worksrcpath}/run_project_tests.py \
${worksrcpath}/run_unittests.py