diff options
Diffstat (limited to 'meta/packages/python/python-pygobject_2.16.0.bb')
-rw-r--r-- | meta/packages/python/python-pygobject_2.16.0.bb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/packages/python/python-pygobject_2.16.0.bb b/meta/packages/python/python-pygobject_2.16.0.bb new file mode 100644 index 0000000000..d7bd1c041f --- /dev/null +++ b/meta/packages/python/python-pygobject_2.16.0.bb | |||
@@ -0,0 +1,38 @@ | |||
1 | DESCRIPTION = "Python GObject bindings" | ||
2 | SECTION = "devel/python" | ||
3 | LICENSE = "LGPL" | ||
4 | DEPENDS = "python-pygobject-native-${PV}" | ||
5 | PR = "ml2" | ||
6 | |||
7 | MAJ_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}" | ||
8 | |||
9 | SRC_URI = "\ | ||
10 | ftp://ftp.gnome.org/pub/GNOME/sources/pygobject/${MAJ_VER}/pygobject-${PV}.tar.bz2 \ | ||
11 | file://generate-constants.patch;patch=1 \ | ||
12 | " | ||
13 | S = "${WORKDIR}/pygobject-${PV}" | ||
14 | |||
15 | FILESPATH = "${FILE_DIRNAME}/python-pygobject:${FILE_DIRNAME}/files" | ||
16 | |||
17 | inherit autotools distutils-base pkgconfig | ||
18 | |||
19 | # necessary to let the call for python-config succeed | ||
20 | export BUILD_SYS | ||
21 | export HOST_SYS | ||
22 | |||
23 | do_stage() { | ||
24 | autotools_stage_all | ||
25 | install -d ${STAGING_LIBDIR}/../share/pygobject/ | ||
26 | cp -dpfR docs/* ${STAGING_LIBDIR}/../share/pygobject/ | ||
27 | install -d ${STAGING_LIBDIR}/../share/gtk-doc/html/pygobject/ | ||
28 | cp docs/style.css ${STAGING_LIBDIR}/../share/gtk-doc/html/pygobject/ | ||
29 | } | ||
30 | |||
31 | PACKAGES += "${PN}-lib" | ||
32 | |||
33 | RDEPENDS_${PN} += "python-textutils" | ||
34 | |||
35 | FILES_${PN} = "${libdir}/python*" | ||
36 | FILES_${PN}-lib = "${libdir}/lib*.so.*" | ||
37 | FILES_${PN}-dev += "${bindir} ${datadir}" | ||
38 | FILES_${PN}-dbg += "${libdir}/.debug" | ||