From 47af95acad060900c0decf8f4ddc5d627597ed3b Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Tue, 8 Aug 2023 21:13:40 +0300 Subject: [PATCH] cairographics.org/pycairo (#2760) * cairographics.org/pycairo * {{deps.python.org.version.marketing}} * symlink * python3 hardcoded --- .../cairographics.org/pycairo/package.yml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 projects/cairographics.org/pycairo/package.yml diff --git a/projects/cairographics.org/pycairo/package.yml b/projects/cairographics.org/pycairo/package.yml new file mode 100644 index 0000000000..754050f85c --- /dev/null +++ b/projects/cairographics.org/pycairo/package.yml @@ -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}}