summaryrefslogtreecommitdiffstats
path: root/recipes/python/python-pygobject-native_2.20.0.bb
blob: 409481c2bf50d0d8615cb5283bd6f67b8cf7e6cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require python-pygobject_${PV}.bb

inherit native

DEPENDS = "python-native glib-2.0-native"

PARALLEL_MAKE = ""

SRC_URI = "\
  ftp://ftp.gnome.org/pub/GNOME/sources/pygobject/${MAJ_VER}/pygobject-${PV}.tar.bz2 \
#  file://python-path.patch;patch=1 \
"

export GOBJECT_INTROSPECTION_CFLAGS="-pthread -I${STAGING_INCDIR}/gobject-introspection-1.0 -I${STAGING_INCDIR}/glib-2.0 -I${STAGING_LIBDIR}/glib-2.0/include"

do_configure_prepend() {
	unset PYTHONPATH
}

do_install_append() {
	install -d ${D}${bindir}
	install -m 0755 gobject/generate-constants ${D}${bindir}/gobject-generate-constants
}