fix(glib)

2.79.0 needs python's packaging module
This commit is contained in:
Jacob Heider 2023-12-27 13:40:31 -05:00 committed by Jacob Heider
parent 86f8cd9ceb
commit e5bd65cb84

View file

@ -18,6 +18,10 @@ dependencies:
pcre.org: 8 pcre.org: 8
pcre.org/v2: 10 pcre.org/v2: 10
runtime:
env:
PYTHONPATH: '{{prefix}}/lib/python{{deps.python.org.version.major}}/site-packages:$PYTHONPATH'
build: build:
dependencies: dependencies:
mesonbuild.com: ^1.2 mesonbuild.com: ^1.2
@ -61,6 +65,10 @@ build:
ln -s ../lib/glib-{{version.major}}.0/include/* . ln -s ../lib/glib-{{version.major}}.0/include/* .
working-directory: '{{prefix}}/include' working-directory: '{{prefix}}/include'
- cp -a ../venv/lib/python{{deps.python.org.version.marketing}} "{{prefix}}"/lib
- run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
working-directory: '{{prefix}}/lib'
#REF https://github.com/Homebrew/homebrew-core/blob/d0e65698ccd502335bea68ce879ae02e1735db0d/Formula/glib.rb#L66-L67 #REF https://github.com/Homebrew/homebrew-core/blob/d0e65698ccd502335bea68ce879ae02e1735db0d/Formula/glib.rb#L66-L67
#FIXME hardcoded paths ^^ #FIXME hardcoded paths ^^
env: env: