|
root / devel / meson
meson Plain Text 47 lines 1.7 KB
 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
#!/bin/sh
# Build script for meson (pure-Python package, installed via pip3).
#
# meson is a pure-Python wheel/sdist with no C extension to compile, so
# there is nothing for a "build" step to do beyond letting pip3 stage it
# under $PKGDIR with $PREFIX baked in as the install prefix.
#
# NOTE: meson's pyproject.toml declares `requires = ["setuptools>=42"]` /
# `build-backend = "setuptools.build_meta"`. The Hammerhead python port
# (lang/python) ships only pip via ensurepip -- no setuptools/wheel in
# site-packages -- so --no-build-isolation (as originally sketched in the
# brief) fails hard with `ModuleNotFoundError: No module named 'setuptools'`
# (confirmed on alpha9, 2026-07-22). Fix: do NOT pass --no-build-isolation;
# let pip3 build an ephemeral PEP517 build environment (it fetches
# setuptools from PyPI into a throwaway dir for the build only -- alpha9
# has outbound internet). --no-deps is kept: meson's own runtime deps are
# stdlib-only for our purposes (ninja is invoked as a subprocess build_dep,
# never imported).
set -e
cd "$SRCDIR"

pip3 install --no-deps --prefix="$PREFIX" --root="$PKGDIR" .
# Meson - fast and user friendly build system
# https://mesonbuild.com/

[package]
name = "meson"
version = "1.11.2"
release = 1
description = "Fast and user friendly build system (pure Python)"
url = "https://mesonbuild.com/"
license = "Apache-2.0"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = ["python"]
build = ["python", "ninja"]

[[source]]
file = "meson-1.11.2.tar.gz"
urls = ["https://github.com/mesonbuild/meson/releases/download/1.11.2/meson-1.11.2.tar.gz"]
checksum = "698feae069cef3ecd4d7aaf281d7df359bdfcf555a9a1564383d3b913fa8a736"

[build]
parallel = false