mesa: unbundle python-mako

This commit is contained in:
git-bruh 2022-09-30 14:50:47 +05:30
parent 5f741b00fe
commit 7e91590c8e
No known key found for this signature in database
4 changed files with 1 additions and 27 deletions

View File

@ -1,29 +1,5 @@
#!/bin/sh -e
# Install python-mako which is solely needed for mesa
# and thus contained in this build.
{
cd mako
python3 setup.py build
python3 setup.py install \
--prefix=/usr \
--root="$PWD/dist"
# Use a glob to avoid having to figure out the Python
# version for the path below.
cd dist/usr/lib/python*/site-packages
# Set the PYTHONPATH so python knows where to find mako.
# The one liner simply appends the existing path and
# handles the case where an unset PYTHONPATH breaks
# python as it will only contain our new addition.
PYTHONPATH=$PWD:$(python -c "import sys; print(':'.join(sys.path))")
cd -; cd ..
}
export PYTHONPATH
# To prevent the need for users to fork the mesa package to add
# libglvnd support, the below code checks for its availability
# and enables it if present. ie: install glvnd, rebuild mesa.

View File

@ -1,2 +1 @@
0079beac0a33f45e7e0aec59e6913eafbc4268a3f1e2e330017440494f91b13c
4e9e345a41924a954251b95b4b28e14a301145b544901332e658907a7464b6b2

View File

@ -8,7 +8,7 @@ llvm
m4 make
meson make
pkgconf make
python make
python-mako make
wayland
wayland-protocols make
zlib

View File

@ -1,2 +1 @@
https://archive.mesa3d.org/mesa-VERSION.tar.xz
https://files.pythonhosted.org/packages/source/M/Mako/Mako-1.1.6.tar.gz mako