blob: 0a34d4373f187f4215999049e3829d90de86c9f9 [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 Geissler4ed12e12020-06-05 18:00:41 -050017SRC_URI[md5sum] = "ebfebc4533856572281add29f08412bf"
18SRC_URI[sha256sum] = "d1bf42802d1cec113b5adaa0e7bf7f3745b44521dc2163588d276d5cd61d718f"
Brad Bishopc342db32019-05-15 21:57:59 -040019
20UNKNOWN_CONFIGURE_WHITELIST = "introspection"
21
Brad Bishopc342db32019-05-15 21:57:59 -040022S = "${WORKDIR}/${SRCNAME}-${PV}"
23
24PACKAGECONFIG ??= "${@bb.utils.contains_any('DISTRO_FEATURES', [ 'directfb', 'wayland', 'x11' ], 'cairo', '', d)}"
25
Brad Bishop08902b02019-08-20 09:16:51 -040026RDEPENDS_${PN} += "python3-pkgutil"
27
Brad Bishopc342db32019-05-15 21:57:59 -040028# python3-pycairo is checked on configuration -> DEPENDS
29# we don't link against python3-pycairo -> RDEPENDS
30PACKAGECONFIG[cairo] = "-Dpycairo=true,-Dpycairo=false, cairo python3-pycairo, python3-pycairo"
31
Brad Bishopc342db32019-05-15 21:57:59 -040032BBCLASSEXTEND = "native"
33PACKAGECONFIG_class-native = ""