From: Jon Turney <jon.turney@dronecode.org.uk>
To: "cygwin-apps@cygwin.com" <cygwin-apps@cygwin.com>
Cc: Marco Atzeri <marco.atzeri@gmail.com>
Subject: python-gi
Date: Mon, 23 Jan 2023 14:00:46 +0000 [thread overview]
Message-ID: <dc1ae53a-83b7-0bab-1884-dd8c272444f9@dronecode.org.uk> (raw)
[-- Attachment #1: Type: text/plain, Size: 538 bytes --]
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.
[-- Attachment #2: 0001-python-gi-3.36.1-3.patch --]
[-- Type: text/plain, Size: 1421 bytes --]
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
next reply other threads:[~2023-01-23 14:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-23 14:00 Jon Turney [this message]
2023-01-24 12:32 ` python-gi Marco Atzeri
2023-01-25 15:44 ` python-gi Jon Turney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dc1ae53a-83b7-0bab-1884-dd8c272444f9@dronecode.org.uk \
--to=jon.turney@dronecode.org.uk \
--cc=cygwin-apps@cygwin.com \
--cc=marco.atzeri@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).