mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
cairographics.org/pycairo (#2760)
* cairographics.org/pycairo * {{deps.python.org.version.marketing}} * symlink * python3 hardcoded
This commit is contained in:
parent
577ffe5074
commit
47af95acad
1 changed files with 28 additions and 0 deletions
28
projects/cairographics.org/pycairo/package.yml
Normal file
28
projects/cairographics.org/pycairo/package.yml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
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: '*'
|
||||||
|
python.org: ^3.11
|
||||||
|
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:
|
||||||
|
python.org: ^3.11
|
||||||
|
script:
|
||||||
|
- python3 -c "import cairo; print(cairo.version)" | grep {{version}}
|
Loading…
Reference in a new issue