summaryrefslogtreecommitdiffstats
path: root/meta/packages/python/python-pygobject_2.16.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/python/python-pygobject_2.16.0.bb')
-rw-r--r--meta/packages/python/python-pygobject_2.16.0.bb38
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 @@
1DESCRIPTION = "Python GObject bindings"
2SECTION = "devel/python"
3LICENSE = "LGPL"
4DEPENDS = "python-pygobject-native-${PV}"
5PR = "ml2"
6
7MAJ_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}"
8
9SRC_URI = "\
10 ftp://ftp.gnome.org/pub/GNOME/sources/pygobject/${MAJ_VER}/pygobject-${PV}.tar.bz2 \
11 file://generate-constants.patch;patch=1 \
12"
13S = "${WORKDIR}/pygobject-${PV}"
14
15FILESPATH = "${FILE_DIRNAME}/python-pygobject:${FILE_DIRNAME}/files"
16
17inherit autotools distutils-base pkgconfig
18
19# necessary to let the call for python-config succeed
20export BUILD_SYS
21export HOST_SYS
22
23do_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
31PACKAGES += "${PN}-lib"
32
33RDEPENDS_${PN} += "python-textutils"
34
35FILES_${PN} = "${libdir}/python*"
36FILES_${PN}-lib = "${libdir}/lib*.so.*"
37FILES_${PN}-dev += "${bindir} ${datadir}"
38FILES_${PN}-dbg += "${libdir}/.debug"