blob: 6f7d9a09ecdcec7ecb1128b17af708272a1fa618 [file] [log] [blame]
Andrew Geisslereff27472021-10-29 15:35:00 -05001SUMMARY = "Python GObject bindings"
2HOMEPAGE = "https://gitlab.gnome.org/GNOME/pygobject"
3DESCRIPTION = "PyGObject is a Python package which provides bindings for GObject based libraries such as GTK, GStreamer, WebKitGTK, GLib, GIO and many more."
4SECTION = "devel/python"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00005LICENSE = "LGPL-2.1-only"
Andrew Geisslereff27472021-10-29 15:35:00 -05006LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7"
7
8GNOMEBASEBUILDCLASS = "meson"
Andrew Geissler595f6302022-01-24 19:11:47 +00009GIR_MESON_OPTION = ""
10
Patrick Williamse760df82023-05-26 11:10:49 -050011inherit gnomebase setuptools3-base gobject-introspection upstream-version-is-even features_check
Andrew Geisslereff27472021-10-29 15:35:00 -050012
Patrick Williamse760df82023-05-26 11:10:49 -050013REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
14
15DEPENDS += "python3 glib-2.0"
Andrew Geisslereff27472021-10-29 15:35:00 -050016
Andrew Geisslereff27472021-10-29 15:35:00 -050017SRCNAME="pygobject"
18
19SRC_URI = " \
20 http://ftp.gnome.org/pub/GNOME/sources/${SRCNAME}/${@gnome_verdir("${PV}")}/${SRCNAME}-${PV}.tar.xz \
21 file://0001-Do-not-build-tests.patch \
22"
Patrick Williams8e7b46e2023-05-01 14:19:06 -050023SRC_URI[sha256sum] = "3c6805d1321be90cc32e648215a562430e0d3d6edcda8f4c5e7a9daffcad5710"
Andrew Geisslereff27472021-10-29 15:35:00 -050024
25S = "${WORKDIR}/${SRCNAME}-${PV}"
26
27PACKAGECONFIG ??= "${@bb.utils.contains_any('DISTRO_FEATURES', [ 'directfb', 'wayland', 'x11' ], 'cairo', '', d)}"
28
Patrick Williamse760df82023-05-26 11:10:49 -050029RDEPENDS:${PN} += " \
30 python3-io \
31 python3-pkgutil \
32"
Andrew Geisslereff27472021-10-29 15:35:00 -050033
34# python3-pycairo is checked on configuration -> DEPENDS
35# we don't link against python3-pycairo -> RDEPENDS
36PACKAGECONFIG[cairo] = "-Dpycairo=enabled,-Dpycairo=disabled, cairo python3-pycairo, python3-pycairo"
37
38BBCLASSEXTEND = "native"
39PACKAGECONFIG:class-native = ""