python-gi
Jon Turney
jon.turney@dronecode.org.uk
Mon Jan 23 14:00:46 GMT 2023
Hi Marco,
It seems that the python-gi-devel package stopped providing the
pygobject-3.0.pc pkgconfig file in 3.36.1-1 (when upstream dropped the
autotools build system).
Unfortunately, some packages require that at build time (including some
I want to rebuild to drop python2 dependencies)
I'm going to suggest the attached patch to fix that (which restores the
steps to install that file in a meson-compatible way)
I can rebuild this package with that change, for you, if you like.
Please let me know how you'd like to proceed.
-------------- next part --------------
From e4bf46ec379086c9e141991602ce01b53c75799e Mon Sep 17 00:00:00 2001
From: Jon Turney <jon.turney@dronecode.org.uk>
Date: Mon, 23 Jan 2023 13:36:22 +0000
Subject: [PATCH] python-gi 3.36.1-3
---
python-gi.cygport | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/python-gi.cygport b/python-gi.cygport
index 7f94d7e..af456f0 100644
--- a/python-gi.cygport
+++ b/python-gi.cygport
@@ -5,7 +5,7 @@ inherit python-wheel gnome.org meson
NAME="python-gi"
VERSION=3.36.1
-RELEASE=2
+RELEASE=3
CATEGORY="Python"
SUMMARY="Python GObject Introspection bindings"
DESCRIPTION="This archive contains bindings for the GLib, GObject and GIO,
@@ -27,6 +27,7 @@ python39_gi_REQUIRES="girepository-GLib2.0 python39-cairo"
python_gi_common_CATEGORY="_obsolete"
python_gi_devel_CONTENTS="
usr/include/pygobject-3.0/
+ usr/lib/pkgconfig/pygobject-3.0.pc
usr/share/doc/python-gi-devel/
"
PKG_IGNORE="usr/share/doc/python-gi-common/"
@@ -34,6 +35,8 @@ DIFF_EXCLUDES="meson.build config.h"
src_compile() {
cd ${S}
+ cygmeson
+
# bypassing the lack of proper python lib link
sed -i -e "s/python.dependency()/dependency('python-3.6', method : 'pkg-config')/" meson.build
cd ${B}
@@ -56,4 +59,9 @@ src_compile() {
src_install() {
cd ${B}
python_wheel_install
+
+ includeinto pygobject-3.0
+ doinclude ${S}/gi/pygobject.h
+
+ dopkgconfig ${S}/*-pc-cygwin/pygobject-3.0.pc
}
--
2.39.0
More information about the Cygwin-apps
mailing list