mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
gnome.org/pygobject (#3334)
* package * wip * projects/gnome.org/PyGObject/package.yml * python ver symlink
This commit is contained in:
parent
c7c4379e4d
commit
ba67b4dc50
1 changed files with 41 additions and 0 deletions
41
projects/gnome.org/PyGObject/package.yml
Normal file
41
projects/gnome.org/PyGObject/package.yml
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
distributable:
|
||||||
|
url: https://download.gnome.org/sources/pygobject/{{version.marketing}}/pygobject-{{version}}.tar.xz
|
||||||
|
strip-components: 1
|
||||||
|
versions:
|
||||||
|
url: https://download.gnome.org/sources/pygobject/cache.json
|
||||||
|
match: /pygobject-\d+\.\d+\.\d+\.tar\.xz/
|
||||||
|
strip:
|
||||||
|
- /^pygobject-/
|
||||||
|
- /\.tar\.xz/
|
||||||
|
dependencies:
|
||||||
|
gnome.org/gobject-introspection: '*'
|
||||||
|
cairographics.org/pycairo: '*'
|
||||||
|
runtime:
|
||||||
|
env:
|
||||||
|
PYTHONPATH: "{{prefix}}/lib/python{{deps.python.org.version.major}}/site-packages:$PYTHONPATH"
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
tea.xyz/gx/make: '*'
|
||||||
|
mesonbuild.com: '*'
|
||||||
|
ninja-build.org: '*'
|
||||||
|
freedesktop.org/pkg-config: '*'
|
||||||
|
python.org: ^3.11
|
||||||
|
script:
|
||||||
|
- meson setup build $MESON_ARGS
|
||||||
|
- meson compile -C build --verbose
|
||||||
|
- meson install -C build
|
||||||
|
- run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
|
||||||
|
working-directory: ${{prefix}}/lib
|
||||||
|
env:
|
||||||
|
MESON_ARGS:
|
||||||
|
- --prefix="{{prefix}}"
|
||||||
|
- --libdir="{{prefix}}/lib"
|
||||||
|
- --buildtype=release
|
||||||
|
- --wrap-mode=nofallback
|
||||||
|
- -Dpycairo=enabled
|
||||||
|
test:
|
||||||
|
dependencies:
|
||||||
|
python.org: ^3.11
|
||||||
|
script:
|
||||||
|
- python -c 'import gi; print(gi.__version__)' | grep {{version}}
|
Loading…
Reference in a new issue