diff options
Diffstat (limited to 'meta-oe/recipes-devtools/python/python3-pygobject_3.34.0.bb')
| -rw-r--r-- | meta-oe/recipes-devtools/python/python3-pygobject_3.34.0.bb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/python/python3-pygobject_3.34.0.bb b/meta-oe/recipes-devtools/python/python3-pygobject_3.34.0.bb new file mode 100644 index 0000000000..b016df7198 --- /dev/null +++ b/meta-oe/recipes-devtools/python/python3-pygobject_3.34.0.bb | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | SUMMARY = "Python GObject bindings" | ||
| 2 | HOMEPAGE = "http://www.pygtk.org/" | ||
| 3 | SECTION = "devel/python" | ||
| 4 | LICENSE = "LGPLv2.1" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7" | ||
| 6 | |||
| 7 | GNOMEBASEBUILDCLASS = "meson" | ||
| 8 | inherit gnomebase gobject-introspection distutils3-base upstream-version-is-even | ||
| 9 | |||
| 10 | DEPENDS += "python3 glib-2.0" | ||
| 11 | |||
| 12 | SRCNAME = "pygobject" | ||
| 13 | SRC_URI = " \ | ||
| 14 | http://ftp.gnome.org/pub/GNOME/sources/${SRCNAME}/${@gnome_verdir("${PV}")}/${SRCNAME}-${PV}.tar.xz \ | ||
| 15 | " | ||
| 16 | |||
| 17 | SRC_URI[md5sum] = "ca1dc4f31c1d6d283758e8f315a88ab6" | ||
| 18 | SRC_URI[sha256sum] = "87e2c9aa785f352ef111dcc5f63df9b85cf6e05e52ff04f803ffbebdacf5271a" | ||
| 19 | |||
| 20 | S = "${WORKDIR}/${SRCNAME}-${PV}" | ||
| 21 | |||
| 22 | UNKNOWN_CONFIGURE_WHITELIST = "introspection" | ||
| 23 | |||
| 24 | PACKAGECONFIG ??= "" | ||
| 25 | |||
| 26 | PACKAGECONFIG[cairo] = "-Dpycairo=true,-Dpycairo=false, cairo python-pycairo, python-pycairo" | ||
| 27 | PACKAGECONFIG[tests] = "-Dtests=true, -Dtests=false, , " | ||
| 28 | |||
| 29 | EXTRA_OEMESON_append = " -Dpython=python3" | ||
| 30 | |||
| 31 | BBCLASSEXTEND = "native" | ||
| 32 | RDEPENDS_${PN} = "python-pkgutil" | ||
| 33 | RDEPENDS_${PN}_class-native = "" | ||
| 34 | |||
| 35 | do_install_append() { | ||
| 36 | # Remove files that clash with python3-pygobject; their content is same | ||
| 37 | rm -r ${D}${includedir}/pygobject-3.0/pygobject.h ${D}${libdir}/pkgconfig | ||
| 38 | } | ||
