2023-08-08 21:13:40 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/pygobject/pycairo/releases/download/v{{version}}/pycairo-{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
versions:
|
|
|
|
github: pygobject/pycairo
|
|
|
|
dependencies:
|
|
|
|
cairographics.org: '*'
|
|
|
|
runtime:
|
|
|
|
env:
|
|
|
|
PYTHONPATH: "{{prefix}}/lib/python3/site-packages:$PYTHONPATH"
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
freedesktop.org/pkg-config: '*'
|
2023-10-03 18:23:56 +03:00
|
|
|
python.org: ~3.11
|
2023-08-08 21:13:40 +03:00
|
|
|
script:
|
|
|
|
- python3 setup.py install $ARGS
|
|
|
|
- mv {{prefix}}/lib/python{{deps.python.org.version.marketing}}/site-packages/*/* {{prefix}}/lib/python{{deps.python.org.version.marketing}}/site-packages/
|
|
|
|
- run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
|
|
|
|
working-directory: "{{prefix}}/lib"
|
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- --verbose
|
|
|
|
- --prefix={{prefix}}
|
|
|
|
test:
|
|
|
|
dependencies:
|
2023-10-03 18:23:56 +03:00
|
|
|
python.org: ~3.11
|
2023-08-08 21:13:40 +03:00
|
|
|
script:
|
|
|
|
- python3 -c "import cairo; print(cairo.version)" | grep {{version}}
|