blob: b4427050f5ea36a283a5df626e5444f898e68f98 [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001SUMMARY = "Python GObject bindings"
2SECTION = "devel/python"
3LICENSE = "LGPLv2.1"
4LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7"
5
6GNOMEBASEBUILDCLASS = "meson"
7inherit gnomebase distutils3-base gobject-introspection upstream-version-is-even
8
9DEPENDS += "python3 glib-2.0"
10
11SRCNAME="pygobject"
Brad Bishop96ff1982019-08-19 13:50:42 -040012
Brad Bishopc342db32019-05-15 21:57:59 -040013SRC_URI = " \
14 http://ftp.gnome.org/pub/GNOME/sources/${SRCNAME}/${@gnome_verdir("${PV}")}/${SRCNAME}-${PV}.tar.xz \
15 file://0001-Do-not-build-tests.patch \
16"
Andrew Geissler6ce62a22020-11-30 19:58:47 -060017SRC_URI[sha256sum] = "0372d1bb9122fc19f500a249b1f38c2bb67485000f5887497b4b205b3e7084d5"
Brad Bishopc342db32019-05-15 21:57:59 -040018
19UNKNOWN_CONFIGURE_WHITELIST = "introspection"
20
Brad Bishopc342db32019-05-15 21:57:59 -040021S = "${WORKDIR}/${SRCNAME}-${PV}"
22
23PACKAGECONFIG ??= "${@bb.utils.contains_any('DISTRO_FEATURES', [ 'directfb', 'wayland', 'x11' ], 'cairo', '', d)}"
24
Brad Bishop08902b02019-08-20 09:16:51 -040025RDEPENDS_${PN} += "python3-pkgutil"
26
Brad Bishopc342db32019-05-15 21:57:59 -040027# python3-pycairo is checked on configuration -> DEPENDS
28# we don't link against python3-pycairo -> RDEPENDS
Andrew Geissler6ce62a22020-11-30 19:58:47 -060029PACKAGECONFIG[cairo] = "-Dpycairo=enabled,-Dpycairo=disabled, cairo python3-pycairo, python3-pycairo"
Brad Bishopc342db32019-05-15 21:57:59 -040030
Brad Bishopc342db32019-05-15 21:57:59 -040031BBCLASSEXTEND = "native"
32PACKAGECONFIG_class-native = ""